diff --git a/GPUTreeShap/gpu_treeshap.h b/GPUTreeShap/gpu_treeshap.h index 4318fad..b40f2c9 100644 --- a/GPUTreeShap/gpu_treeshap.h +++ b/GPUTreeShap/gpu_treeshap.h @@ -114,16 +114,16 @@ struct PathElement { } /*! Unique path index. */ - size_t path_idx; + size_t path_idx{}; /*! Feature of this split, -1 indicates bias term. */ - int64_t feature_idx; + int64_t feature_idx{}; /*! Indicates class for multiclass problems. */ - int group; - SplitConditionT split_condition; + int group{}; + SplitConditionT split_condition{}; /*! Probability of following this path when feature_idx is not in the active * set. */ - double zero_fraction; - float v; // Leaf weight at the end of the path + double zero_fraction{}; + float v{}; // Leaf weight at the end of the path }; // Helper function that accepts an index into a flat contiguous array and the