facebookarchive / ml_sampler

Model assisted random sampling.
Other
121 stars 26 forks source link

is_positive in estimator function must be type bool, can't be array of ints #4

Open alannaiverson opened 5 years ago

alannaiverson commented 5 years ago

While applying the ml_sampler estimator function, I was using an array of ints (0/1 values) as the is_positive label which would give me wildly incorrect estimates on a known population. As soon as I cast the lables as type bool, the estimator worked as expected. This is just a heads up that an array of 0/1 int values will not work in the estimator function, it must be explicitly as type bool to work.