# Introduction

## WARNING: This repository is no longer maintained :warning:

> This repository does not have active maintainers. Pull requests for fixes and enhancements will still be accepted, but no active work will be done on this workshop.

This Workshop uses Cloud Pak for Data version 3.5

## Analyzing Credit Risk with Cloud Pak for Data on OpenShift

Welcome to our workshop! In this workshop we'll be using the Cloud Pak for Data platform to Collect Data, Organize Data, Analyze Data, and Infuse AI into our applications. The goals of this workshop are:

* Collect and virtualize data
* Visualize data with Data Refinery
* Create and deploy a machine learning model
* Monitor the model
* Create a Python app to use the model

### About this workshop

* [Agenda](#agenda)
* [Compatability](#compatability)
* [About Cloud Pak for Data](#about-cloud-pak-for-data)
* [Credits](#credits)

#### About the data set

In this workshop we will be using a credit risk / lending scenario. In this scenario, lenders respond to an increased pressure to expand lending to larger and more diverse audiences, by using different approaches to risk modeling. This means going beyond traditional credit data sources to alternative credit sources (i.e. mobile phone plan payment histories, education, etc), which may introduce risk of bias or other unexpected correlations.

![Use Case Diagram](https://4168210942-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0YPhXPJogwds2wYiEl%2Fsync%2F2155064a2c6c4d1788e325ded55da73be4744e73.png?generation=1591895968978400\&alt=media)

The credit risk model that we are exploring in this workshop uses a training data set that contains 20 attributes about each loan applicant. The scenario and model use synthetic data based on the \[UCI German Credit dataset]\(<https://archive.ics.uci.edu/ml/datasets/Statlog+(German+Credit+Data>)). The data is split into three CSV files and are located in the [data](https://github.com/IBM/credit-risk-workshop-cpd/tree/e087b952ae4988edccb8b3041775a9abd5cc2863/data/split/README.md) directory of the GitHub repository you will download in the pre-work section.

**Applicant Financial Data**

This file has the following attributes:

* CUSTOMERID (hex number, used as Primary Key)
* CHECKINGSTATUS
* CREDITHISTORY
* EXISTINGSAVINGS
* INSTALLMENTPLANS
* EXISTINGCREDITSCOUNT

**Applicant Loan Data**

This file has the following attributes:

* CUSTOMERID
* LOANDURATION
* LOANPURPOSE
* LOANAMOUNT
* INSTALLMENTPERCENT
* OTHERSONLOAN
* RISK

**Applicant Personal Data**

This file has the following attributes:

* CUSTOMERID
* EMPLOYMENTDURATION
* SEX
* CURRENTRESIDENCEDURATION
* OWNSPROPERTY
* AGE
* HOUSING
* JOB
* DEPENDENTS
* TELEPHONE
* FOREIGNWORKER
* FIRSTNAME
* LASTNAME
* EMAIL
* STREETADDRESS
* CITY
* STATE
* POSTALCODE

### Agenda

|       |                                                                                                                                                                                                                                                                                                                         |                                                                                                                          |
| ----- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| 00:05 | Welcome                                                                                                                                                                                                                                                                                                                 | Welcome to the Cloud Pak for Data workshop                                                                               |
| 00:20 | Lecture - Intro and Overview                                                                                                                                                                                                                                                                                            | Introduction to Cloud Pak for Data and an Overview of this workshop                                                      |
| 00:20 | Lab - [Pre-work](https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/getting-started/pre-work)                                                                                                                                                                                                        | Clone or Download the repo, create a project, create a deployment space                                                  |
| 00:10 | Walkthrough - [Pre-work](https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/getting-started/pre-work)                                                                                                                                                                                                | Clone or Download the repo, create a project, create a deployment space                                                  |
| 00:20 | Lecture - Data Refinery and Data Virtualization                                                                                                                                                                                                                                                                         | Data Refinery and Data Virtualization                                                                                    |
| 00:30 | Lab - [Data Connection and Virtualization](https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/credit-risk-workshop/data-connection-and-virtualization) and [importing the data into the project](https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/credit-risk-workshop/adddata) | Creating a new connection, virtualizing the data, importing the data into the project                                    |
| 00:10 | Walkthrough - [Data Connection and Virtualization](https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/credit-risk-workshop/data-connection-and-virtualization)                                                                                                                                       | Creating a new connection, virtualizing the data, importing the data into the project                                    |
| 00:15 | Lab - [Import Data into Project](https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/credit-risk-workshop/adddata)                                                                                                                                                                                    | Importing data in your projects                                                                                          |
| 00:05 | Walkthrough - [Import Data into Project](https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/credit-risk-workshop/adddata)                                                                                                                                                                            | Importing data in your projects                                                                                          |
| 00:15 | Lab - [Data Visualization with Data Refinery](https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/credit-risk-workshop/data-visualization-and-refinery)                                                                                                                                               | Refining the data, visualizing and profiling the data                                                                    |
| 00:10 | Walkthrough - [Data Visualization with Data Refinery](https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/credit-risk-workshop/data-visualization-and-refinery)                                                                                                                                       | Refining the data, visualizing and profiling the data                                                                    |
| 00:15 | Lecture - Watson Knowledge Catalog                                                                                                                                                                                                                                                                                      | Enterprise governance with Watson Knowledge Catalog                                                                      |
| 00:20 | Lab - [Enterprise data governance for Viewers using Watson Knowledge Catalog](https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/credit-risk-workshop/watson-knowledge-catalog-user)                                                                                                                 | Use and Enterprise data catalog to search, manage, and protect data                                                      |
| 00:05 | Walkthrough - [Enterprise data governance for Viewers using Watson Knowledge Catalog](https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/credit-risk-workshop/watson-knowledge-catalog-user)                                                                                                         | Use and Enterprise data catalog to search, manage, and protect data                                                      |
| 00:20 | Lab - [Enterprise data governance for Admins using Watson Knowledge Catalog](https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/credit-risk-workshop/watson-knowledge-catalog-admin)                                                                                                                 | Create new Categories, Business terms, Policies and Rules in Watson Knowledge Catalog                                    |
| 00:05 | Walkthrough - [Enterprise data governance for Admins using Watson Knowledge Catalog](https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/credit-risk-workshop/watson-knowledge-catalog-admin)                                                                                                         | Create new Categories, Business terms, Policies and Rules in Watson Knowledge Catalog                                    |
| 00:15 | Lecture - Machine Learning                                                                                                                                                                                                                                                                                              | Machine Learning and Deep Learning concepts                                                                              |
| 00:20 | Lab - [Machine Learning with Jupyter](https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/credit-risk-workshop/machine-learning-in-jupyter-notebook)                                                                                                                                                  | Building a model with Spark, deploying the model with Watson Machine Learning, testing the model with a Python Flask app |
| 00:10 | Walkthrough - [Machine Learning with Jupyter](https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/credit-risk-workshop/machine-learning-in-jupyter-notebook)                                                                                                                                          | Building a model with Spark, deploying the model with Watson Machine Learning, testing the model with a Python Flask app |
| 00:20 | Lab - AutoAI - [Machine Learning with AutoAI](https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/credit-risk-workshop/machine-learning-autoai)                                                                                                                                                       | Use AutoAi to quickly generate a Machine Learning pipeline and model                                                     |
| 00:10 | Walkthrough - [Machine Learning with AutoAI](https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/credit-risk-workshop/machine-learning-autoai)                                                                                                                                                        | Use AutoAi to quickly generate a Machine Learning pipeline and model                                                     |
| 00:30 | Lab - [Deploy and Test Machine Learning Models](https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/credit-risk-workshop/machine-learning-deployment-scoring)                                                                                                                                         | Deploy and machine learning models using several approaches                                                              |
| 00:10 | Walkthrough - [Deploy and Test Machine Learning Models](https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/credit-risk-workshop/machine-learning-deployment-scoring)                                                                                                                                 | Deploy and machine learning models using several approaches                                                              |
| 00:15 | Lab - [Monitoring models with OpenScale GUI (Auto setup Monitoring)](https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/credit-risk-workshop/openscale-fastpath)                                                                                                                                     | Quickly deploy an OpenScale demo with Auto setup                                                                         |
| 00:10 | Walkthrough - [Monitoring models with OpenScale GUI (Auto setup Monitoring)](https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/credit-risk-workshop/openscale-fastpath)                                                                                                                             | Quickly deploy an OpenScale demo with Auto setup                                                                         |
| 00:30 | Lab - [Monitoring models with OpenScale (Notebook)](https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/credit-risk-workshop/openscale-notebook)                                                                                                                                                      | See the OpenScale APIs in a Jupyter notebook and manually configure the monitors                                         |
| 00:10 | Walkthrough -  [Monitoring models with OpenScale (Notebook)](https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/credit-risk-workshop/openscale-notebook)                                                                                                                                             | See the OpenScale APIs in a Jupyter notebook and manually configure the monitors                                         |
| 00:10 | Closing                                                                                                                                                                                                                                                                                                                 | Other capabilities, review, and next steps                                                                               |

### Compatability

This workshop has been tested on the following platforms:

* **macOS**: Mojave (10.14), Catalina (10.15)
  * Google Chrome version 81
* **Microsoft**: Windows 10
  * Google Chrome, Microsoft Edge


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ibm-developer.gitbook.io/cloudpakfordata-credit-risk-workshop/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
