Skip to content

Commit

Permalink
oml blocks and tasks updated. Impacts workshops 7401 and 6824 (#334)
Browse files Browse the repository at this point in the history
* oml blocks and tasks updated

* Masked texts in images

Masked tenancy names in screenshots.
  • Loading branch information
MoitreyeeHazarika authored Dec 12, 2024
1 parent 691f921 commit 619f747
Show file tree
Hide file tree
Showing 59 changed files with 197 additions and 95 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified building-blocks/blocks/oml/oml-monitoring/images/mm-history.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
200 changes: 150 additions & 50 deletions building-blocks/blocks/oml/oml-monitoring/oml-monitoring.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ This lab assumes you have:

A table is an arrangement of information or data in rows and columns. Using OML Notebooks, you can create database tables, and also view the information in a tabular format.

**Dataset:** `CUSTOMER_INSURANCE_LTV`. In this example, we will use the example template notebook OML-Run-me-first.
**Dataset:** `CUSTOMER_INSURANCE_LTV`. In this example, we will use the example template notebook _OML-Run-me-first_.

1. On the Oracle Machine Learning UI homepage, click **Examples.**
![Examples on Homepage](images/homepage-examples.png)
Or, open the left navigation menu by clicking the Cloud menu icon click ![Cloud menu icon](images/cloud-menu-icon.png) on the top left corner of the page. Click **Templates** and then click **Examples.**
![Examples on Left Navigation menu](images/left-nav-examples.png)

2. The OML-Run-Me-First example is listed. If you are unable to view it, type the name in the Filter field.
2. The _OML-Run-Me-First_ example template is listed. If you are unable to view it, type the name in the **Filter** field.

![OML Run-me-first notebook](images/run-me-first.png)

3. Click on the `OML Run-me-first tile` (and not on the name) to highlight it in blue. Then click the Create Notebook icon.
3. Click on the `OML Run-me-first tile` (and not on the name) to highlight it in blue. Then click the **Create Notebook** icon.

![Create the OML Run-me-first notebook](images/create-run-me-first.png)

Expand Down Expand Up @@ -70,19 +70,18 @@ A table is an arrangement of information or data in rows and columns. Using OML
![Customer Insurance table](images/view-cust-insur-table.png)


8. In this table, you can customize your views and settings.
8. In this table, you can customize your views and settings:

* Sort the columns in ascending or descending order: Click on the down arrow or up arrow against the columns to sort the data in ascending or descending order.

* Use the horizontal scroll bar to scroll horizontally to view the columns on the right.

![Sort table](images/sort-table-columns.png)
* Filter specific search terms. In the Search field, type the entry or term that you are looking for. In this example, the term "Single" is entered. All the rows that contain the term SINGLE in the column `MARITAL_STATUS` are filtered for display.
* Filter specific search terms. In the **Search** field, type the entry or term that you are looking for. In this example, the term `Single` is entered. All the rows that contain the term SINGLE in the column `MARITAL_STATUS` are filtered for display.

![Filter columns in table](images/filter-search-table.png)

> **Note:** Rows that do not contain this term are hidden from the view and the remaining rows highlight the location of the search term within the row

> **Note:** Rows that do not contain this term are hidden from the view and the remaining rows highlight the location of the search term within the row.

* By default, 5 rows are displayed. If you want to view more rows or customize the table settings, click on the Settings icon ![Settings](images/settings-icon.png) to open the Settings dialog.

Expand All @@ -97,7 +96,9 @@ A table is an arrangement of information or data in rows and columns. Using OML
* **Number of Items on Page:** Click on the up or down arrow, as applicable, to set the number of rows to be displayed on the page. By default, 5 rows are displayed.


* **Columns to Display:** By default, all the columns are listed. If you want to remove any column from displaying, click on the X in the column name. To view the column again, click inside the Columns to Show field. The hidden columns are displayed. Click on the column that you want to view again. In this example the column MARITAL_STATUS was removed. Clicking on the Columns to Show field displays it; click on it to include in the display.
* **Columns to Display:** By default, all the columns are listed. If you want to remove any column from displaying, click on the X in the column name. To view the column again, click inside the **Columns to Show** field. The hidden columns are displayed. Click on the column that you want to view again. In this example the column MARITAL_STATUS was removed. Clicking on the **Columns to Show** field displays it; click on it to include in the display.

This completes the task of creating a table, and visualizing the data in it.

## Task 2: Visualize Data in a Bar Chart

Expand All @@ -121,9 +122,9 @@ To visualize data in a bar chart:

![Bar chart settings](images/settings1-bar-chart.png)

* In **Series to Show**, select `CREDIT_BALANCE`, `MORTGAGE_AMOUNT`, and `BANK_FUNDS`.
* In **Series to Show:** Select `CREDIT_BALANCE`, `MORTGAGE_AMOUNT`, and `BANK_FUNDS`.

* In **Group By**, select `MARITAL_STATUS`
* In **Group By:** Select `MARITAL_STATUS`

4. The average of `CREDIT_BALANCE`, `MORTGAGE_AMOUNT`, and `BANK_FUNDS` are each represented by adjacent bar charts, and the bar charts are grouped by `MARITAL_STATUS` - single, married, divorced, widowed, and others. The bar chart now looks like this, as shown in the screenshot below:

Expand All @@ -147,6 +148,7 @@ To visualize data in a bar chart:

![Bar chart](images/bar-chart3.png)

This completes the task of visualizing your data in a bar chart, and customizing its output.

## Task 3: Visualize Data in a Funnel Chart

Expand All @@ -165,11 +167,9 @@ To view the data in a funnel chart:

![Default Funnel Chart](images/default-funnel-chart.png)


3. Hover your cursor to view the series that is plotted in the funnel chart for each of the 5 groups.


4. Let's compare a few attributes `CREDIT_BALANCE`, `MORTGAGE_AMOUNT` and `INCOME` the same groups. Click Settings ![Settings icon](images/settings-icon.png) and edit the following:
4. Let's compare a few attributes `CREDIT_BALANCE`, `MORTGAGE_AMOUNT` and `INCOME` of the same groups. Click Settings ![Settings icon](images/settings-icon.png) and edit the following:

![Settings Funnel Chart](images/settings-funnel-chart.png)

Expand Down Expand Up @@ -219,7 +219,7 @@ To visualize data in a Pyramid Chart:
## Task 5: Visualize Data in a Scatter Plot
Scatter plots represent the relationship between two numeric variables in a data set. It represents data points on a two-dimensional plane and show how much one variable is affected by another. The independent variable is plotted on the X-axis, while the dependent variable is plotted on the Y-axis. You can display points by one or more grouping variables such that each group has a distinct color and shape.

**When to use this chart:** Use the scatter plot when you have paired numerical data, and you want to determine the relationship between the related variables in certain scenarios, identifying correlations and trends (linear and non-linear relationships), detecting outliers, understanding data distribution, identifying groupings or clusters of data. Scatterplots can also be useful when comparing multiple datasets where each datasets values are represented as a different group. Scatterplots are also useful for evaluating regression models by plotting, e.g., actual versus predicted values,
**When to use this chart:** Use the scatter plot when you have paired numerical data, and you want to determine the relationship between the related variables in certain scenarios, identifying correlations and trends (linear and non-linear relationships), detecting outliers, understanding data distribution, identifying groupings or clusters of data. Scatter plots can also be useful when comparing multiple datasets where each datasets values are represented as a different group. Scatter plots are also useful for evaluating regression models by plotting, e.g., actual versus predicted values.

**Dataset:** `CUSTOMER_INSURANCE_LTV`. In this example, we will use the example template notebook OML-Run-me-first.

Expand All @@ -230,11 +230,9 @@ To visualize data in a scatter Plot:
![Toolbar](images/visual-toolbar-scatterplot.png)

2. Click the settings icon. In the Settings dialog, under **Setup:**

* **Series to show on X-axis:** Click and select `INCOME`.
* **Series to show on Y-axis:** Click and select `MORTGAGE_AMOUNT`.
* **Series to Show on X-axis:** Click and select `INCOME`.
* **Series to Show on Y-axis:** Click and select `MORTGAGE_AMOUNT`.
* **Group By:** Select `MARITAL_STATUS`.

3. Under **Customization:**
* **Visualization:** Retain the default settings.
* **Description:** Under **Title**, enter `Scatter plot to show the correlation between income and mortgage amount.`
Expand Down Expand Up @@ -262,7 +260,7 @@ A line chart is a graphical representation used to display data points connected

![Sales table](images/sales-table.png)

3. By default, the Line chart shows the average amount sold from the year 1998 till 2001, as shown in the screenshot below.
3. By default, the line chart shows the average amount sold from the year 1998 till 2001, as shown in the screenshot below.

![Line chart](images/line-chart1.png)

Expand All @@ -279,21 +277,18 @@ A line chart is a graphical representation used to display data points connected
* **Y-axis:** Enter `Amount Sold`. Corresponding to each sale date, the sum of the amount sold is plotted along the Y-axis.
* **Description:** Enter `Sales trend of product ABC`

The Line chart now displays the sum of the amount sold from the year 1998 to 2001, as shown below. Hover your cursor over the highest point in the line chart to view the values. You can see that on 5/30/2000, the product recorded the highest sale in terms of the sum of the amount sold.
The line chart now displays the sum of the amount sold from the year 1998 to 2001, as shown below. Hover your cursor over the highest point in the line chart to view the values. You can see that on 5/30/2000, the product recorded the highest sale in terms of the sum of the amount sold.

![Line chart](images/line-chart2.png)




## Task 7: Visualize Data in an Area Chart
An area chart uses lines to connect the data points and fills the area below these lines to the x-axis. Each data series contributes to the formation of a distinct shaded region. This emphasizes its contribution to the overall trend. As the data points fluctuate, the shaded areas expand or contract.

**When to use this chart:** Use this chart to gain visual insight into the changes within the dataset.

**Dataset:** `SH.SALES` table. The `SALES` table that is present in the `SH` schema.

To use the area chart:
To visualize your data in an area chart:

1. In another `%sql` paragraph, run the following script:

Expand Down Expand Up @@ -344,7 +339,7 @@ A pie chart is a graphical representation of data in a circular form, with each

**When to use this chart:** Use this chart to visualize the numerical proportion of the parts to the whole.

**Dataset:** The iris data set contains 3 classes (three different Iris species - Setosa, Versicolor, and Virginica) along with 50 samples each, and four numeric properties about those classes: Sepal Length, Sepal Width, Petal Length, and Petal Width.
**Dataset:** The `IRIS` dataset contains 3 classes (three different Iris species - Setosa, Versicolor, and Virginica) along with 50 samples each, and four numeric properties about those classes: Sepal Length, Sepal Width, Petal Length, and Petal Width.

To visualize data in a pie chart
1. Run the following script in an R paragraph to create the Iris dataset:
Expand Down Expand Up @@ -420,10 +415,10 @@ A box plot provides an overview of data distributions in numeric data. It provid

**When to use this chart:** Use this chart to show distributions of numeric data, especially if you want to compare them between multiple groups.

**Dataset:** The iris data set contains 3 classes (three different Iris species - Setosa, Versicolor, and Virginica) alongwith 50 samples each, and four numeric properties about those classes: Sepal Length, Sepal Width, Petal Length, and Petal Width.
**Dataset:** The `IRIS` dataset contains 3 classes (three different Iris species - Setosa, Versicolor, and Virginica) alongwith 50 samples each, and four numeric properties about those classes: Sepal Length, Sepal Width, Petal Length, and Petal Width.


1. We have already created the Iris dataset in Task 8.
1. We have already created the `IRIS_R` dataset in Task 8.

3. Click the box plot icon ![Boxplot icon](images/boxplot-icon.png).

Expand All @@ -435,13 +430,13 @@ A box plot provides an overview of data distributions in numeric data. It provid
![Boxplot chart 1](images/boxplot1.png)
As you can see, by default the data is grouped by the 3 species (classes) - Setosa, Versicolor, and Virginca along the X-axis, and the sepal length along the Y axis. Hover your cursor over each box plot to view the count.

5. Click on Settings to view how the data is plotted. Under **Setup**, go to **Series to show,** and click to add the other three numeric properties - Sepal Width, Petal Length, and Petal Width.
5. Click on Settings to view how the data is plotted. Under **Setup**, go to **Series to Show,** and click to add the other three numeric properties - Sepal Width, Petal Length, and Petal Width.
![Boxplot chart 2](images/boxplot2.png)

6. Under Settings, click **Customizations,** edit the following settings:
* **Visualization:** Click **Show Outliers.**
* **X-Axis:** In the **Text** field, enter `Iris Species;` Color enter **rgb(7, 17, 215, 0.88)**
* **Y-Axis:** In the **Text** field, enter `Petal & Sepal Properties;` Color: Enter **rgb(7, 17, 215, 0.88)**
* **X-Axis:** In the **Text** field, enter `Iris Species.` **Color:** Enter **rgb(7, 17, 215, 0.88)**
* **Y-Axis:** In the **Text** field, enter `Petal & Sepal Properties.` **Color:** Enter **rgb(7, 17, 215, 0.88)**
* **Description:** Enter the following - `Box Plot of the Iris flower dimension`.
* **Color:** Enter **rgb(241, 8, 24)**
* Once done, close the dialog.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -752,10 +752,16 @@ You can also go to Jobs from the Oracle Machine Learning home page by clicking *

7. Expand **Advanced Settings**, and specify the following settings:

![Create Job](images/create-jobs2.png)
![Create Job](images/create-jobs-adv-settings1.png)

* **Send Notifications:** Click this option and in the **Email Address(es)** field, enter the email addresses to which you want to send notifications about the selected events for the job. By default, you can enter three email IDs, separated by comma.

* **Events:** Click to select the events for which you want to send the notification. The supported job events are `JOB_START, JOB_SUCCEEDED, JOB_FAILED, JOB_BROKEN, JOB_COMPLETED` and `JOB_STOPPED`.

* **Maximum Number of Runs:** Select **3**. This specifies the maximum number of times the job must run before it is stopped. When the job reaches the maximum run limit, it will stop.

![Create Job](images/create-jobs-adv-settings2.png)

* **Timeout in Minutes:** Select **60**. This specifies the maximum amount of time a job should be allowed to run.

* **Maximum Failures Allowed:** Select **3**. This specifies the maximum number of times a job can fail on consecutive scheduled runs. When the maximum number of failures is reached, the next run date column in the Jobs UI will show an empty value to indicate the job is no longer scheduled to run. The Status column may show the status as `Failed`.
Expand Down
8 changes: 4 additions & 4 deletions building-blocks/tasks/oml/create-oml-user.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ To create a user account:
* **User Name:** Enter the user name `OMLUSER`.
* **Password:** Enter a password for this user. The password must be 12 to 30 characters and contain at least one uppercase letter, one lowercase letter, and one number. The password cannot contain the double quote (") character or the username itself.
* **Confirm Password:** Re-enter the password that you entered in the **Password** field.
* **Graph:** Optionally, select this option to enable graph for this user.
* **Web Access:** Select this option to allow Web and DB Actions access to this user via its own url. This is an optional field.
* **OML:** Select this option to allow this user to access Oracle Machine Learning. This is a required field.
* **Quota of tablespace data:** Click on the drop-down list and select an option. For this lab and a typical Always Free ADB, `UNLIMITED` is selected.
* **Password Expired:** Select this option if you want the user to reset their own password.
* **Account is locked:** Use this option to lock the account.

* **OML:** Select this option to allow this user to access Oracle Machine Learning. This is a required field.
* **Graph:** Optionally, select this option to enable graph for this user.
* **Web Access:** Select this option to allow Web and DB Actions access to this user via its own url. This is an optional field.
* **Show Code:** Click this option to view the code to create the user and grant roles to the user. You also have the option to copy the code.

7. After the user is created successfully, the message _User OMLUSER created successfully_ is displayed.

Expand Down
Binary file modified building-blocks/tasks/oml/images/adb-basic-inform.png
Binary file modified building-blocks/tasks/oml/images/adb-console-tool.png
Binary file modified building-blocks/tasks/oml/images/adb-dev-oml.png
Binary file modified building-blocks/tasks/oml/images/adw-details.png
Binary file modified building-blocks/tasks/oml/images/create-user-dialog.png
Binary file modified building-blocks/tasks/oml/images/database-actions-dbusers.png
Binary file modified building-blocks/tasks/oml/images/database-actions.png
Binary file modified building-blocks/tasks/oml/images/db-config-always-free.png
Binary file modified building-blocks/tasks/oml/images/db-configuration-ecpu.png
Binary file modified building-blocks/tasks/oml/images/omluser-signin.png
Binary file modified building-blocks/tasks/oml/images/provisioned-adb.png
Loading

0 comments on commit 619f747

Please sign in to comment.