#NEWLINE# def test_binary_logistic_regression_gd( ) : #NEWLINE# #INDENT# t = np . array ( [ [ ( - 0.2 ) , 0.2 ] , [ ( - 3.09 ) , 3.09 ] ] ) #NEWLINE# lr = SoftmaxRegression ( epochs = 200 , eta = 0.005 , minibatches = 1 , random_seed = 1 ) #NEWLINE# lr . fit ( X_bin , y_bin ) #NEWLINE# np . testing . assert_almost_equal ( lr . w_ , t , 2 ) #NEWLINE# assert ( y_bin == lr . predict ( X_bin ) ) . all ( )