Send your model to Amazon QuickSight - Amazon SageMaker

Send your model to Amazon QuickSight

If you use Amazon QuickSight and want to leverage SageMaker Canvas in your Amazon QuickSight visualizations, you can build an Amazon SageMaker Canvas model and use it as a predictive field in your Amazon QuickSight dataset. A predictive field is a field in your Amazon QuickSight dataset that can make predictions for a given column in your dataset, similar to how Canvas users make single or batch predictions with a model. To learn more about how to integrate Canvas predictive abilities into your Amazon QuickSight datasets, see SageMaker Canvas integration in the Amazon QuickSight User Guide.

The following steps explain how you can add a predictive field to your Amazon QuickSight dataset using a Canvas model:

  1. Open the Canvas application and build a model with your dataset.

  2. After building the model in Canvas, send the model to Amazon QuickSight. A schema file automatically downloads to your local machine when you send the model to Amazon QuickSight. You upload this schema file to Amazon QuickSight in the next step.

  3. Open Amazon QuickSight and choose a dataset with the same schema as the dataset you used to build your model. Add a predictive field to the dataset and do the following:

    1. Specify the model sent from Canvas.

    2. Upload the schema file that was downloaded in Step 2.

  4. Save and publish your changes, and then generate predictions for the new dataset. Amazon QuickSight uses the model to fill in the target column with predictions.

In order to send a model from Canvas to Amazon QuickSight, you must meet the following prerequisites:

  • You must have both Canvas and Amazon QuickSight set up. Your Amazon QuickSight account must be created in the same AWS Region as your Canvas application. If your Amazon QuickSight account’s home Region differs from your Canvas application’s Region, you must either close and recreate your Amazon QuickSight account, or set up a Canvas application in the same Region as your Amazon QuickSight account. Your Amazon QuickSight account must also contain the default namespace, which you set up when you first create your Amazon QuickSight account. Contact your administrator to help you get access to Amazon QuickSight. For more information, see Setting up for Amazon QuickSight in the Amazon QuickSight User Guide.

  • Your user must have the necessary AWS Identity and Access Management (IAM) permissions to send your predictions to Amazon QuickSight. Your administrator can set up the IAM permissions for your user. For more information, see Grant Your Users Permissions to Send Predictions to Amazon QuickSight.

  • Amazon QuickSight must have access to the Amazon S3 bucket that you’ve specified for Canvas application storage. For more information, see Configure your Amazon S3 storage.