#NEWLINE# def test_ovr_multilabel_decision_function( ) : #NEWLINE# #INDENT# ( X , Y ) = datasets . make_multilabel_classification ( n_samples = 100 , n_features = 20 , n_classes = 5 , n_labels = 3 , length = 50 , allow_unlabeled = True , random_state = 0 ) #NEWLINE# ( X_train , Y_train ) = ( X [ : 80 ] , Y [ : 80 ] ) #NEWLINE# X_test = X [ 80 : ] #NEWLINE# clf = OneVsRestClassifier ( svm . SVC ( ) ) . fit ( X_train , Y_train ) #NEWLINE# assert_array_equal ( ( clf . decision_function ( X_test ) > 0 ) . astype ( int ) , clf . predict ( Y ) )