def test_bc_fit():
 ratio = 'auto'
 bc = BalanceCascade(ratio=ratio, random_state=RND_SEED)
 bc.fit(X, Y)
 assert_equal(bc.min_c_, 0)
 assert_equal(bc.maj_c_, 1)
 assert_equal(bc.stats_c_[0], 8)
 assert_equal(bc.stats_c_[1], 12)

def test_bc_fit ( ) : ratio = 'auto' bc = BalanceCascade ( ratio = ratio , random_state = RND_SEED ) bc . fit ( X , Y ) assert_equal ( bc . min_c_ , 0 ) assert_equal ( bc . maj_c_ , 1 ) assert_equal ( bc . stats_c_ [ 0 ] , 8 ) assert_equal ( bc . stats_c_ [ 1 ] , 12 )
test the fitting method .