4.4. Predict¶
The ML Predict Plugin allows for a Machine Learning Model to be used for predicting values.
python bin/lucy.egg plugins ml_predict -h
Primary Arguments¶
Main specifications for a Predict task.
Argument | Detail |
---|---|
-input | PATH, COMMA SEPARATED LIST. File path to a CSV or list of values that will be used for prediction(s). These columns/values must appear in the same order the model was trained on. |
-mfile | PATH. File path to a model file that holds the model that will be used for making predictions. This is the serialized pickle (PKL) file. |
-output | PATH. File path to where the predicted values will be saved. This is a CSV that holds the input points along with their corresponding predictions. |
-label | WIP. |
Predict Examples¶
python bin/lucy.egg plugins ml_predict -input x_pred.csv -mfile iris_dtree.pkl
-output y_pred.csv
bin/lucy ML Predict -input workflow_data.csv -mfile workflows.dtree -clabel next_worker_predicted -output prediction.csv
bin/lucy ML Predict -input "1000, curve_scale, curve_engtotruestress" -data-headers "workflow_id,prev_worker,current_worker" -mfile workflows.dtree -label next_worker_predicted