def test_cc_fit():
 ratio = 'auto'
 cc = ClusterCentroids(ratio=ratio, random_state=RND_SEED)
 cc.fit(X, Y)
 assert_equal(cc.min_c_, 0)
 assert_equal(cc.maj_c_, 1)
 assert_equal(cc.stats_c_[0], 3)
 assert_equal(cc.stats_c_[1], 7)

def test_cc_fit ( ) : ratio = 'auto' cc = ClusterCentroids ( ratio = ratio , random_state = RND_SEED ) cc . fit ( X , Y ) assert_equal ( cc . min_c_ , 0 ) assert_equal ( cc . maj_c_ , 1 ) assert_equal ( cc . stats_c_ [ 0 ] , 3 ) assert_equal ( cc . stats_c_ [ 1 ] , 7 )
test the fitting method .