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 a Data Science Lab Model
  • Function Parameters
  • Loading a Data Science Lab Model
  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

Models

Saving & loading a Data Science Lab model

PreviousTransformsNextModel Explainer

Last updated 2 years ago

Check-out the walk-through on how to save and load a DSL Model.

Saving and loading a model

Once the Notebook script is executed successfully, the users can save them as a model. The saved model can be loaded into the Notebook.

Saving a Data Science Lab Model

  • Navigate to a Notebook.

  • Write code using the following sequence:

    • Read DataFrame

    • Define test and train data

    • Create a model

  • Execute the script.

  • Get a new cell.

  • Give a model name to specify the model.

  • Execute the cell.

  • After the code gets executed, click the Save Model notebook in a new cell.

  • The saved model gets listed under the Models list.

Function Parameters

  • Model - Trained model variable name.

  • ModelName - Desired name given by user for the trained model.

  • ModelType - Type in which model can be saved.

  • X - This array contains the input features or predictors used to train the model. Each row in the X_train array represents a sample or observation in the training set, and each column represents a feature or variable.

  • y - This array contains the corresponding output or response variable for each sample in the training set. It is also called the target variable, dependent variable, or label. The y_train array has the same number of rows as the X_train array.

  • estimator_type - The estimator_type of a data science model refers to the type of estimator use.

Loading a Data Science Lab Model

  • Click on a new cell and select the model by using the given checkbox to load it.

  • The model gets loaded into a new cell.

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.

Click here
Sample Script for a Data Science Model
Specify a Data Science Lab Model by giving a name
Loading a saved Data Science Lab Model