Oracle Analytics Cloud (OAC) can directly consume Oracle Cloud Infrastructure (OCI) Data Science models within OAC Data Flows. This makes OAC a perfect environment for you to seamlessly invoke and apply machine learning models on your own datasets, with the click of a button.
Data scientists analyze, prepare data, explore, and visualize data. They use programming languages such as Python o build accurate machine learning models with it and deploy models into applications. OAC then enables business users to immediately consume these models, providing a friendly environment to make the most of powerful ML models and quickly extract value from them.
To consume a Data Science mode using OAC data flows, you first build and train the model in OCI Data Science, then registered it in OAC. Please refer to the blog entry Create a Data Science Model for OAC to create a binary classification model in OCI and refer to Register a Data Science Model in OAC to register the model.
In this blog, you will learn how to invoke a registered model using OAC data flows.
You will use the Attrition dataset to apply the Binary Classification Data Science model to predict attrition.

Invoke a Data Science Model
To apply the model, the job run created in previous step needs to be invoked. This can be done by running a data flow with the registered model and input dataset.
Create a data flow in OAC by selecting the Employee Attrition dataset. Add a new step and select ‘Apply Model’.

From the list of models displayed, select the model that was registered in the previous step.

Outputs are pre-populated with default values. You can change the output column names if required. The Input columns are pre-populated if the matching column name is found in the input dataset. Otherwise, you will need to provide the required input columns.

Add the Save Dataset step, then save and run the data flow. You can see the output dataset with the corresponding columns – see a sample workbook for reference:

Summary
In this blog, you learned how to invoke a registered OCI Data Science model from OAC. If you have questions, please visit the Oracle Analytics forum on Cloud Customer Connect.
