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

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