{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"SHAP分析","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"shap分析","__idx":0},"children":["SHAP分析"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このノートブックは、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://christophm.github.io/interpretable-ml-book/shap.html"},"children":["SHAP（SHapley Additive exPlanations）"]},"値を使用して、予測結果における特徴量の相対的な重要度を解釈する方法を示します。SHAP分析の詳細については、こちらの",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://blog.treasuredata.com/blog/2021/06/29/multi-touch-attribution-mta-with-shapley-values-tells-marketers-what-works-best/"},"children":["TDブログ記事"]},"をご覧ください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["サンプルの可視化は以下の通りです:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2023-3-7_14-44-12.166d8f68ff61e1f2f90a10047ea424a9857d4d3602a5615718cfaf02e6f84326.3cb60505.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2023-3-7_14-46-9.e510e5121e3b893e866ada234b5744acc84dd5a611475a4728e90483e89780e3.3cb60505.png","alt":""},"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/shapley.dig"},"children":["Treasure Boxes"]},"でサンプルワークフローを確認できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"+explain_predictions_by_shap:\n  ipynb>:\n    notebook: shapley\n    model_name: gluon_model         # 予測に使用されるモデル\n    input_table: ml_test.gluon_test # 予測に使用されるテストデータ\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"パラメータ","__idx":1},"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_name"]},{"$$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":["dbname.table_name形式でTDテーブルを指定"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["-"]}]},{"$$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":["sampling_threshold"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Sampling Threshold"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["サンプリングに使用される閾値。詳細は実行されたノートブックを参照してください。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["10_000_000"]}]},{"$$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":["explain_threshold"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Explain Threshold"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Shapley値を説明する行数"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["200"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["interpret_samples"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Interpret Samples"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["予測を解釈するためのサロゲートモデルを構築するサンプル数"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["100"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["export_shap_values"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Export Shap Values"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Shapley値をTDテーブルとしてエクスポート"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]}]}]}]}]}]},"headings":[{"value":"SHAP分析","id":"shap分析","depth":1},{"value":"パラメータ","id":"パラメータ","depth":3}],"frontmatter":{"seo":{"title":"SHAP分析"}},"lastModified":"2026-01-27T10:05:25.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/customer-data-platform/machine-learning/automl/notebook-solutions/shap-analysis","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}