Unverified Commit 8092c9fe authored by Guolin Ke's avatar Guolin Ke Committed by GitHub
Browse files

Update tree.cpp (#3148)

parent ce95d9ca
......@@ -585,7 +585,7 @@ Tree::Tree(const char* str, size_t* used_len) {
}
if (key_vals.count("leaf_weight")) {
leaf_weight_ = Common::StringToArrayFast<double>(key_vals["leaf_weight"], num_leaves_);
leaf_weight_ = Common::StringToArray<double>(key_vals["leaf_weight"], num_leaves_);
} else {
leaf_weight_.resize(num_leaves_);
}
......
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