Commit c7ef8322 authored by Guolin Ke's avatar Guolin Ke Committed by GitHub
Browse files

quick fix for #125

parent b7947c85
...@@ -39,8 +39,8 @@ Tree::Tree(int max_leaves) ...@@ -39,8 +39,8 @@ Tree::Tree(int max_leaves)
internal_value_ = std::vector<double>(max_leaves_ - 1); internal_value_ = std::vector<double>(max_leaves_ - 1);
internal_count_ = std::vector<data_size_t>(max_leaves_ - 1); internal_count_ = std::vector<data_size_t>(max_leaves_ - 1);
leaf_depth_ = std::vector<int>(max_leaves_); leaf_depth_ = std::vector<int>(max_leaves_);
// root is in the depth 1 // root is in the depth 0
leaf_depth_[0] = 1; leaf_depth_[0] = 0;
num_leaves_ = 1; num_leaves_ = 1;
leaf_parent_[0] = -1; leaf_parent_[0] = -1;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment