Database Reference
In-Depth Information
We can see from the linear regression documentation that we need to pass in the training
data at a minimum, but we can set any of the other model parameters using this train
method.
Similarly, for the decision tree model, which has a trainRegressor method (in addi-
tion to a trainClassifier method for classification models):
help(DecisionTree.trainRegressor)
The preceding code would display the following documentation:
Decision tree regression help documentation
Search WWH ::




Custom Search