def test_oss_fit():
 oss = OneSidedSelection(random_state=RND_SEED)
 oss.fit(X, Y)
 assert_equal(oss.min_c_, 0)
 assert_equal(oss.maj_c_, 1)
 assert_equal(oss.stats_c_[0], 6)
 assert_equal(oss.stats_c_[1], 9)

def test_oss_fit ( ) : oss = OneSidedSelection ( random_state = RND_SEED ) oss . fit ( X , Y ) assert_equal ( oss . min_c_ , 0 ) assert_equal ( oss . maj_c_ , 1 ) assert_equal ( oss . stats_c_ [ 0 ] , 6 ) assert_equal ( oss . stats_c_ [ 1 ] , 9 )
test the fitting method .