{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Gluon Predict","description":"Gluonを使用した機械学習モデルの予測方法と、予測結果の出力形式について解説する技術文書です。","siteUrl":"https://docs.treasure.ai","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"gluon-predict","__idx":0},"children":["Gluon Predict"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このノートブックは、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["gluon_train"]}," ノートブックで構築された予測モデルを使用して予測を行うために使用されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"サンプル出力","__idx":1},"children":["サンプル出力"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["トレーニングで使用されたラベルと同じカラム名(例: y)が ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["input_table"]}," に存在する場合、予測結果は ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["predicted"]}," というプレフィックスを付けた ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["predicted_y"]}," として出力されます。ラベルカラムが ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["input_table"]}," に存在しない場合、予測結果は ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["y"]}," カラムに出力されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["predicted_proba"]}," および ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["predicted_probabilities"]}," カラムは、二値分類または多クラス分類の結果です。二値分類の場合、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["predict_proba"]}," はポジティブクラスの確率です。ネガティブクラスの確率は 1.0 - ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["predict_proba"]}," で取得できます。多クラス分類の場合、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["predict_proba"]}," は予測されたクラスの確率です。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"y"},"children":["y"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"predicted_y"},"children":["predicted_y"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"predicted_proba"},"children":["predicted_proba"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"predicted_probabilities"},"children":["predicted_probabilities"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["0.29304519295692444"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["{\"no\": 0.706954836845398, \"yes\": 0.29304519295692444}"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["0.00487339636310935"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["{\"no\": 0.9951266050338745, \"yes\": 0.00487339636310935}"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["..."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["..."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["..."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["..."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["0.5266873240470886"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["{\"no\": 0.4733126759529114, \"yes\": 0.5266873240470886}"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["rowid_column"]}," が指定されている場合、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["rowid"]}," カラムに予測結果のみを追加し、結果のテーブルサイズは小さくなります。",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["rowid_column"]}," には、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["user_id"]}," や ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["product_id"]}," のような一意の値を想定しています。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ワークフロー例","__idx":2},"children":["ワークフロー例"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["サンプルワークフローについては、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/treasure-data/treasure-boxes/blob/automl/machine-learning-box/automl/ml_experiment.dig"},"children":["Treasure Boxes"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"+gluon_predict:\n  ml_predict>:\n    notebook: gluon_predict\n    model_name: gluon_model\n    input_table: ml_datasets.bank_marketing_test\n    output_table: ml_test.predicted\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"パラメータ","__idx":3},"children":["パラメータ"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"パラメータ名"},"children":["パラメータ名"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"コンソール上のパラメータ"},"children":["コンソール上のパラメータ"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"デフォルト値"},"children":["デフォルト値"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["docker.task_mem"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Docker Task Mem"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["タスクメモリサイズ。契約されているティアに応じて、64g、128g(デフォルト)、256g、384g、または512gの値を使用できます"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["128g"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["model_name"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Model Name"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["予測モデル名"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["-"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["input_table"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Input Table"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["テストデータとして使用されるTDテーブル名"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["-"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["output_table"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Output Table"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["予測結果をエクスポートするTDテーブル名"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["-"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["output_mode"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Output Mode"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["output_table"]}," をエクスポートする際の出力モード: overwrite、replace、または append。通常、指定する必要はなく、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["rowid_filter"]}," を使用したセミリアルタイム予測ではappendを使用します"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["overwrite"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ignore_columns"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ignore Columns"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["予測モデル構築時に無視するカラム"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["time"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["rowid_column"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Rowid Column"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["rowid"]},"(主キー)カラム。",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["rowid_column"]}," が指定されている場合、出力テーブルにはrowidカラムと予測結果カラムのみが表示されることに注意してください。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["rowid_filter"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Rowid Filter"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["rowid"]}," カラム値による予測対象の行のフィルタリング"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["export_leaderboard"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Export Leaderboard"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["指定されている場合、リーダーボードをTDテーブルとしてエクスポートします"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["export_feature_importance"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Export Feature Importance"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["指定されている場合、特徴量の重要度をTDテーブルとしてエクスポートします"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["hide_table_contents"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Hide Table Contents"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["テーブルの内容の表示を抑制します"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["false"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["shared_model"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Shared Model"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["共有モデルのUUIDを指定します"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["audience_name"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Audience Name"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["属性テーブルをマージするためのAudienceペアレント(マスター)セグメント名"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["foreign_key"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Foreign Key"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["属性テーブルをマージするためのAudienceペアレント(マスター)テーブル内の外部キー"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]}]}]}]}]}]},"headings":[{"value":"Gluon Predict","id":"gluon-predict","depth":1},{"value":"サンプル出力","id":"サンプル出力","depth":3},{"value":"ワークフロー例","id":"ワークフロー例","depth":3},{"value":"パラメータ","id":"パラメータ","depth":3}],"frontmatter":{"seo":{"title":"Gluon Predict","description":"Gluonを使用した機械学習モデルの予測方法と、予測結果の出力形式について解説する技術文書です。"}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/customer-data-platform/machine-learning/automl/notebook-solutions/gluon-predict","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}