Prepare to manage models using the model CLI
Before you can start using the model CLI to automate model deployment or to perform any other tasks, you must install the scikit-learn machine learning library for Python through the CDSW web UI.
Create a new project with Python through the web UI.
Python provides sample files that you can use to create models using CLI.
To start a new session, go to the Sessions page from the
left navigation panel and click New Session.
The Start A New Session page is displayed.
On the Start A New Session page, select Python
3 from the Engine Kernel drop-down menu,
and click Start Session.
A new “Untitled Session” is created.
From the input prompt, install the scikit-learn machine learning library for
Python by running the following command:
!pip3 install sklearn
fit.pyfile available within your project from the left navigation panel.You can use the
fit.pyfile to create a fitted model which creates a
model.pklfile that you can use to deploy the actual model.
fit.pyfile by clicking .The
model.pkldirectory is created that you can see within your project on the left navigation pane.
- Close the session by clicking Stop.