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


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)


//%%
// Generate a set of m LFs that each fire based on a single feature
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

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: QUANTAXIS/QUANTAXIS
Commit Name: 11e4666a0bb2618af767a05086abb0237717251e
Time: 2020-02-21
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAARP/QAAccount.py
Class Name: QA_Account
Method Name: history_min


Project Name: Pinafore/qb
Commit Name: e79449afe45f4da6f1756a7d92bdd3cd6618c638
Time: 2018-04-25
Author: sjtufs@gmail.com
File Name: qanta/buzzer/util.py
Class Name:
Method Name: process_question


Project Name: snorkel-team/snorkel
Commit Name: 81621c12e9d1f4fc02458cbbeff700167bb01396
Time: 2019-08-13
Author: henry.ehrenberg@outlook.com
File Name: test/augmentation/apply/test_tf_applier.py
Class Name: TestTFApplier
Method Name: test_tf_applier