def test_nm1_fit():
 ratio = 'auto'
 nm1 = NearMiss(ratio=ratio, random_state=RND_SEED, version=VERSION_NEARMISS)
 nm1.fit(X, Y)
 assert_equal(nm1.min_c_, 0)
 assert_equal(nm1.maj_c_, 2)
 assert_equal(nm1.stats_c_[0], 3)
 assert_equal(nm1.stats_c_[1], 5)
 assert_equal(nm1.stats_c_[2], 7)

def test_nm1_fit ( ) : ratio = 'auto' nm1 = NearMiss ( ratio = ratio , random_state = RND_SEED , version = VERSION_NEARMISS ) nm1 . fit ( X , Y ) assert_equal ( nm1 . min_c_ , 0 ) assert_equal ( nm1 . maj_c_ , 2 ) assert_equal ( nm1 . stats_c_ [ 0 ] , 3 ) assert_equal ( nm1 . stats_c_ [ 1 ] , 5 ) assert_equal ( nm1 . stats_c_ [ 2 ] , 7 )
test the fitting method .