新しく開設された
Discord コミュニティに参加して、リアルタイムのディスカッション、ユーザー同士のサポート、メリディアン チームとの直接の交流をお楽しみください。
モデルの結果出力を生成する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
モデルの出力結果を生成するには、次の複数の方法があります。
メディアのデータをプロットして可視化することもできます。詳しくは、メディアのデータをプロットして可視化する方法をご確認ください。
モデルの結果の HTML レポートを生成する
モデルの結果のレポートを生成してエクスポートする手順は次のとおりです。
Colab を使用してレポートを Google ドライブにエクスポートする場合は、Google ドライブを Colab ノートブックにマウントします。
from google.colab import drive
drive.mount('/content/drive')
メリディアン モデル オブジェクトを使用して Summarizer
クラスを初期化します。
summarizer = summarizer.Summarizer(meridian)
ファイル名、パス、開始日、終了日を output_model_results_summary
に渡して、その期間の概要を作成し、指定したファイルに保存します。
例:
filepath = '/content/drive/MyDrive'
start_date = '2020-01-05'
end_date = '2020-12-27'
summarizer.output_model_results_summary(f'{FILENAME}.html',
filepath,
start_date,
end_date)
ここで
filepath
は、ファイルを保存する Google ドライブ内のパスです。
start_date
は、レポートの開始日(yyyy-mm-dd 形式)です。
end_date
は、レポートの終了日(yyyy-mm-dd 形式)です。
FILENAME
は、ファイルに指定する名前(例: summary_output.html
)です。ファイルの拡張子は HTML にする必要があります。
HTML レポートが生成され、指定したファイルの場所に保存されます。
モデルの適合度
モデルの適合度のセクションでは、適合度の統計データをチェックできます。メリディアンでは、決定係数、平均絶対誤差率(MAPE)、加重平均絶対誤差率(wMAPE)などのモデル適合度の統計データを確認できます。また、メリディアンでは、収益(または KPI)の実測値と予測値を比較できる視覚的なデータも確認できます。こうしたプロットがあると、モデルのパフォーマンスや、モデルが過小適合かどうかを判断しやすくなります。
モデル適合度の統計データは、モデル候補の比較にも役立ちます。ただし、適合度指標から、モデルが因果推論にどの程度適しているかが完全にわかるわけではありません。また、因果推論に最適なモデルが、予測に最適なモデルとは異なる可能性もあります。
モデルの適合度評価については、モデル診断をご確認ください。
出力例:(画像をクリックして拡大)

収益または KPI への貢献度
収益または KPI への貢献度のセクションには、メディアおよびメディア以外のアクティビティが、収益または KPI のパフォーマンスにどの程度の効果を与えたのかを分析したデータが表示されます。さまざまなチャネル間で、費用対効果(ROI)、費用の割合、収益や KPI の増分などの主要指標を比較できます。また、このセクションでは、ベースライン、価格設定、プロモーション、さまざまなマーケティング チャネル別に貢献度を分類できます。
出力例:(画像をクリックして拡大)

費用対効果
費用対効果のセクションでは、チャネルの費用対効果を詳細に分析して、パフォーマンスの高いチャネルを特定できます。各チャネルの費用対効果、限界費用対効果、有効性を比較できます。また、このセクションでは、費用対効果の推定値の信頼区間も確認できます、これはベイズ モデルの利点の 1 つです。
出力例:(画像をクリックして拡大)

最適化分析
最適化分析のセクションには、現在の費用レベルと、チャネルごとの限界費用対効果が低下し始めるポイントが表示されます。また、翌年の予算配分を決める際に役立つ、フリークエンシーの最適化案も確認できます。
出力例:
モデルの結果の概要を生成する
モデルの結果の概要は、MediaSummary
クラスによって生成されます。このクラスを初期化するときに、モデル結果の信頼区間は confidence_level
引数を使用して指定できます。モデルの推定期間については、selected_times
引数を使用して指定できます。デフォルトでは、90% の信頼区間と完全なモデリング ウィンドウを使用して、統計情報の概要が生成されます。
例:
デフォルト設定で概要を生成する場合は、次のコマンドを実行します。
media_summary = visualizer.MediaSummary(meridian)
media_summary.summary_table()
出力例:(画像をクリックして拡大)

特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-04 UTC。
[null,null,["最終更新日 2025-08-04 UTC。"],[[["\u003cp\u003eYou can generate a two-page HTML report with a custom time range and export it to Google Drive for team sharing.\u003c/p\u003e\n"],["\u003cp\u003eA model results summary can be generated, allowing for the customization of reports and visualizations or exportation to other formats for more detailed numerical analysis of media metrics.\u003c/p\u003e\n"],["\u003cp\u003eThe model's fit section offers a statistical goodness of fit check, including R-squared, MAPE, and wMAPE, and visual comparisons of predicted vs.actual revenue/KPI figures.\u003c/p\u003e\n"],["\u003cp\u003eThe Revenue or KPI Contribution section analyzes the impact of media and non-media activities, allowing for comparison of ROI, spend percentage, and incremental revenue across channels.\u003c/p\u003e\n"],["\u003cp\u003eThe Optimal Analysis section indicates current spend levels and diminishing returns, offering optimal frequency recommendations for budget allocation in the next year.\u003c/p\u003e\n"]]],["Model results can be outputted as an HTML report or a numerical summary. To generate an HTML report, initialize the `Summarizer` class, and use `output_model_results_summary`, specifying the filename, path, and desired time range. The report includes model fit statistics, revenue/KPI contribution, ROI analysis, and optimal analysis sections. To generate a numerical summary, use the `MediaSummary` class and its `summary_table` function. Both allow customization of the output time range.\n"],null,["# Generate model results output\n\nThere are several options to generate model results output. You can:\n\n- [Generate a two-page HTML report](/meridian/docs/user-guide/generate-model-results-output#html)\n with a custom time range and export the HTML output to your Google Drive to\n share with your team.\n\n- [Generate a model results summary](/meridian/docs/user-guide/generate-model-results-output#summary)\n to customize your own reports, visualizations, or export them to another\n format. These numerical summaries of your media metrics let you access more\n detail.\n\nYou can also plot media visualizations. For more information, see [Plot media\nvisualizations](/meridian/docs/user-guide/plot-media-visualizations).\n\nGenerate the model results HTML report\n--------------------------------------\n\nTo generate and export the model results report:\n\n1. If you use Colab and want to export the report to your Google Drive, mount\n Google Drive to your Colab notebook:\n\n from google.colab import drive\n drive.mount('/content/drive')\n\n2. Initialize the `Summarizer` class with the Meridian model object:\n\n summarizer = summarizer.Summarizer(meridian)\n\n3. Pass in the filename, path, start date, and end date to\n `output_model_results_summary` to run the summary for that time duration and\n save it to the specified file.\n\n **Example:** \n\n filepath = '/content/drive/MyDrive'\n start_date = '2020-01-05'\n end_date = '2020-12-27'\n summarizer.output_model_results_summary(f'{FILENAME}.html',\n filepath,\n start_date,\n end_date)\n\n Where:\n - `filepath` is the path in your Google Drive where you want to save your file.\n - `start_date` is the report's start date using the yyyy-mm-dd format.\n - `end_date` is the report's end date using the yyyy-mm-dd format.\n - `FILENAME` is the name you want to specify for the file, for example `summary_output.html`. The file extension must be HTML.\n\n The HTML report is generated and saved to the specified file location.\n\n### Your model's fit\n\nThe **Your model's fit** section lets you check statistical goodness of fit.\nMeridian reports model fit statistics including R-squared, Mean Absolute\nPercentage Error (MAPE) and Weighted Mean Absolute Percentage Error (wMAPE).\nAdditionally, Meridian provides visual representations comparing\npredicted revenue (or KPI) to actual revenue (or KPI) figures. These plots\nfacilitate the assessment of the model's performance and assist in determining\nwhether the model is underfitted.\n\nModel fit statistics can also be useful for comparing candidate models. However,\nkeep in mind that goodness of fit metrics don't give a complete picture of how\ngood a model is for causal inference, and it might likely be the case that the\nbest model for causal inference is different from the best model for prediction.\n\nFor information about assessing the model fit, see [Modeling\ndiagnostics](/meridian/docs/user-guide/model-diagnostics).\n\n**Example output:** (*Click the image to enlarge.*)\n\n### Revenue or KPI contribution\n\nThe **Revenue or KPI Contribution** section provides an analysis of the impact\nof your media and non-media activities on your revenue or KPI performance. It\nlets you compare key metrics such as return on investment (ROI), percent of\nspend, and percent of incremental revenue or KPI across different channels.\nAdditionally, this section lets you break down the contribution by baseline,\npricing promotions, and various marketing channels.\n\n**Example output:** (*Click the image to enlarge.*)\n\n### Return on investment\n\nThe **Return on investment** section provides a deeper view of ROI analysis for\nchannels to help you identify the highest performing channels. You can compare\nROI, marginal ROI, and effectiveness across channels. Additionally, this section\npresents the credible interval for the ROI estimations, which constitutes one\nadvantage of Bayesian models.\n\n**Example output:** (*Click the image to enlarge.*)\n\n### Optimal Analysis\n\nThe **Optimal Analysis** section shows your current spend level and where you\nstart to see diminishing marginal returns on the amount of money you are\nspending per channel, and provides optimal frequency recommendations to help you\ndecide how to focus your budget for the next year.\n\n**Example output:**\n\nGenerate the model results summary\n----------------------------------\n\nThe model results summaries are generated through the `MediaSummary` class. When\ninitiating this class, the credible interval for the model results can be\nspecified using the `confidence_level` argument, while the time period for the\nmodel estimation can be specified using the `selected_times` argument. By\ndefault, the summary statistics are generated using a 90% credible interval and\nthe full modeling window.\n\n**Example:**\n\nRun the following commands to generate the summary using the default settings: \n\n media_summary = visualizer.MediaSummary(meridian)\n media_summary.summary_table()\n\n**Example output:** (*Click the image to enlarge.*)"]]