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
3f1fc835
Unverified
Commit
3f1fc835
authored
Dec 10, 2018
by
Guolin Ke
Committed by
GitHub
Dec 10, 2018
Browse files
[CPP] disable early stopping in dart (#1894)
* [CPP] disable early stopping in dart * fix compile error
parent
47f0d5e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
src/boosting/dart.hpp
src/boosting/dart.hpp
+5
-0
src/boosting/gbdt.h
src/boosting/gbdt.h
+1
-1
No files found.
src/boosting/dart.hpp
View file @
3f1fc835
...
@@ -78,6 +78,11 @@ public:
...
@@ -78,6 +78,11 @@ public:
*
out_len
=
static_cast
<
int64_t
>
(
train_score_updater_
->
num_data
())
*
num_class_
;
*
out_len
=
static_cast
<
int64_t
>
(
train_score_updater_
->
num_data
())
*
num_class_
;
return
train_score_updater_
->
score
();
return
train_score_updater_
->
score
();
}
}
bool
EvalAndCheckEarlyStopping
()
override
{
GBDT
::
OutputMetric
(
iter_
);
return
false
;
}
private:
private:
/*!
/*!
...
...
src/boosting/gbdt.h
View file @
3f1fc835
...
@@ -360,7 +360,7 @@ protected:
...
@@ -360,7 +360,7 @@ protected:
/*!
/*!
* \brief Print eval result and check early stopping
* \brief Print eval result and check early stopping
*/
*/
bool
EvalAndCheckEarlyStopping
();
virtual
bool
EvalAndCheckEarlyStopping
();
/*!
/*!
* \brief reset config for bagging
* \brief reset config for bagging
...
...
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