Interact with Vertex AI Experiments

This page shows you how to interact with Vertex AI Experiments by using the side panel in Colab Enterprise.

To access Google Cloud services and APIs by running code in your Colab Enterprise notebook, you can use the credentials associated with your Google Account. To learn more, see Access Google Cloud services and APIs.

The side panel is an additional way to interact with Vertex AI Experiments without leaving the Colab Enterprise interface.

The side panel appears on the Colab Enterprise Notebooks page whenever you have one or more notebooks open.

Buttons on the side panel to the right of an open notebook

Before you begin

  1. Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  3. Make sure that billing is enabled for your Google Cloud project.

  4. Enable the Vertex AI, Dataform, and Compute Engine APIs.

    Enable the APIs

  5. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  6. Make sure that billing is enabled for your Google Cloud project.

  7. Enable the Vertex AI, Dataform, and Compute Engine APIs.

    Enable the APIs

Required roles

To ensure that your user account has the necessary permissions to use the side panel in a Colab Enterprise notebook, ask your administrator to grant your user account the following IAM roles on the project:

For more information about granting roles, see Manage access.

Your administrator might also be able to give your user account the required permissions through custom roles or other predefined roles.

Vertex AI Experiments

Vertex AI Experiments helps you track and analyze different model architectures, hyperparameters, and training environments by letting you track the steps, inputs, and outputs of an experiment run. To learn more, see Introduction to Vertex AI Experiments.

View an experiment

You can create and view the results of an experiment by using the side panel in Colab Enterprise.

  1. In the Google Cloud console, go to the Colab Enterprise Notebooks page.

    Go to Notebooks

  2. In the Region menu, select the region that contains your notebook.

  3. On the My notebooks tab, click the notebook that you want to open. If you haven't created a notebook yet, create a notebook.

  4. To the right of your notebook, in the side panel, click the  Manage Experiments button.

    The side panel expands the Experiments tab.

  5. Click the Insert sample code button.

    Colab Enterprise adds code cells to your notebook for interacting with an experiment.

  6. In your notebook, find the code cell that stores parameter values. You'll use these parameters to interact with Vertex AI Experiments.

  7. Update the values for the following parameters:

    • PROJECT_ID: The ID of the project that your notebook is in.
    • REGION: The region that your notebook is in.
    • BUCKET_URI: A Cloud Storage bucket URI, in the format gs://BUCKET_NAME. This can be an existing bucket, or you can create it when you run the code. This bucket must be in the same project and region as your Colab Enterprise notebook.
    • EXPERIMENT_NAME: The name of your experiment. If your experiment doesn't exist, Vertex AI Experiments creates one.
  8. If you need to create your Cloud Storage bucket, find and uncomment the following line of code:

    # ! gsutil mb -l {REGION} -p {PROJECT_ID} {BUCKET_URI}
    
  9. Run the code cells that the side panel added to your notebook.

  10. After the last code cell runs, click the  View experiment button that appears.

  11. In the side panel, click the Runs tab or Details tab to see information about your experiment. To learn more, see Create and manage experiment runs.

What's next