def test_ee_fit():
 ratio = 'auto'
 ee = EasyEnsemble(ratio=ratio, random_state=RND_SEED)
 ee.fit(X, Y)
 assert_equal(ee.min_c_, 0)
 assert_equal(ee.maj_c_, 1)
 assert_equal(ee.stats_c_[0], 2)
 assert_equal(ee.stats_c_[2], 3)
 assert_equal(ee.stats_c_[1], 5)

def test_ee_fit ( ) : ratio = 'auto' ee = EasyEnsemble ( ratio = ratio , random_state = RND_SEED ) ee . fit ( X , Y ) assert_equal ( ee . min_c_ , 0 ) assert_equal ( ee . maj_c_ , 1 ) assert_equal ( ee . stats_c_ [ 0 ] , 2 ) assert_equal ( ee . stats_c_ [ 2 ] , 3 ) assert_equal ( ee . stats_c_ [ 1 ] , 5 )
test the fitting method .