#NEWLINE# def test_sgd( self ) : #NEWLINE# #INDENT# clf = self . factory ( alpha = 0.1 , n_iter = 2 , fit_intercept = False ) #NEWLINE# clf . fit ( [ [ 0 , 0 ] , [ 1 , 1 ] , [ 2 , 2 ] ] , [ 0 , 1 , 2 ] ) #NEWLINE# assert_equal ( clf . coef_ [ 0 ] , clf . coef_ [ 1 ] )