b76cd982dc25cbb328301a8fc50dca684438fa67,tests/test_ml_sampler.py,MLSamplerTest,test_pdf,#MLSamplerTest#,59
Before Change
num_samples=self.num_samples
)
est_prevalence = sample_weights[self.is_positive[sample_index]].sum()
est_prevalence /= self.importance.sum()
self.equal_assert(est_prevalence)
def test_hist(self):
After Change
num_samples=self.num_samples
)
est_prevalence = ml_sampler.estimator(self.importance[sample_index],
p_sample,
self.is_positive[sample_index])
est_prevalence /= self.importance.sum()
self.equal_assert(est_prevalence)
def test_hist(self):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances
Project Name: facebookincubator/ml_sampler
Commit Name: b76cd982dc25cbb328301a8fc50dca684438fa67
Time: 2017-02-15
Author: spencebeecher@fb.com
File Name: tests/test_ml_sampler.py
Class Name: MLSamplerTest
Method Name: test_pdf
Project Name: facebookincubator/ml_sampler
Commit Name: b76cd982dc25cbb328301a8fc50dca684438fa67
Time: 2017-02-15
Author: spencebeecher@fb.com
File Name: tests/test_ml_sampler.py
Class Name: MLSamplerTest
Method Name: test_hist
Project Name: facebookincubator/ml_sampler
Commit Name: b76cd982dc25cbb328301a8fc50dca684438fa67
Time: 2017-02-15
Author: spencebeecher@fb.com
File Name: tests/test_ml_sampler.py
Class Name: MLSamplerTest
Method Name: test_bin_weights
Project Name: facebookincubator/ml_sampler
Commit Name: b76cd982dc25cbb328301a8fc50dca684438fa67
Time: 2017-02-15
Author: spencebeecher@fb.com
File Name: tests/test_ml_sampler.py
Class Name: MLSamplerTest
Method Name: test_sample