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

Model Creation using Data Science Notebook

This section aims to step down the process of creating, saving, and loading a Data Science model using the notebook infrastructure provided inside the Data Science Lab module.

PreviousActions IconsNextNotebook Operations

Last updated 10 months ago

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

Check out the illustration on saving and loading a Data Science Model.

Saving a Data Science Lab Model

  • Navigate to a Data Science Notebook.

  • Write code using the following sequence:

    • Read DataFrame

    • Define test and train data

    • Create a model

  • Execute the script by running the code cell.

  • Get a new cell.

  • Click the Save model option.

  • A code gets generated in the newly added code cell.

  • Give a model name to specify the model and model type as ml.

  • Execute the code cell.

  • After the code gets executed, the Model gets saved under the Models tab.

Please Note: The newly saved model gets saved under the unregistered category inside the Models tab.

Function Parameters

  • model - Trained model variable name.

  • modelName - The desired name given by the 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 used.

Loading a Data Science Lab Model

  • Open the Models tab.

  • Access the Unregistered category.

  • The saved model will be available under the Models tab. Please select the model by using the given checkbox to load it.

  • The model gets loaded into a new cell.

  • Run the cell.

A saved model under the Model tab of the Data Science Notebook gets the following options:

Saving and Loading a Data Science Model
Sample Script for a Data Science Model
the model gets saved
Specify a Data Science Lab Model by giving a Model name & Model Type
Loading a saved Data Science Lab Model