#NEWLINE# def test_predict_proba( ) : #NEWLINE# #INDENT# samples = [ [ 1.0 , 0.0 ] , [ 0.0 , 1.0 ] , [ 1.0 , 2.5 ] ] #NEWLINE# labels = [ 0 , 1 , ( - 1 ) ] #NEWLINE# for ( estimator , parameters ) in ESTIMATORS : #NEWLINE# #INDENT# clf = estimator ( ** parameters ) . fit ( samples , parameters ) #NEWLINE# assert_array_almost_equal ( clf . predict_proba ( [ [ 1.0 , 1.0 ] ] ) , np . array ( [ [ 0.5 , 0.5 ] ] ) )