Fit¶
Trains a model. Use “Ports > Input > Y” for supervised/unsupervised training
Documentation¶
Trains a machine learning model using the input data. It uses the implementation of the model class .fit method. It adjusts the internal parameters of the model based on the patterns found in the training dataset. It is recommended to first use the Simple Train-Test Split node to separate the data before training, for unbiased verification. (Note that some advanced models will not work with this node but must be used with the Fit Dataset node from Advanced Machine Learning extension.)
For unsupervised learining the input port Y can be removed. However, some models might not be defined to be trained unsupervised and need to have the Y supplied.
Definition¶
Input ports¶
- in-model
Type: modelDescription: Input model- X
Type: tableDescription: X- Y0
Type: tableDescription: YOptional number of ports: 0–1 (default: 1)- sample_weights
Type: tableDescription: Sample weightsOptional number of ports: 0–1 (default: 0)
Output ports¶
- out-model
Type: modelDescription: Output model
Examples¶
The node can be found in:
Implementation¶
- class node_application.Fit[source]