3 Use the Templates to Collaborate with Users

In the Oracle Machine Learning Templates UI, you can collaborate with other users by sharing your work, publishing your work as reports, and by creating notebooks from templates. You can store your notebooks as templates, share notebooks, and provide sample templates to other users.

Use the Personal Templates

Personal Templates lists the notebook templates that you have created.

You can perform the following tasks:
  • View selected templates in read-only mode.

  • Create new notebooks from selected templates.

  • Edit selected templates.

  • Share selected notebook templates in Shared Templates.

  • Delete selected notebook templates.

Create Notebooks from Templates

You can create new notebooks from an existing template, and store them in Personal Templates for later use.

You must select a notebook template.
To create a new notebook from a template:
  1. In the Personal Templates page, select the template based on which you want to create the notebook, and click New Notebook.
    The Create Notebook dialog box opens.
  2. In the Name field, provide a name for the notebook.
  3. In the Comments field, enter comments, if any.
  4. In the Project field, select the project in which you want to save your notebook.
  5. In the Connection field, the default connection is selected.
  6. Click OK.
The notebook is created, and is available in the Notebooks page.

Share Notebook Templates

You can share templates from Personal Templates. You can also share templates for editing.

To share a template:
  1. Select the notebook template in Personal Templates and click Share.
    The Save to Shared Templates dialog box opens.
  2. In the Name field, enter a new name for the template.
  3. In the Comments field, provide comments, if any.
  4. In the Tags field, enter tags separated by commas. To enable easy searching, use descriptive tags.
  5. Click OK.
Once the template is successfully created and shared, a message appears stating that the template is created in Shared.

Edit Notebook Templates Settings

You can modify the settings of an existing notebook template in Personal Templates.

To edit notebook template settings:
  1. Select the notebook template in Personal Templates and click Edit Settings.
    The Edit Template dialog box opens.
  2. In the Name field, edit the name, as applicable.
  3. In the Comments field, edit the comments, if any.
  4. In the Tags field, edit the tags, as applicable.
  5. Click OK.

Use the Shared Templates

In the Shared Templates, you can share notebook templates with all authenticated users the notebook templates you create from existing notebooks available in Templates.

The Shared Templates page tracks notebook templates when you perform the following:
  • Like templates

  • Create notebooks from templates

  • View templates

The Shared Templates page displays the following information about the templates:
  • Template name

  • Description

  • Number of likes

  • Number of creations

  • Number of static views

You can perform the following tasks:
  • Create templates by clicking New Notebook

  • Edit template settings by clicking Edit Settings

  • Delete any selected template by clicking Delete

  • Search templates by Name, Tag, Author

  • Sort templates by Name, Date, Author, Liked, Viewed, Used

  • View templates by clicking Show Liked Only or Show My Items Only

Create Notebooks from Templates

You can create new notebooks from an existing template, and store them in Personal Templates for later use.

You must select a notebook template.
To create a new notebook from a template:
  1. In the Personal Templates page, select the template based on which you want to create the notebook, and click New Notebook.
    The Create Notebook dialog box opens.
  2. In the Name field, provide a name for the notebook.
  3. In the Comments field, enter comments, if any.
  4. In the Project field, select the project in which you want to save your notebook.
  5. In the Connection field, the default connection is selected.
  6. Click OK.
The notebook is created, and is available in the Notebooks page.

Edit Notebook Templates Settings

You can modify the settings of an existing notebook template in Personal Templates.

To edit notebook template settings:
  1. Select the notebook template in Personal Templates and click Edit Settings.
    The Edit Template dialog box opens.
  2. In the Name field, edit the name, as applicable.
  3. In the Comments field, edit the comments, if any.
  4. In the Tags field, edit the tags, as applicable.
  5. Click OK.

Use the Example Templates

The Example Templates page lists the pre-populated Oracle Machine Learning notebook templates. You can view and use these templates to create your notebooks.

The Example Templates page displays the following information about the templates:
  • Template name

  • Description

  • Number of likes. Click Likes to mark it as liked.

  • Number of static views

  • Number of uses

You cannot alter any templates in the Example Templates page. The search options are:
  • Search templates by Name, Tag, Author

  • Sort templates by Name, Date, Author, Liked, Viewed, Used

  • View templates that are liked by clicking Show Liked only

Create a Notebook from the Example Templates

In Oracle Machine Learning Example Templates, you can create a notebook from the available templates.

To create a notebook:
  1. In the Example Templates page, select the template based on which you want to create a notebook.
  2. Click New Notebook.
    The Create Notebook dialog box opens.
  3. In the Create Notebook window, the name of the selected template appears. In the Name field, you can change the notebook name.
  4. In the Comment field, if any comment is available for the template, then it is displayed. You can edit the comment.
  5. In the Project field, click the edit icon edit.
  6. Select the project in which you want to save the notebook.
  7. In the Connection field, the default connection is selected.
  8. Click OK.
The notebook is created and is available in the Notebooks page.
Example Templates

Oracle Machine Learning provides you the following notebook Example templates that are based on different machine learning algorithms. The Example templates are processed in Oracle Autonomous Data Warehouse Cloud (ADWC).

You can create your notebook based on any of these templates:

Figure 3-1 Example Templates

Example Templates
  • Anomaly Detection: Use the Anomaly Detection Example Template notebook to detect anomalous records, customers or transactions in your data. This template uses the unsupervised learning algorithm 1-Class Support Vector Machine. The notebook template builds a 1-Class Support Vector Machine (SVM) model.
  • Association Rules: Use the Association Rules Example Template notebook for market basket analysis of your data, or to detect co-occurring items, failures or events in your data. This template uses the apriori Association Rules model using the SH schema data (SH.SALES).
  • Attribute Importance: Use the Attribute Importance Example template notebook to identify key attributes that have maximum influence over the target attribute. The target attribute in the build data of a supervised model is the attribute that you want to predict. The template builds an Attribute Importance model using the SH schema data.
  • Classification Prediction Model: Use the Classification Prediction Model Example Template notebook for predicting customer behavior and similar predictions. The template builds and applies the classification algorithm Decision Tree to build a Classification model based on the relationships between the predictor values and the target values. The template uses the SH schema data.
  • Clustering: Use the Clustering Example Template notebook to identify natural clusters in your data. The notebook template uses the unsupervised learning k-Means algorithm on the SH schema data.
  • My First Notebook: Use the My First Notebook Example Template notebook for basic machine learning functions, data selection and data viewing. This template uses the SH schema data.
  • Regression: Use the Regression Example Template notebook to predict numerical values. This template uses multiple regression algorithms such as Generalized Linear Models (GLM).
  • Statistical Function: Use the Statistical Function Example Template notebook for descriptive and comparative statistical functions. The notebook template uses SH schema data.