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
76e57c5d
Unverified
Commit
76e57c5d
authored
Aug 26, 2019
by
Guolin Ke
Committed by
GitHub
Aug 26, 2019
Browse files
informative error for custom obj in RF (#2355)
parent
0dfda826
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/boosting/rf.hpp
src/boosting/rf.hpp
+1
-1
No files found.
src/boosting/rf.hpp
View file @
76e57c5d
...
...
@@ -81,7 +81,7 @@ class RF : public GBDT {
void
Boosting
()
override
{
if
(
objective_function_
==
nullptr
)
{
Log
::
Fatal
(
"
No
object function p
rovided
"
);
Log
::
Fatal
(
"
RF mode do not support custom
object
ive
function
,
p
lease use built-in objectives.
"
);
}
init_scores_
.
resize
(
num_tree_per_iteration_
,
0.0
);
for
(
int
cur_tree_id
=
0
;
cur_tree_id
<
num_tree_per_iteration_
;
++
cur_tree_id
)
{
...
...
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