Skip to content

Commit

Permalink
Allow feature_fraction=1.0 in random forest mode
Browse files Browse the repository at this point in the history
  • Loading branch information
guolinke authored Nov 30, 2018
1 parent cc99f0d commit adc1004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/boosting/rf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class RF: public GBDT {
void Init(const Config* config, const Dataset* train_data, const ObjectiveFunction* objective_function,
const std::vector<const Metric*>& training_metrics) override {
CHECK(config->bagging_freq > 0 && config->bagging_fraction < 1.0f && config->bagging_fraction > 0.0f);
CHECK(config->feature_fraction < 1.0f && config->feature_fraction > 0.0f);
CHECK(config->feature_fraction <= 1.0f && config->feature_fraction > 0.0f);
GBDT::Init(config, train_data, objective_function, training_metrics);

if (num_init_iteration_ > 0) {
Expand Down

0 comments on commit adc1004

Please sign in to comment.