Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
f0e32962
Unverified
Commit
f0e32962
authored
Sep 05, 2022
by
James Lamb
Committed by
GitHub
Sep 06, 2022
Browse files
fix references to 'object function' (#5468)
parent
649ef60c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/boosting/gbdt.cpp
src/boosting/gbdt.cpp
+1
-1
src/boosting/gbdt.h
src/boosting/gbdt.h
+1
-1
No files found.
src/boosting/gbdt.cpp
View file @
f0e32962
...
@@ -219,7 +219,7 @@ void GBDT::AddValidDataset(const Dataset* valid_data,
...
@@ -219,7 +219,7 @@ void GBDT::AddValidDataset(const Dataset* valid_data,
void
GBDT
::
Boosting
()
{
void
GBDT
::
Boosting
()
{
Common
::
FunctionTimer
fun_timer
(
"GBDT::Boosting"
,
global_timer
);
Common
::
FunctionTimer
fun_timer
(
"GBDT::Boosting"
,
global_timer
);
if
(
objective_function_
==
nullptr
)
{
if
(
objective_function_
==
nullptr
)
{
Log
::
Fatal
(
"No object function provided"
);
Log
::
Fatal
(
"No object
ive
function provided"
);
}
}
// objective function will calculate gradients and hessians
// objective function will calculate gradients and hessians
int64_t
num_score
=
0
;
int64_t
num_score
=
0
;
...
...
src/boosting/gbdt.h
View file @
f0e32962
...
@@ -428,7 +428,7 @@ class GBDT : public GBDTBase {
...
@@ -428,7 +428,7 @@ class GBDT : public GBDTBase {
data_size_t
*
buffer
);
data_size_t
*
buffer
);
/*!
/*!
* \brief calculate the object function
* \brief calculate the object
ive
function
*/
*/
virtual
void
Boosting
();
virtual
void
Boosting
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment