# FAQ

* [Frequently Asked Questions](#frequently-asked-questions)
  * [I see only two notebooks, is that ok?](#i-see-only-two-notebooks-is-that-ok)
  * [I got an error 'IndexError: list index out of range' when I run Jupytor notebook to save the model (Chapter 5: Analyze - \[Lab\] Building AI Model in Jupyter Notebooks) in step  "4.4 Save the Model"](#i-got-an-error-indexerror-list-index-out-of-range-when-i-run-jupytor-notebook-to-save-the-model-chapter-5-analyze---lab-building-ai-model-in-jupyter-notebooks-in-step-44-save-the-model)
  * [I'm doing the Data Preparation Lab for the 3rd track, but in my Cloud Pak Data project I can only download, promote and remove the csv data; I don't have the option to refine it.](#im-doing-the-data-preparation-lab-for-the-3rd-track-but-in-my-cloud-pak-data-project-i-can-only-download-promote-and-remove-the-csv-data-i-dont-have-the-option-to-refine-it)
  * [What do I do if importing the project into the platform takes a long time?](#what-do-i-do-if-importing-the-project-into-the-platform-takes-a-long-time)
  * [Why do I see the following when I push the python app to IBM Cloud `**ERROR** Could not install python`](#why-do-i-see-the-following-when-i-push-the-python-app-to-ibm-cloud-error-could-not-install-python)
    * [Accessing Files](#accessing-files)
    * [Importing Files into the Cloud Pak for Data as a Service platform](#importing-files-into-the-cloud-pak-for-data-as-a-service-platform)

## I see only two notebooks, is that ok?

Answer: Yes it is ok. There are only two notebooks in your zip file, even thought you see more in the video. The additional notebooks are for the demos, therefore not included in the zip file. We decided this to reduce the number of notebooks and reduce confusion. (Apparently, in has caused instead cause confusion!!)

We will make sure to update the zip file after the conference and add them in so you can go through them at your own pace after the workshop.

## I got an error 'IndexError: list index out of range' when I run Jupytor notebook to save the model (Chapter 5: Analyze - \[Lab] Building AI Model in Jupyter Notebooks) in step  "4.4 Save the Model"

Answer: This Error does not cause a problem with saving the model, and can safely be ignored.

## I'm doing the Data Preparation Lab for the 3rd track, but in my Cloud Pak Data project I can only download, promote and remove the csv data; I don't have the option to refine it.

Answer: When you go to the Navigation "hamburger" menu and choose Services -> Services instances do you see "Watson Studio"? If not, you need to create one:

![Create Services instance](https://1986830131-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0YPhXPJogwds2wYiEl%2Fsync%2Fa51cd9a31d9255eb77c6399580b5792f29ee9333.png?generation=1605024913813303\&alt=media)

If you don't see "Watson Studio" under "Services instances", click +Add Service and search for "Watson Studio" and add it. Make sure that it is in the same region as your Cloud Pak for Data service.

## What do I do if importing the project into the platform takes a long time?

If you are facing any issues with importing the project into the IBM Cloud Pak for Data as a Service platform, all you need to do is import the relevant notebooks and/or data assets for each lab.

## Why do I see the following when I push the python app to IBM Cloud `**ERROR** Could not install python`

Answer: Frequently, IBM Cloud updates to the newer versions of Python and deprecates the older versions. If you see this error, open the `runtime.txt` file in your python app folder and bump up the python version to `python-3.6.12` or newer as suggested in the error message.

Alternatively, you can remove the `runtime.txt` if you just want to use whatever is the latest version, thought it is best practice to always know what version of he tools you're using and update the version yourself.

### Accessing Files

If you ran the following commands to download the project, navigate to `projects` then unzip the folder named `CreditRiskProject.zip` to access the content you need for each lab. All files you need are in the `assests` folder.

```bash
   git clone https://github.com/IBM/credit-risk-workshop-cpd.git
   cd credit-risk-workshop-cpd
```

If you downloaded the zip folder from the link provided in the Pre-work section, make sure you extract the zip folder after it's downloaded. All files you need are in the `assests` folder.

### Importing Files into the Cloud Pak for Data as a Service platform

You will need to create a new empty project to import the files you'll use into.

* Go the (☰) navigation menu, expand *Projects* and click on the `View all projects` link.

![(☰) Menu -> Projects](https://1986830131-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0YPhXPJogwds2wYiEl%2Fsync%2F4ff65787ae8ca416e09cfaa142d83969415e0e32.png?generation=1603461091113882\&alt=media)

* Click on the `New +` button on the top.

![Start a new project](https://1986830131-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0YPhXPJogwds2wYiEl%2Fsync%2F05c8aedb58262add5405019c891f08664164003f.png?generation=1603461103798156\&alt=media)

* We are going to create an empty project. Select the `Create an empty project` option.

![Create project from file](https://1986830131-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0YPhXPJogwds2wYiEl%2Fsync%2F08bf30f0294c87752bf7d2fdac8ae28cfdfb17f2.png?generation=1605023979220360\&alt=media)

* Give the project a name. You also need to provide an object storage instance for this project. If you haven't already created a Cloud Object Storage instance in your IBM Cloud account, you can create one now by clicking `Add`.

![Project name](https://1986830131-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0YPhXPJogwds2wYiEl%2Fsync%2F0bc87ea7c774f3cf114789d0b2a57e324d42d641.png?generation=1605023979120241\&alt=media)

* A new tab opens up, where you can create the Cloud Object Service. By default, a `Lite` (Free) plan will be selected. Scroll down and update the name of your Cloud Object Storage service if you wish, and click `Create`.

![Create COS instance](https://1986830131-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0YPhXPJogwds2wYiEl%2Fsync%2F34f25368323aa668981893a046349a205d5d0cba.png?generation=1603461112640866\&alt=media)

* The browser tab will automatically close when the Cloud Object Storage instance has been created. Back on IBM Cloud Pak for Data as a Service, click `Refresh`.

![Refresh COS](https://1986830131-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0YPhXPJogwds2wYiEl%2Fsync%2F6056c435af3cdfa1d0d2b701e5e67755ab7c09b9.png?generation=1605023969347210\&alt=media)

* The newly created Cloud Object Storage instance will now be displayed under "Storage". Click `Create` to finish creating the project.

![Create project](https://1986830131-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0YPhXPJogwds2wYiEl%2Fsync%2F1436a4fcdf95ce2620d3cfd9a70282fc0e61c473.png?generation=1605023969974408\&alt=media)

* To import the notebook you need for a lab, click on `Add to project +` button.

![Add to project](https://1986830131-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0YPhXPJogwds2wYiEl%2Fsync%2Fcb0cb7c0e7a9219d24ecb216df0620a105730f75.png?generation=1605023979007957\&alt=media)

* Choose `Notebook`.

![Notebook](https://1986830131-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0YPhXPJogwds2wYiEl%2Fsync%2F47310dc87b5290c8e6a239d3c913e1b2599c6070.png?generation=1605023969714319\&alt=media)

* Then, choose `From file`. Keep the environment the same and browse your files or drag and drop your notebook file. Give your notebook a name.

![Create notebook](https://1986830131-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0YPhXPJogwds2wYiEl%2Fsync%2F2b669ef6a8694a5e386d0d831f0631b3f9170e12.png?generation=1605023969493780\&alt=media)

* Finally. click `Create`.

![Created notebook](https://1986830131-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0YPhXPJogwds2wYiEl%2Fsync%2F78d6470010a705155c5d00c63a2535024972689d.png?generation=1605023969797660\&alt=media)

* To import any data asset you need like CSV files, click on `0100` button at the top right.

![Add to project](https://1986830131-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0YPhXPJogwds2wYiEl%2Fsync%2F987ff44179efd30c80478264ac2569bac7ccf07f.png?generation=1605023979169757\&alt=media)

* Browse or drag and drop the data asset you want to add.&#x20;

![Add Data](https://1986830131-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0YPhXPJogwds2wYiEl%2Fsync%2F99ed2e375446eea1e3c6a8ef56de467900deb9b5.png?generation=1605023979098278\&alt=media)

* Once upload is complete, click on `Assets` to view your uploaded file.

![Uploaded Successfully](https://1986830131-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0YPhXPJogwds2wYiEl%2Fsync%2F5573a3d03998e1a68ac77fa87b49e05dbfc1b01d.png?generation=1605023979108673\&alt=media)
