Skip to content

アプリケーション内で をクリックすると、お使いのDataRobotバージョンに関する全プラットフォームドキュメントにアクセスできます。

Snowflakeでのスコアリングコードの自動デプロイと置換

本機能の提供について

デフォルトでは、Snowflakeでのスコアリングコードの自動デプロイと置換はオフです。 この機能を有効にする方法については、DataRobotの担当者または管理者にお問い合わせください。

機能フラグ:Snowflakeでのスコアリングコードの自動デプロイと置換を有効にする

Create a DataRobot-managed Snowflake prediction environment to deploy DataRobot Scoring Code in Snowflake. DataRobot管理を有効にすると、外部Snowflakeデプロイは、自動スコアリングコード置換を含むMLOps管理にアクセスできます。

Snowflake予測環境の作成

Snowflakeにモデルをデプロイするには、まずカスタムSnowflake予測環境を作成します。

  1. Open the Console > Prediction environments page and click + Add prediction environment.

  2. 予測環境を追加ダイアログボックスで、予測環境設定を行います。

    • 予測環境の説明的な名前とオプションの説明を入力します。

    • プラットフォームドロップダウンリストからSnowflakeを選択します。

    • DataRobotが管理設定を有効にすると、この予測環境が管理エージェントを介してDataRobotスコアリングコードモデルを自動的にパッケージ化してデプロイできます。

    サポートされているモデル形式設定は自動的にDataRobotスコアリングコードに設定され、これはSnowflakeでサポートされている唯一のモデル形式であるため、変更できません。

  3. In the Management settings section, select a Data Connection and the related Credentials, and then select the Snowflake Schemas. Snowflakeスキーマは、Snowflakeテーブルのコレクションです。

    Snowflake credentials required

    SnowflakeでのスコアリングコードのDataRobot管理には、資格情報が保存されているSnowflakeへの既存のデータ接続が必要です。 既存のSnowflakeデータ接続がない場合は、データ接続が見つかりませんアラートが表示され、データ接続に移動して Snowflake接続を作成するよう指示されます。

  4. 環境設定を行った後、環境を追加をクリックします。

モデルをSnowflake予測環境にデプロイ

Snowflake予測環境を作成したら、その環境にモデルをデプロイできます。

  1. On the Registry > Model directory page, in the table of registered models, click the registered model containing the version you want to deploy, opening the list of versions.

    モデルサポート

    Snowflake prediction environments do not support models without Scoring Code support.

  2. From the list of versions, click the Scoring Code enabled version you want to deploy, opening the registered model version panel.

  3. In the upper-right corner of any tab in the registered model version panel, click Deploy.

  4. In the Prediction history and service health settings, under Choose prediction environment, click Change.

  5. In the Select prediction environment panel, click Snowflake, and then click the prediction environment you want to deploy to.

  6. (Optional) Open the Advanced environment settings and define additional Environment key-value pairs to provide extra parameters to the Snowflake deployment interface.

  7. Configure the remaining deployment settings, and then click Deploy model.

Once the model is deployed to Snowflake, you can use the code snippet from the Predictions > Portable predictions tab to score data in Snowflake.

Snowflake予測環境を再起動

予測環境で使用されるSnowflakeデータ接続のデータベース設定または資格情報を更新する場合、環境を再起動して、環境にこれらの変更を適用できます。

  1. デプロイ > 予測環境ページをクリックして、リストからSnowflake予測環境を選択します。

  2. 予測環境設定の下にあるサービスアカウントで、環境を再起動をクリックします。


更新しました September 7, 2024