MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / regress

Method regress

JSAT/src/jsat/classifiers/trees/DecisionTree.java:53–61  ·  view source on GitHub ↗
(DataPoint data)

Source from the content-addressed store, hash-verified

51 private DecisionStump baseStump = new DecisionStump();
52
53 @Override
54 public double regress(DataPoint data)
55 {
56 if(data.numNumericalValues() != root.stump.numNumeric() || data.numCategoricalValues() != root.stump.numCategorical())
57 throw new ModelMismatchException("Tree expected " + root.stump.numNumeric() + " numeric and " +
58 root.stump.numCategorical() + " categorical features, instead received data with " +
59 data.numNumericalValues() + " and " + data.numCategoricalValues() + " features respectively");
60 return root.regress(data);
61 }
62
63 @Override
64 public void train(RegressionDataSet dataSet, ExecutorService threadPool)

Calls 5

numNumericalValuesMethod · 0.80
numNumericMethod · 0.80
numCategoricalValuesMethod · 0.80
numCategoricalMethod · 0.80
regressMethod · 0.65

Tested by 1