#NEWLINE# def test_regressionTrees_5( self ) : #NEWLINE# #INDENT# res = FORA . eval ( '\n            let y_median = math.stats.median(y.getColumn(0));\n            let y_medians = dataframe.Series(Vector.uniform(size(X), y_median));\n            \n            let neg_gradient = (y.getColumn(0) - y_medians) ~~ math.sign;\n            neg_gradient = dataframe.DataFrame([neg_gradient])\n\n            let treeBuilder = \n                math.tree.RegressionTree.RegressionTreeBuilder(\n                    maxDepth:2, minSamplesSplit:2,\n                    splitMethod:`exhaustive\n                    );\n            let tree = treeBuilder.fit(X, neg_gradient)\n            \n            // checked against scikit\n            assertions.assertClose(tree.score(X, y), 0.53214422106820458)\n            ' , { #NEWLINE# #INDENT# 'X' : self . X ( ) , #NEWLINE# 'y' : self . y ( ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertTrue ( res )