#NEWLINE# def binary_logistic_regression_predict( self , method ) : #NEWLINE# #INDENT# ( X , y ) = self . exampleData ( ) #NEWLINE# def f( ) : #NEWLINE# #INDENT# fit = BinaryLogisticRegressionFitter ( C = ( 1.0 / len ( X ) ) , hasIntercept = True , method = method ) . fit ( X , y ) #NEWLINE# return fit . predict ( X ) #NEWLINE# #UNINDENT# numpy . testing . assert_array_equal ( self . evaluateWithExecutor ( method ) , numpy . array ( [ 0 , 1 , 1 ] ) )