Skip to content

Commit 9cb107a

Browse files
committed
Update to pass C++ unit tests
1 parent dfb781e commit 9cb107a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tree.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,7 @@ void JsonToTreeNodeVectors(const json& tree_json, Tree* tree) {
607607
tree->cright_.push_back(tree_json.at("right").at(i));
608608
tree->split_index_.push_back(tree_json.at("split_index").at(i));
609609
if (is_univariate) tree->leaf_value_.push_back(tree_json.at("leaf_value").at(i));
610+
else tree->leaf_value_.push_back(0.);
610611
tree->threshold_.push_back(tree_json.at("threshold").at(i));
611612
tree->node_deleted_.push_back(tree_json.at("node_deleted").at(i));
612613
// Handle type conversions for node_type, leaf_vector_begin/end, and category_list_begin/end

0 commit comments

Comments
 (0)