def test_iht_fit():
 iht = InstanceHardnessThreshold(ESTIMATOR, random_state=RND_SEED)
 iht.fit(X, Y)
 assert_equal(iht.min_c_, 0)
 assert_equal(iht.maj_c_, 1)
 assert_equal(iht.stats_c_[0], 6)
 assert_equal(iht.stats_c_[1], 9)

def test_iht_fit ( ) : iht = InstanceHardnessThreshold ( ESTIMATOR , random_state = RND_SEED ) iht . fit ( X , Y ) assert_equal ( iht . min_c_ , 0 ) assert_equal ( iht . maj_c_ , 1 ) assert_equal ( iht . stats_c_ [ 0 ] , 6 ) assert_equal ( iht . stats_c_ [ 1 ] , 9 )
test the fitting method .