Use IBM AutoAI
Use the IBM AutoAI service to develop your model without requiring any previous coding experience.
This topic describes how to complete the following tasks:
-
Configure the experiment
-
Select a pipeline
-
Create an IBM Watson Machine Learning model
-
Save the model in a notebook
Configure the experiment
-
From the project Coffee_Sales_Prediction, select New asset > Work with models, then choose Build machine learning models automatically (AutoAI). service.
-
Define the name for the AutoAI Experiment as AutoAI_coffee_sales , then select the appropriate environment. Click Create.
-
Add the coffee sales dataset, select Select data from project > Data asset > COFFEE_SALES_DATASET_shaped_2.csv > Select asset.
-
In Configure AutoAI experiment > Configure details > Create a time series analysis, select No.
-
In Configure details > What do you want to predict?, select the column SALES_CLASS. AutoAI predicts the best-suited prediction type from an initial analysis of the selected column.
-
(Optional) Select Experiment settings to customize you experiment. Customize the Prediction settings by adjusting the default values for prediction type, optimized metric, algorithm, and so on.
-
In Data source, select the training data for the model. This example uses Training data split:
90%and Holdout data split:10%. Change other settings as required.
-
In Runtime, change the running environment to match your model training needs.
-
Select Save settings.
-
-
Select Run experiment.
Select a pipeline
After the experiment has run, the Pipeline leaderboard provides detailed information about the top-performing algorithm based on accuracy results. You can also view the enhancement applied to boost the pipeline's accuracy, specialization, and rank according to accuracy and build time.
-
Click the pipeline to learn more information about the different types of Evaluation used to build the pipeline, such as Model evaluation, Confusion matrix, Precision recall, Threshold.

-
Choose the best performing pipeline, Pipeline 9, select Save as. There are two options:
-
Save it as a Watson Machine Learning Model that you can test with new data, deploy to make predictions, and track its lineage activity.
-
Save it as a Notebook to view the code that created the model or interact with the model using programming language.
-
Create an IBM Watson Machine Learning model
-
Select Model, provide a name for the model, click Create.
-
Your new model is located in the project Coffee_Sales_Prediction > Assets > Assets types > Models > AutoAI_coffee_sales - P9 LGBM Classifier - Model.
-
Select the model to view the Input Schema.
-
To deploy the model, select the Promote to space.
-
In Target space, select Create a new deployment space for the model, and provide the name as AutoAI_Deployment_Space. Click Create and select Promote.
-
Select Navigation Menu > Deployments > Spaces > AutoAI_Deployment_Space.
-
In Assets, select the model AutoAI_coffee_sales - P9 LGBM Classifier - Model
-
Select New deployment and provide the name for the deployment. Click Create. Wait for the initialization to complete.
-
To predict the daily coffee sales, select the deployment to test the model by providing input for the Test phase.

-
Our model predicts that the coffee sale will be in the medium range 2 on that particular day, with an accuracy range of 80% to 100%.

Save the model in a notebook
-
Select Notebook, specify the Name and Runtime environment. Click Create.

-
The notebook is located in the project Coffee_Sales_Prediction > Assets > Assets types > Notebooks > AutoAI_coffee_sales - P9 LGBM Classifier - Notebook. The notebook consists of the code used to build the model, you can review and use the code for future enhancements.