The purpose of this repository is to be the central aggregation, curation, and distribution point for Juypter Notebooks that are developed in support of the Intel® AI Analytics Toolkit (AI Kit). These initial hands-on exercises introduce you to predictive modeling using decision trees, bagging, and XGBoost.
The Jupyter Notebooks for the exercises are in the AI_Kit_XGBoost_Predictive_Modeling folder, and the answers to these exercises in the AI_Kit_XGBoost_Predictive_Modeling.complete folder.
| Optimized for | Description |
|---|---|
| OS | Ubuntu* 20.04 (or newer) Windows Subsystem for Linux (WSL) |
| Software | Intel® oneAPI Base Toolkit (Base Kit) Intel® AI Analytics Toolkit (AI Kit) |
The Jupyter Notebooks are tested for and can be run on the Intel® Devcloud for oneAPI.
The referenced folders and Notebooks are in the AI_Kit_XGBoost_Predictive_Modeling folder. The AI_Kit_XGBoost_Predictive_Modeling.complete folder has the same structure.
-
Update the package manager on your system.
sudo apt update && sudo apt upgrade -y -
After the update, reboot your system.
sudo reboot
-
Download and install Intel® oneAPI Base Toolkit (Base Kit) and Intel® AI Analytics Toolkit (AI Kit) from the Intel® oneAPI Toolkits page.
-
After you complete the installation, refresh the new environment variables.
source .bashrc -
Initialize the oneAPI environment enter.
source /opt/intel/oneapi/setvars.sh -
Install JupyterLab*. (In this case, we are cloning our base environment so that we can always get back to a clean start.)
conda create --clone base --name jupyter
-
Switch to the newly created environment.
conda activate jupyter
-
Install Jupyterlab.
conda install -c conda-forge jupyterlab
-
Clone the oneAPI-samples GitHub repository.
Note: If Git is not installed, install it now.
sudo apt install git
git clone https://github.com/oneapi-src/oneAPI-samples.git
-
From a terminal, start JupyterLab.
jupyter lab
-
Make note of the address printed in the terminal, and paste the address into your browser address bar.
-
Once Jupyterlab opens, navigate to the following directory.
~/oneAPI-samples/AI-and-Analytics/Jupyter/Predictive_Modeling_Training -
From the navigation panel, navigate through the directory structure and select a Notebook to run. (The notebooks have a
.ipynbextension.)
Use these general steps to access the notebooks on the Intel® Devcloud for oneAPI.
Note: For more information on using Intel® DevCloud, see the Intel® oneAPI Get Started page.
-
If you do not already have an account, request an Intel® DevCloud account at Create an Intel® DevCloud Account.
-
Once you get your credentials, open a terminal on a Linux* system
-
Log in to the Intel® DevCloud.
ssh devcloudNote: Alternatively, you can use the Intel JupyterLab to connect with your account credentials.
-
From a terminal, enter the following command to obtain the latest series of Jupyter Notebooks into your Intel® DevCloud account:
/data/oneapi_workshop/get_jupyter_notebooks.sh
Note: If you are setting up your account for the first time this script will run automatically.
-
From the navigation panel, navigate through the directory structure and select a Notebook to run. (The notebooks have a
.ipynbextension.)
Code samples are licensed under the MIT license. See License.txt for details.
Third-party program Licenses can be found here: third-party-programs.txt.
