Data Science Lab
  • What is Data Science Lab?
  • Accessing the Data Science Lab Module
  • Homepage
  • List Projects
  • List Feature Stores
  • Create
    • Create Project
      • Container Status Message
    • Create Feature Store
  • Registered Models and APIs
  • Settings
  • Trash
  • Tabs for a DSL Project
    • Workspace
      • Workspace Folders
        • Repo Folder Attributes
          • Notebook Actions
            • Export
            • Register as Job
            • Notebook Version Control
            • Share
            • Delete
            • Information
        • Repo Folder Attributes for a Repo Sync Project
          • File Attributives
        • Utils Folder Attributes
          • Utility Actions
        • Files Attributes
      • Working with the Workspace tab
        • Create
        • Import
          • Importing Notebook
          • Pull from Git
        • Adding File and Folders
      • Linter
      • Git Console
    • Data
      • Adding Data
      • Data List Page
    • Model
      • Import Model
      • Explainer Generator
      • Export to GIT/ Model Migration
      • Model Explainer
      • Share a Model
      • Register a Model
      • Unregister a Model
      • Register a Model as an API Service
        • Register a Model as an API
        • Register an API Client
        • Pass Model Values in Postman
      • Delete Model
    • AutoML
      • Creating AutoML Experiment
      • AutoML List Page
        • View Explanation
          • Model Summary
          • Model Interpretation
            • Classification Model Explainer
            • Regression Model Explainer
            • Forecasting Model Explainer
          • Dataset Explainer
  • Data Science Notebook
    • Preview File
    • Save as Notebook
    • .ipynb File Cells
      • Using a Code Cell
      • Using a Markdown Cell
      • Using an Assist Cell
    • Resource Utilization Graph
    • Taskbar
    • Actions Icons
  • Model Creation using Data Science Notebook
  • Notebook Operations
    • Data
      • Copy Path Functionality
    • Secrets
    • Algorithms
    • Transforms
    • Artifacts
    • Variable Explorer
    • Writers
Powered by GitBook
On this page
  • Saving and loading a Model with Transform script
  • Registering a Transform Model
  • Publishing a Transform Model as API
  1. Notebook Operations

Transforms

Save and load models with transform script, register them or publish them as an API through DS Lab module.

PreviousAlgorithmsNextArtifacts

Last updated 10 months ago

Check out a walk-through on how to use the Transform script inside Notebook.

You can write or upload a script containing the transform function to a Notebook and save a model based on it. You can also register the model as an API service. This entire process is completed in the below-given steps:

Saving and loading a Model with Transform script

  • Navigate to a Notebook.

  • Add a Code cell. Write or provide a transform script to the cell (In this case, it has been supplied in three cells).

  • Run the cell(s) (In this case, run all the three cells).

  • Add a new code cell and define the model.

  • Add another cell and click the Save Model option for the newly added code cell.

  • Specify the model name and type in the auto-generated script in the next code cell.

  • Run the cell.

  • Open the Transforms tab.

  • The model gets saved under the Transforms tab.

  • Add a new code cell.

  • Load the transform model by using the checkbox.

  • Run that cell.

  • Insert a new code cell.

  • Click the Transforms option for the code cell.

  • The auto-generated script appears.

  • Specify the train data.

  • Run the code cell.

  • It will display the transformed data below.

Registering a Transform Model

  • Open the Transforms tab inside a Notebook.

  • Click the ellipsis icon for the saved transform.

  • Select the Register option for a listed transform.

  • The Register Model dialog box opens to confirm the action.

  • Click the Yes option.

  • A confirmation message appears to inform the completion of the action.

  • The model gets registered and listed under the Registered list of the models.​​

  • Open a pipeline workflow with a DS Lab model runner component.

  • The registered model gets listed under the Meta Information tab of the DS Lab model runner component inside the Data Pipeline module.

Publishing a Transform Model as API

The steps to publish a model as an API that contains transform remain the same as described for a Data Science Model. Refer to the

Register a Model as an API Service page.