#NEWLINE# def test_make_biclusters( ) : #NEWLINE# #INDENT# ( X , rows , cols ) = make_biclusters ( shape = ( 100 , 100 ) , n_clusters = 4 , shuffle = True , random_state = 0 ) #NEWLINE# assert_equal ( X . shape , ( 100 , 100 ) , 'X shape mismatch' ) #NEWLINE# assert_equal ( rows . shape , ( 4 , 100 ) , 'rows shape mismatch' ) #NEWLINE# assert_equal ( cols . shape , ( 4 , 100 ) , 'columns shape mismatch' ) #NEWLINE# assert_all_finite ( X ) #NEWLINE# assert_all_finite ( rows ) #NEWLINE# assert_all_finite ( cols ) #NEWLINE# ( X2 , _ , _ ) = make_biclusters ( shape = ( 100 , 100 ) , n_clusters = 4 , shuffle = True , random_state = 0 ) #NEWLINE# assert_array_almost_equal ( X , X2 )