Each sub-module has a convenience function for creating native sklearn
model objects from nextmv.Options
. This convenience function allows you to set up a model using the parameters that are customized through options. Notice that the return type is an sklearn.<Model>
.
Consider the following examples, which make use of the classic diabetes dataset to fit a model and then make a prediction.
Dummy
Run the script:
Ensemble
Run the script:
Run the script:
Linear model
Run the script:
Neural network
Run the script:
Tree
Run the script: