#NEWLINE# def test_gradientBoostedBinaryClassificationExhaustiveSplits( self ) : #NEWLINE# #INDENT# with open ( 'hastie-X.csv' ) as f : #NEWLINE# #INDENT# text = ( "parsing.csv('''%s''', defaultColumnType: Float64)" % f . read ( ) ) #NEWLINE# X = FORA . eval ( text ) #NEWLINE# #UNINDENT# with open ( 'hastie-y.csv' ) as f : #NEWLINE# #INDENT# y = FORA . eval ( ( "parsing.csv('''%s''', defaultColumnType: Float64)" % f . read ( ) ) ) #NEWLINE# #UNINDENT# res = FORA . eval ( '\n            let builder = \n                math.ensemble.gradientBoosting.GradientBoostedClassifierBuilder(\n                    splitMethod: `exhaustive, nBoosts: 10, maxDepth: 4\n                    )\n\n            let fit = builder.fit(X, y);\n            assertions.assertEqual(fit.score(X, y), 1.0)\n            ' , { #NEWLINE# #INDENT# 'X' : X , #NEWLINE# 'y' : y , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertTrue ( X )