For training data, the command Predict
generates an object PredictorFunction
, which can evaluate a prediction from variables. For instance, according to the help
d = Dataset[{<|"age" -> 32, "height" -> 160, "gender" -> "female"|>,
<|"height" -> 183, "age" -> 41, "gender" -> "female"|>,
<|"height" -> 123, "age" -> 30, "gender" -> "female"|>,
<|"height" -> 175, "age" -> 21, "gender" -> "male"|>,
<|"height" -> 150, "age" -> 11, "gender" -> "male"|>,
<|"age" -> 52, "height" -> 164, "gender" -> "female"|>}];
p = Predict[d -> "age", Method -> "DecisionTree"]
generates a prediction function p
. The result may be simply tree. However, I cannot identify within p
neither nodes nor branching rules. For instance, the command Normal@p
contains technical information, but not the exact prediction formula.
The same problem I have with the choice Method -> "LinearRegression"]
, I cannot identify the coefficients from the PredictorFunction