668a64ffe429a4caf58cabf82f3679c129365d6f,rankeval/analysis/statistical.py,,_randomization,#Any#Any#Any#,67

Before Change


		sel = np.random.choice([False, True], len(metric_scores_A))
		// compute avg performance of randomized models
		A_mean = (np.sum(best_metrics [np.logical_not(sel)]) + np.sum(worst_metrics[sel]) )/N
		B_mean = (np.sum(worst_metrics[np.logical_not(sel)]) + np.sum(best_metrics [sel]) )/N
		// performance difference
		delta = A_mean - B_mean

After Change


	N = float(len(metric_scores_A))

	A_sum = np.sum(best_metrics)
	B_sum = np.sum(worst_metrics)

	// repeat n_prem times
	for i in range(n_perm):
		// select a random subset
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: hpclab/rankeval
Commit Name: 668a64ffe429a4caf58cabf82f3679c129365d6f
Time: 2017-06-20
Author: claudio.lucchese@isti.cnr.it
File Name: rankeval/analysis/statistical.py
Class Name:
Method Name: _randomization


Project Name: tensorflow/cleverhans
Commit Name: 705e7cf1adf24ff97cb725f198563e86cb221a2f
Time: 2019-06-22
Author: siarheisiniak@yahoo.com
File Name: cleverhans/model_zoo/deep_k_nearest_neighbors/dknn.py
Class Name: DkNNModel
Method Name: find_train_knns


Project Name: chainer/chainercv
Commit Name: 7890226d1f7c48e42888768467e41f29bf4b1422
Time: 2017-05-28
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/links/model/ssd/multibox_loss.py
Class Name:
Method Name: multibox_loss