Skip to content

shaikhq/db2ml-labs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IDUG EMEA 2024 - Db2 Machine Learning Workshop Instructions

1. Requesting an IBM id

Go to this page and register for an IBMid: Create an IBMid

You'll you fill in a 2-page form and submit the form. It doesn't require any credit card to get an IBM id.

Complete page 1 of the IBM id request form and click next. alt text

After you clicking next on page 1, the registration process will send a 7 digit verification token to the email address you entered on page 1. Copy that token and enter this on the 2nd page of the registration form below and click Submit.

alt text

Shortly after you'll receive an email such as the following with a confirmation that your IBM id has been created.

alt text

Remember your IBM id and password in a secure place. You'll need them for requesting and accessing a Db2 ML workshop VM.

It will take a couple minutes to submit the form and get an IBM id.

Once you have an IBM id and its password, go to the next step.

2. Accessing Your Workshop VM

Go to workshop attendee's page by either clicking this or typing on your browser https://ibm.biz/idug2024

It will ask you to sign in using your IBM id and password. Enter your IBM credentails and log in. After you reach the Workshop Attendee's page, you will see the following form. In this form, enter the workshop access code that you received from your instructor and click Submit password/access code button.

you'll be taken to the

alt text

Next, this process will assign a workshop VM to your IBM id and direct you to your VM environment page as follows: alt text

On the Your environment page, scroll down until you see a section called VM Remote Console. Click the blue console link.

alt text

Clicking the blue console link will launch the following login window to your workshop VM. From this window, click Open in a new window to open this in a full-size browser tab, which will be easier to work with.

alt text

From this expanded login window, log in as db2inst1 user with the password that your instructor has provided you.

3. Setting up your VM

Now, you're inside your VM GUI.

Open a terminal: alt text

Open /etc/hosts file as a root user:

sudo vi /etc/hosts

The file has the following content:

alt text

Switch to edit model by pressing i in your keyboard. By pressing left arrow in your keyboard, move your cursor to the beginning of the list of server names after 127.0.0.1. Add to this list server7.

alt text

In your keyboard, press the esc key and then type :wq. This will save the update you just made in the /etc/hosts file.

Now, restart the VM by going to the browser tab in your laptop that looks like the following. Click Reboot.

alt text

You'll see window asking you to confirm that you want to reboot the VM. Confirm by clicking YES.

alt text

Wait for 15-20 seconds for reboot to complete. After the reboot finishes, click Open in a new window button.

alt text

Login to your VM as db2inst1 using the password that your instructor has given you.

4. Downloading the Workshop Code

  1. Download lab code from db2ml-labs repo:
git clone https://github.com/shaikhq/db2ml-labs.git
  1. Type ls to see the git repo folder, db2ml-labs, that you just downloaded.
ls

alt text

  1. Go to db2ml-labs directory:
cd db2ml-labs
  1. See the content of db2ml-labs directory:
ls

alt text

  • module1-idax directory has the content of the first lab where you'll use Db2's in-database advanced analytics (IDAX) stored procedures for developing a machine learning (ML) model.

  • module2-vectors directory has the content of the second lab where you'll implement a vector similarity search use case with Db2.

About

training modules for Db2 ML workshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages