Golden Bank is a leading mortgage provider through their network of neighborhood branches. This tutorial cover these goals:
- The bank uses AI to process loan applications and needs to avoid unanticipated risk and ensure that its applicants are being treated fairly.
- The bank has sample data in a file and wants to create a prediction model to identify the highest value customers to target for mortgage offerings with minimum development resources and time.
-
Associate machine learning service with project
- If you haven't created required services and the sample project, go to the previous session and complete Prepare Services and Create Project.
- From the Cloud Pak for Data navigation menu, choose Projects > View all projects.
- Open the MLOps and Trustworthy AI project.
- From the Manage tab, choose Services & integrations.
- Click Associate service.
- Select the machine learning service and click Associate.
-
Create the AutoAI experiment
- From the Assets tab, click New asset.
- Click AutoAI.
- Enter “Mortgage Approval AutoAI” as name and click Create.
-
Add a data source to the experiment
- We need to add a data source the experiment and configure AutoAI to build and train models based on the data source
- Click Select from project to add a data source.
- Click Data asset and check GoldenBank_HoldoutData.csv.
- Click Select asset.
-
Verify your screen looks like the following image.
-
Configure the AutoAI experiment
- Now we need to configure the experiment.
- Click No for Create a time series forecast?
- Choose MORTGAGE_APPROVAL for What do you want to predict?
- Click Experiment settings.
- We are doing a binary classification so leave the default prediction type checked.
- We use the default settings:
- Positive class value: 1
- Optimized metric: Accuracy
- Optimized algorithm selection: Score and run time
- Scroll down to select Gradient Boosting Classifier and XGB Classifier as the algorithms for the experiment to run.
- Make sure 2 is highlighted and click Save settings.
-
Verify your screen looks like the following image.
-
Run the AutoAI experiment
- Click Run Experiment.
- It will next take a few minutes to run through various pipelines.
- Click the pipelines on the Relationship map and Pipeline leaderboard to see more information.
-
Verify your screen looks like the following image.
-
Review the pipeline details
- Click the top ranked pipeline, Pipeline 7, with Gradient Boosting Classifier, plus hyperparameter optimization and feature engineering.
- Check Model information.
- Check Feature summary.
- Check Model evaluation.
-
Verify your screen looks like the following image.
-
Save the pipeline
- Click Save as.
- Take the default values and click Create.
- Click View in project after the model is saved successfully.
- Now we have a new model created by AutoAI, ready to be deployed.
-
Verify your screen looks like the following image.
-
Promote the model to a deployment space
- Click Promote to deployment space.
- For the Target space, select “Golden Bank Preproduction Space”, which is created in the previous session.
- Check the Go to model in the space after promoting it option.
- Click Promote.
-
Create an online deployment for the model
- On the deployment space screen, click New deployment.
- For the Deployment type, select Online.
- For the Name, enter “Mortgage Approval AutoAI Deployment” with no leading or trailing spaces.
- For the Serving Name, enter “mortgage_approval_autoai”, append some characters to make it unique if name is taken.
- Click Create.
-
Verify your screen looks like the following image.
-
Make a prediction request to the model – use json
- Click Mortgage Approval AutoAI Deployment.
- On the Test tab, click Paste JSON.
- Click Browse local files.
- Click GoldenBank_AutoAIData.json which you downloaded from the this repo and Confirm.
- Click Predict to make a prediction request for the entry in json.
- It comes back with prediction of 0 and 64% confidence.
- Feel free to change some values and see if prediction results would be different.
-
Verify your screen looks like the following image.