Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article describes how to update an existing model using Jupyter or the ModelOp Command Center.

Table of Contents

Table of Contents

Update an existing model using

Jupyter

To update a model using the ModelOp Center Jupyter notebook, you must:

  • Have an existing model, minimally in the form of a source code file (e.g. mymodel.py file)

  • Have already registered the model with the ModelOp Center

For instructions on registering a model using the Jupyter notebook, see Register a Model.

To update a model in Jupyter:

  • If you already have a model loaded in Jupyter, skip to Step 5. Otherwise, navigate to your Jupyter instance.

  • Under the Files tab,select New > Python3.
  • Click the Load a Model icon (the down arrow) on the right side of the Tools ribbon.

    Image Removed

  • Select the model to modify from the drop-down.

    Image Removed

  • Jupyter pulls the code into a cell.

  • Modify the code in the cell.

  • With your cursor in the cell with the code, click the Update the current model icon (the up arrow).

    Image Removed

  • On the Save Model to ModelOp Center screen, click OK to save the changes. The modified model is copied back into the ModelOp Center.

    git

    Changes made to the remote branch from which the model was imported into ModelOp Center will automatically sync with ModelOp Center. See Integrate with Git for more information.

    Update an existing model using Jupyter

    Include Page
    Updating an existing model using Jupyter
    Updating an existing model using Jupyter

    Update an Existing Model Using the ModelOp Command Center

    Pre-Requisites

    To update a model using the ModelOp Command Center, you must:

    • Have an existing model, minimally in the form of a source code file (e.g. mymodel.py file).

    • Have registered the model with the ModelOp Center.

    To update a model in ModelOp Command Center:

    1. Navigate to the ModelOp Command Center.

    2. In the left column, click Models.

      Image RemovedImage Added

    3. Select the model you want to modify from the list, and then click Model Source.. This opens the Model Details page.

    4. In the “Model Info” tab of the Model Details page, the user can:

      1. In the “Edit Metadata” section:

        1. Edit the Model Name

        2. Edit the Model Description

        3. Add a tag

      2. In the “Edit Functions” section:

        1. Update each of the functions

      3. To save the changes, select the “Update Model” button in the top right:

      4. Image Added

    5. In the “Sources” tab, the user can modify the source code files directly by:

      1. Selecting the source code file from the left

      2. The code appears in a code cell. Modify the code in the cell.

      3. Click the save icon in the top right corner of the cell.

      Image Removed
    6. In the “Schemas” tab, the user can modify the input and/or output schema files directly by:

      1. Selecting the schema file from the left

      2. The schema file appears in a code cell. Modify the schema in the cell.

      3. Click the save icon in the top

      left
      1. right corner of the cell.

    7. You can make similar changes in the Attachments, Input Schema, Output Schema, and Model Functions tabs. View Creatig In the “Attachments” tab, the user can add or delete attachments:

      1. To delete an attachment:

        1. Open the Attachments tab. The list of attachments associated with the registered model should appear.

        2. Find the attachment that should be deleted.

        3. Click the delete icon. The attachment will be removed from the registered model.

      2. To add an attachment to an existing model:

        1. Open the Attachments tab. The list of attachments associated with the registered model should appear.

        2. Click the “add attachment” button in the top right

        3. Locate the file that should be added as an attachment from your local machine and select the file for upload.

        4. Click “Upload”

        5. Refresh the page. The attachment should be added to the registered model

    Next Article: ModelOp Life Cycle Model Lifecycle Manager: Automation >