#NEWLINE# def test_gradientBoostedRegressionWithLearningRate_l2_loss( self ) : #NEWLINE# #INDENT# score = FORA . eval ( '\n            let builder = \n                math.ensemble.gradientBoosting.GradientBoostedRegressorBuilder(\n                    splitMethod: `exhaustive, nBoosts: 100, learningRate: 0.01,\n                    maxDepth: 3, minSamplesSplit: 2\n                    );\n\n            let fit = builder.fit(X,y);\n            fit.score(X, y)' , { #NEWLINE# #INDENT# 'X' : self . X ( ) , #NEWLINE# 'y' : self . y ( ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertAlmostEqual ( self , 0.7290072585890333 )