When building a treelite model, there is a method data_count which takes as input:
data_count – Number of data points
But if a given tree was fitted to data with sample weights, one would want it to instead represent the sum of weights among the observations, which will not necessarily be integral.
There is a sum_hess which takes float, but it's not exactly the same thing.
When building a treelite model, there is a method
data_countwhich takes as input:But if a given tree was fitted to data with sample weights, one would want it to instead represent the sum of weights among the observations, which will not necessarily be integral.
There is a
sum_hesswhich takes float, but it's not exactly the same thing.