def test_ncr_fit():
 ncr = NeighbourhoodCleaningRule(random_state=RND_SEED)
 ncr.fit(X, Y)
 assert_equal(ncr.min_c_, 0)
 assert_equal(ncr.maj_c_, 2)
 assert_equal(ncr.stats_c_[0], 2)
 assert_equal(ncr.stats_c_[1], 6)
 assert_equal(ncr.stats_c_[2], 7)

def test_ncr_fit ( ) : ncr = NeighbourhoodCleaningRule ( random_state = RND_SEED ) ncr . fit ( X , Y ) assert_equal ( ncr . min_c_ , 0 ) assert_equal ( ncr . maj_c_ , 2 ) assert_equal ( ncr . stats_c_ [ 0 ] , 2 ) assert_equal ( ncr . stats_c_ [ 1 ] , 6 ) assert_equal ( ncr . stats_c_ [ 2 ] , 7 )
test the fitting method .