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
adc1004f
Unverified
Commit
adc1004f
authored
Nov 30, 2018
by
Guolin Ke
Committed by
GitHub
Nov 30, 2018
Browse files
Allow feature_fraction=1.0 in random forest mode
parent
cc99f0d3
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 @
adc1004f
...
@@ -27,7 +27,7 @@ public:
...
@@ -27,7 +27,7 @@ public:
void
Init
(
const
Config
*
config
,
const
Dataset
*
train_data
,
const
ObjectiveFunction
*
objective_function
,
void
Init
(
const
Config
*
config
,
const
Dataset
*
train_data
,
const
ObjectiveFunction
*
objective_function
,
const
std
::
vector
<
const
Metric
*>&
training_metrics
)
override
{
const
std
::
vector
<
const
Metric
*>&
training_metrics
)
override
{
CHECK
(
config
->
bagging_freq
>
0
&&
config
->
bagging_fraction
<
1.0
f
&&
config
->
bagging_fraction
>
0.0
f
);
CHECK
(
config
->
bagging_freq
>
0
&&
config
->
bagging_fraction
<
1.0
f
&&
config
->
bagging_fraction
>
0.0
f
);
CHECK
(
config
->
feature_fraction
<
1.0
f
&&
config
->
feature_fraction
>
0.0
f
);
CHECK
(
config
->
feature_fraction
<
=
1.0
f
&&
config
->
feature_fraction
>
0.0
f
);
GBDT
::
Init
(
config
,
train_data
,
objective_function
,
training_metrics
);
GBDT
::
Init
(
config
,
train_data
,
objective_function
,
training_metrics
);
if
(
num_init_iteration_
>
0
)
{
if
(
num_init_iteration_
>
0
)
{
...
...
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