673c818375a3588757b1d2a7812a2d1b1d18edd5,tutorials/synthetic/synthetic.py,,,#,24

Before Change



//%%
// Compare to the true (empirical) accuracies
Y = np.array([d.y for d in data])
accs_emp = lf_empirical_accuracies(L, Y)
accs_est = label_model.get_accuracies()
print(f"Avg. LF accuracy estimation error: {np.mean(np.abs(accs_emp - accs_est))}")

After Change



//%%
m = 4
tfs = generate_resampling_tfs(list(range(d, d + n_noise_dim)))
policy = RandomAugmentationPolicy(len(tfs), sequence_length=1)
tf_applier = PandasTFApplier(tfs, policy, k=1, keep_original=True)
data_augmented = tf_applier.apply(data)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: snorkel-team/snorkel
Commit Name: 673c818375a3588757b1d2a7812a2d1b1d18edd5
Time: 2019-08-13
Author: henry.ehrenberg@outlook.com
File Name: tutorials/synthetic/synthetic.py
Class Name:
Method Name:


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: d3ac72d887c808a90948db469d8db2f364825992
Time: 2018-04-09
Author: M.N.Tran@ibm.com
File Name: src/classifiers/tensorflow.py
Class Name: TFClassifier
Method Name: class_gradient


Project Name: analysiscenter/batchflow
Commit Name: eba587e7549e252036f2500e9a3b3a18a778b335
Time: 2017-11-17
Author: rhudor@gmail.com
File Name: dataset/batch_image.py
Class Name: ImagesBatch
Method Name: assemble