b60e3ad9b7c9ca78caee795618a6d87e4ca6c6c3,test/test_nearmiss.py,,,#,7

Before Change



plt.figure()
plt.scatter(ncrx[ncry==0, 0], ncrx[ncry==0, 1])
plt.scatter(ncrx[ncry==1, 0], ncrx[ncry==1, 1], color="r")
plt.show()

After Change


                           n_features=20, n_clusters_per_class=1,\
                           n_samples=5000, random_state=10)

r = float(np.count_nonzero(y == 1)) / float(np.count_nonzero(y == 0))

// // Try NearMiss algorithm
// NM1 = NearMiss(random_state=1, version=1, metric="l1")
// nm1x, nm1y = NM1.fit_transform(x, y)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: b60e3ad9b7c9ca78caee795618a6d87e4ca6c6c3
Time: 2015-05-26
Author: glemaitre@visor.udg.edu
File Name: test/test_nearmiss.py
Class Name:
Method Name:


Project Name: CNuge/kaggle-code
Commit Name: b7990885d8b26b9404fd9ce952b0b2f005019594
Time: 2018-01-12
Author: nugentc@uoguelph.ca
File Name: california_housing/feature_engineering.py
Class Name:
Method Name:


Project Name: interactiveaudiolab/nussl
Commit Name: 6ad8b3a6d6e98dda6f83390c6f7935377788d2bc
Time: 2015-07-31
Author: fpishdadian@u.northwestern.edu
File Name: KAM.py
Class Name: Kernel
Method Name: sim


Project Name: enthought/chaco
Commit Name: 68b1b603763f5fd0115e18736134e998dcd70911
Time: 2009-06-26
Author: bhendrix@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: enthought/chaco/tools/toolbars/plot_toolbar.py
Class Name: PlotToolbar
Method Name: PlotToolbar_1