After loading the data and performing exploratory data analysis, model selection, training & testing.
- Check notebook here iris_ml
Import the joblib library and save model
from joblib import dump, load
dump(trained_model, 'filename.joblib')
Load joblib anywhere using python
saved_model = load('filename.joblib')
The saved model can then be used to test new samples of data.