We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfb781e commit 9cb107aCopy full SHA for 9cb107a
src/tree.cpp
@@ -607,6 +607,7 @@ void JsonToTreeNodeVectors(const json& tree_json, Tree* tree) {
607
tree->cright_.push_back(tree_json.at("right").at(i));
608
tree->split_index_.push_back(tree_json.at("split_index").at(i));
609
if (is_univariate) tree->leaf_value_.push_back(tree_json.at("leaf_value").at(i));
610
+ else tree->leaf_value_.push_back(0.);
611
tree->threshold_.push_back(tree_json.at("threshold").at(i));
612
tree->node_deleted_.push_back(tree_json.at("node_deleted").at(i));
613
// Handle type conversions for node_type, leaf_vector_begin/end, and category_list_begin/end
0 commit comments