Skip to content

Commit 7bfe604

Browse files
authored
Merge pull request #188 from StochasticTree/json_tree_hotfix
Removed errant overwrite of num_deleted_nodes on JSON deserialization
2 parents 89c5bc7 + 5230383 commit 7bfe604

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/tree.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,6 @@ void Tree::from_json(const json& tree_json) {
665665
tree_json.at("has_categorical_split").get_to(this->has_categorical_split_);
666666
tree_json.at("output_dimension").get_to(this->output_dimension_);
667667
tree_json.at("is_log_scale").get_to(this->is_log_scale_);
668-
this->num_deleted_nodes = 0;
669668

670669
// Unpack the array based fields
671670
JsonToTreeNodeVectors(tree_json, this);

0 commit comments

Comments
 (0)