Data Science Lab
  • What is Data Science Lab?
  • Accessing the Data Science Lab Module
  • Data Science Lab Quick Start Flow
  • Project
    • Environments
    • Creating a Project
    • Project List
      • Keep Multiple Versions of a Project
      • Sharing a Project
      • Editing a Project
      • Activating a Project
      • Deactivating a Project
      • Deleting a Project
    • Tabs for a Data Science Lab Project
      • Tabs for TensorFlow and PyTorch Environment
        • Notebook
          • Ways to Access Notebook
            • Creating a Notebook
            • Uploading a Notebook
          • Notebook Page
            • Preview Notebook
            • Notebook Cells
              • Using a Code Cell
              • Using a Markdown Cell
            • Modifying a Notebook
            • Resource Utilization Graph
            • Notebook Taskbar
            • Notebook Operations
              • Datasets
                • Copy Path (for Sandbox files)
              • Secrets
              • Algorithms
              • Transforms
              • Models
                • Model Explainer
                • Registering & Unregistering a Model
                • Applying Filter
              • Predict
              • Artifacts
              • Variable Explorer
              • Find and Replace
          • Notebook List Page
            • Export
              • Export to Pipeline
              • Export to GIT
            • Notebook Version Control
            • Sharing a Notebook
            • Editing a Notebook
            • Deleting a Notebook
        • Dataset
          • Adding Data Sets
            • Data Sets
            • Data Sandbox
          • Dataset List Page
            • Preview
            • Data Profile
            • Create Experiment
            • Data Preparation
            • Delete
        • Utility
        • Model
          • Model Explainer
          • Import Model
          • Export to GIT
          • 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
          • AutoML Models
        • Auto ML
          • Creating Experiments
            • Accessing the Create Experiment Option
              • Configure
              • Select Experiment Type
          • AutoML List Page
            • View Report
              • Details
              • Models
                • View Explanation
                  • Model Summary
                  • Model Interpretation
                    • Classification Model Explainer
                    • Regression Model Explainer
                  • Dataset Explainer
            • Delete
      • Tabs for PySpark Environment
        • Notebook
          • Ways to Access Notebook
            • Creating a Notebook
            • Uploading a Notebook
          • Notebook Page
            • Preview Notebook
            • Notebook Cells
              • Using a Code Cell
              • Using a Markdown Cell
            • Modifying a Notebook
            • Resource Utilization Graph
            • Notebook Taskbar
            • Notebook Operations
              • Datasets
                • Copy Path (for Sandbox files)
              • Secrets
              • Variable Explorer
              • Find and Replace
          • Notebook List Page
            • Export
              • Export to Pipeline
              • Export to GIT
            • Notebook Version Control
            • Sharing a Notebook
            • Editing a Notebook
            • Deleting a Notebook
        • Dataset
          • Adding Data Sets
          • Dataset List Page
            • Preview
            • Data Profile
            • Data Preparation
            • Delete
        • Utility
Powered by GitBook
On this page
  • Saving and loading a Model with Transform script
  • Registering a Transform Model
  • Publishing a Transform Model as API
  • Register a Transform Model as API
  • Register an API Client
  • Pass Model values in Postman
  1. Project
  2. Tabs for a Data Science Lab Project
  3. Tabs for TensorFlow and PyTorch Environment
  4. Notebook
  5. Notebook Page
  6. Notebook Operations

Transforms

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

PreviousAlgorithmsNextModels

Last updated 2 years ago

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

You can write or upload a script containing 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 gets completed in the below given steps:

  1. 1.​​

  2. 2.​​

  3. 3.​​

Saving and loading a Model with Transform script

  • Navigate to a Notebook.

  • Add a Code cell (by default one cell gets added in a new Notebook).

  • Write or provide a transform script to the cell.

  • Run the cell.

  • Add a new Code cell.

  • Click the Save Model option to generate the code to save the desired model.

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

  • Run the cell.

  • The model gets saved under the Transform tab.

  • Add a new Code cell.

  • Use the checkbox given next to the saved model to load it.

  • Run the cell.

  • Add a new Code cell.

  • Click the Transform option.

  • Specify the train data.

  • Run the cell.

  • The data output appears below.

Registering a Transform Model

  • Open the Transforms tab inside a Notebook.

  • 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 completion of the action.

  • The model gets registered and lists 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 Publish Model as API functionality gets completed in three steps:

Register a Transform Model as API

  • Navigate to the Model tab.

  • Select a saved model from the model list.

  • Click the Register as API option.

  • You will get directed to the Update Model page.

  • Provide the Max Instance option.

  • Click the Save and Register option.

  • A confirmation message appears to indicate that the Model has been saved and registered (The icon for a registered model appears differently).

Register an API Client

  • Navigate to the Admin Module from the Apps menu.

  • Click on the API Client Registration option from the Admin panel.

​​

  • The API Client Registration form appears.

  • Choose the Internal option from the Select drop-down.

  • Provide the required details to register the API Client:

    • Client Name

    • Client Email

    • App Name

    • Request Per Hour

    • Request Per Day

    • Select App Type (Select Model As API option from the drop-down menu).

    • Select the saved model using the Select the Services Entitled option.

    • Click the Save option to save the client details.

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

  • The API client gets registered. You can get the following details from the registered API Client Registration.

    • App Name

    • Client Id

    • Client Secret Key

Pass Model values in Postman

  • Navigate to the Postman application and select POST service.

  • Open the Headers tab.

  • Provide the clientid, clientsecret, and appname from the API Client Registration form as explained in the previous step.

  • Open the Body tab.

  • Provide the input dataframe.

  • Click the Send option.

  • The response will appear below.

  • You can save the response by using the Save Response option.

​​

​​

​​

​​

​​

​​

Please Note: Refer the Data Science Lab Quick Start Flow page to get an overview of the Data Science Lab module in nutshell. to get redirected to the quick start flow page.

Register a Transform Model as API
Register an API Client
Pass Model Values in Postman
Click here
Saving and loading a Model with Transform script
Registering a Transform Model
Publishing a Transform Model as API