Last active
November 29, 2023 20:52
-
-
Save ngupta23/1e104f18c0440156953ac37dc8e2a616 to your computer and use it in GitHub Desktop.
hierarchical_fcst_statsmodels_custom.ipynb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nbformat": 4, | |
"nbformat_minor": 0, | |
"metadata": { | |
"colab": { | |
"provenance": [], | |
"toc_visible": true, | |
"authorship_tag": "ABX9TyNO222dsW/ieU2OYK1HoFNT", | |
"include_colab_link": true | |
}, | |
"kernelspec": { | |
"name": "python3", | |
"display_name": "Python 3" | |
}, | |
"language_info": { | |
"name": "python" | |
} | |
}, | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "view-in-github", | |
"colab_type": "text" | |
}, | |
"source": [ | |
"<a href=\"https://colab.research.google.com/gist/ngupta23/1e104f18c0440156953ac37dc8e2a616/hierarchical_fcst_statsmodels_custom.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": [ | |
"* Spin off from https://gist.github.com/ngupta23/8adf65543584632f8ec57a27d9ec3480\n", | |
"\n", | |
"* Also, how to represent multiple hierarchies: https://medium.com/@adeforceville_96412/hierarchical-timeseries-reconciliation-58addce2aeb7#:~:text=HTS%20reconciliation%20is%20a%20field,coherent%20and%20sum%20up%20correctly." | |
], | |
"metadata": { | |
"id": "7910EH6XPHDR" | |
} | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": [ | |
"## Install Libraries" | |
], | |
"metadata": { | |
"id": "3Vy25M9Cc828" | |
} | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": { | |
"id": "2JL_0HHnPE9l" | |
}, | |
"outputs": [], | |
"source": [ | |
"%%capture\n", | |
"!pip install hierarchicalforecast" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"import random\n", | |
"\n", | |
"import numpy as np\n", | |
"import pandas as pd\n", | |
"\n", | |
"from hierarchicalforecast.utils import aggregate, HierarchicalPlot\n", | |
"from hierarchicalforecast.methods import BottomUp, TopDown, MinTrace, ERM\n", | |
"from hierarchicalforecast.core import HierarchicalReconciliation\n", | |
"from hierarchicalforecast.evaluation import HierarchicalEvaluation" | |
], | |
"metadata": { | |
"id": "ZeNzll0MPL5A" | |
}, | |
"execution_count": 2, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": [ | |
"## Data Characteristics" | |
], | |
"metadata": { | |
"id": "s-cWqqq4bTrb" | |
} | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"N = 12 # Total number of time points per series\n", | |
"FH = 2 # Forecast Horizon\n", | |
"NUM_SKUS = 8\n", | |
"NUM_ACCOUNTS = 3" | |
], | |
"metadata": { | |
"id": "goAxbbW1nwpR" | |
}, | |
"execution_count": 3, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": [ | |
"## Create your dataset\n", | |
"\n", | |
"Our dataset has 2 hierarchies. \n", | |
"\n", | |
"**Product Hierarchy**\n", | |
"- **All Products**: Retail\n", | |
" - **Category**: Chocolate, Baby Food\n", | |
" - **Brand**: KitKat, Butterfinger, Cerelac, Gerber\n", | |
" - **SKU**: 1 pack, 8 pack, 32 oz, 64 oz \n", | |
" \n", | |
"**Customer Hierarchy**\n", | |
"- **All Accounts**: Retail\n", | |
" - **Channel**: Wholesale & Mass Market\n", | |
" - **Account**: Sams, Kroger, Walmart" | |
], | |
"metadata": { | |
"id": "57ZQ3BZdbCbv" | |
} | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"ds = pd.date_range(start='2022-01-01', periods=N, freq='MS')\n", | |
"y_list = []\n", | |
"random.seed(42)\n", | |
"np.random.seed(42)\n", | |
"for _ in np.arange(NUM_SKUS * NUM_ACCOUNTS):\n", | |
" y_list.append([random.randint(0, 100) for _ in np.arange(N)])\n", | |
"ys = np.concatenate(y_list)\n", | |
"ds = np.tile(ds, len(y_list))\n", | |
"\n", | |
"REPS = NUM_ACCOUNTS * N\n", | |
"all_products = [\"retail\"] * 8 * REPS\n", | |
"category = [\"chocolate\"] * 4 * REPS + [\"baby_food\"] * 4 * REPS\n", | |
"brand = [\"kitkat\"] * 2 * REPS + [\"buterfinger\"]* 2 * REPS + [\"cerelac\"] * 2 * REPS + [\"gerber\"] * 2 * REPS\n", | |
"sku = [\"kk_1pk\"] * REPS + [\"kk_8pk\"] * REPS + [\"bf_1pk\"] * REPS + [\"bf_8pk\"] * REPS + [\"cer_32oz\"] * REPS + [\"cer_64oz\"] * REPS + [\"ger_32oz\"] * REPS + [\"ger_64oz\"] * REPS\n", | |
"\n", | |
"all_accounts = [\"retail\"] * 3 * N * NUM_SKUS\n", | |
"channel = [[\"wholesale\"] * N + [\"mass_market\"] * 2 * N][0] * NUM_SKUS\n", | |
"account = [[\"sams\"] * N + [\"kroger\"] * N + [\"walmart\"] * N][0] * NUM_SKUS\n", | |
"\n", | |
"bottom_df = dict(\n", | |
" ds=ds,\n", | |
" all_acc = all_accounts,\n", | |
" ch = channel,\n", | |
" acc = account,\n", | |
" all_prods=all_products,\n", | |
" cat=category, \n", | |
" brand=brand, \n", | |
" sku=sku,\n", | |
" y=ys\n", | |
")\n", | |
"bottom_df = pd.DataFrame(bottom_df)\n", | |
"bottom_df.groupby(['sku']).tail(FH)" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 551 | |
}, | |
"id": "D7O8JnvxqHnA", | |
"outputId": "bda0130d-74bb-48ce-8cbe-57ebd6d60db6" | |
}, | |
"execution_count": 4, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
" ds all_acc ch acc all_prods cat \\\n", | |
"34 2022-11-01 retail mass_market walmart retail chocolate \n", | |
"35 2022-12-01 retail mass_market walmart retail chocolate \n", | |
"70 2022-11-01 retail mass_market walmart retail chocolate \n", | |
"71 2022-12-01 retail mass_market walmart retail chocolate \n", | |
"106 2022-11-01 retail mass_market walmart retail chocolate \n", | |
"107 2022-12-01 retail mass_market walmart retail chocolate \n", | |
"142 2022-11-01 retail mass_market walmart retail chocolate \n", | |
"143 2022-12-01 retail mass_market walmart retail chocolate \n", | |
"178 2022-11-01 retail mass_market walmart retail baby_food \n", | |
"179 2022-12-01 retail mass_market walmart retail baby_food \n", | |
"214 2022-11-01 retail mass_market walmart retail baby_food \n", | |
"215 2022-12-01 retail mass_market walmart retail baby_food \n", | |
"250 2022-11-01 retail mass_market walmart retail baby_food \n", | |
"251 2022-12-01 retail mass_market walmart retail baby_food \n", | |
"286 2022-11-01 retail mass_market walmart retail baby_food \n", | |
"287 2022-12-01 retail mass_market walmart retail baby_food \n", | |
"\n", | |
" brand sku y \n", | |
"34 kitkat kk_1pk 35 \n", | |
"35 kitkat kk_1pk 0 \n", | |
"70 kitkat kk_8pk 5 \n", | |
"71 kitkat kk_8pk 84 \n", | |
"106 buterfinger bf_1pk 28 \n", | |
"107 buterfinger bf_1pk 87 \n", | |
"142 buterfinger bf_8pk 28 \n", | |
"143 buterfinger bf_8pk 17 \n", | |
"178 cerelac cer_32oz 20 \n", | |
"179 cerelac cer_32oz 58 \n", | |
"214 cerelac cer_64oz 10 \n", | |
"215 cerelac cer_64oz 10 \n", | |
"250 gerber ger_32oz 8 \n", | |
"251 gerber ger_32oz 43 \n", | |
"286 gerber ger_64oz 12 \n", | |
"287 gerber ger_64oz 84 " | |
], | |
"text/html": [ | |
"\n", | |
" <div id=\"df-7df6c047-7c02-49a4-afd8-83e544a5f4ec\">\n", | |
" <div class=\"colab-df-container\">\n", | |
" <div>\n", | |
"<style scoped>\n", | |
" .dataframe tbody tr th:only-of-type {\n", | |
" vertical-align: middle;\n", | |
" }\n", | |
"\n", | |
" .dataframe tbody tr th {\n", | |
" vertical-align: top;\n", | |
" }\n", | |
"\n", | |
" .dataframe thead th {\n", | |
" text-align: right;\n", | |
" }\n", | |
"</style>\n", | |
"<table border=\"1\" class=\"dataframe\">\n", | |
" <thead>\n", | |
" <tr style=\"text-align: right;\">\n", | |
" <th></th>\n", | |
" <th>ds</th>\n", | |
" <th>all_acc</th>\n", | |
" <th>ch</th>\n", | |
" <th>acc</th>\n", | |
" <th>all_prods</th>\n", | |
" <th>cat</th>\n", | |
" <th>brand</th>\n", | |
" <th>sku</th>\n", | |
" <th>y</th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th>34</th>\n", | |
" <td>2022-11-01</td>\n", | |
" <td>retail</td>\n", | |
" <td>mass_market</td>\n", | |
" <td>walmart</td>\n", | |
" <td>retail</td>\n", | |
" <td>chocolate</td>\n", | |
" <td>kitkat</td>\n", | |
" <td>kk_1pk</td>\n", | |
" <td>35</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>35</th>\n", | |
" <td>2022-12-01</td>\n", | |
" <td>retail</td>\n", | |
" <td>mass_market</td>\n", | |
" <td>walmart</td>\n", | |
" <td>retail</td>\n", | |
" <td>chocolate</td>\n", | |
" <td>kitkat</td>\n", | |
" <td>kk_1pk</td>\n", | |
" <td>0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>70</th>\n", | |
" <td>2022-11-01</td>\n", | |
" <td>retail</td>\n", | |
" <td>mass_market</td>\n", | |
" <td>walmart</td>\n", | |
" <td>retail</td>\n", | |
" <td>chocolate</td>\n", | |
" <td>kitkat</td>\n", | |
" <td>kk_8pk</td>\n", | |
" <td>5</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>71</th>\n", | |
" <td>2022-12-01</td>\n", | |
" <td>retail</td>\n", | |
" <td>mass_market</td>\n", | |
" <td>walmart</td>\n", | |
" <td>retail</td>\n", | |
" <td>chocolate</td>\n", | |
" <td>kitkat</td>\n", | |
" <td>kk_8pk</td>\n", | |
" <td>84</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>106</th>\n", | |
" <td>2022-11-01</td>\n", | |
" <td>retail</td>\n", | |
" <td>mass_market</td>\n", | |
" <td>walmart</td>\n", | |
" <td>retail</td>\n", | |
" <td>chocolate</td>\n", | |
" <td>buterfinger</td>\n", | |
" <td>bf_1pk</td>\n", | |
" <td>28</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>107</th>\n", | |
" <td>2022-12-01</td>\n", | |
" <td>retail</td>\n", | |
" <td>mass_market</td>\n", | |
" <td>walmart</td>\n", | |
" <td>retail</td>\n", | |
" <td>chocolate</td>\n", | |
" <td>buterfinger</td>\n", | |
" <td>bf_1pk</td>\n", | |
" <td>87</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>142</th>\n", | |
" <td>2022-11-01</td>\n", | |
" <td>retail</td>\n", | |
" <td>mass_market</td>\n", | |
" <td>walmart</td>\n", | |
" <td>retail</td>\n", | |
" <td>chocolate</td>\n", | |
" <td>buterfinger</td>\n", | |
" <td>bf_8pk</td>\n", | |
" <td>28</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>143</th>\n", | |
" <td>2022-12-01</td>\n", | |
" <td>retail</td>\n", | |
" <td>mass_market</td>\n", | |
" <td>walmart</td>\n", | |
" <td>retail</td>\n", | |
" <td>chocolate</td>\n", | |
" <td>buterfinger</td>\n", | |
" <td>bf_8pk</td>\n", | |
" <td>17</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>178</th>\n", | |
" <td>2022-11-01</td>\n", | |
" <td>retail</td>\n", | |
" <td>mass_market</td>\n", | |
" <td>walmart</td>\n", | |
" <td>retail</td>\n", | |
" <td>baby_food</td>\n", | |
" <td>cerelac</td>\n", | |
" <td>cer_32oz</td>\n", | |
" <td>20</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>179</th>\n", | |
" <td>2022-12-01</td>\n", | |
" <td>retail</td>\n", | |
" <td>mass_market</td>\n", | |
" <td>walmart</td>\n", | |
" <td>retail</td>\n", | |
" <td>baby_food</td>\n", | |
" <td>cerelac</td>\n", | |
" <td>cer_32oz</td>\n", | |
" <td>58</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>214</th>\n", | |
" <td>2022-11-01</td>\n", | |
" <td>retail</td>\n", | |
" <td>mass_market</td>\n", | |
" <td>walmart</td>\n", | |
" <td>retail</td>\n", | |
" <td>baby_food</td>\n", | |
" <td>cerelac</td>\n", | |
" <td>cer_64oz</td>\n", | |
" <td>10</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>215</th>\n", | |
" <td>2022-12-01</td>\n", | |
" <td>retail</td>\n", | |
" <td>mass_market</td>\n", | |
" <td>walmart</td>\n", | |
" <td>retail</td>\n", | |
" <td>baby_food</td>\n", | |
" <td>cerelac</td>\n", | |
" <td>cer_64oz</td>\n", | |
" <td>10</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>250</th>\n", | |
" <td>2022-11-01</td>\n", | |
" <td>retail</td>\n", | |
" <td>mass_market</td>\n", | |
" <td>walmart</td>\n", | |
" <td>retail</td>\n", | |
" <td>baby_food</td>\n", | |
" <td>gerber</td>\n", | |
" <td>ger_32oz</td>\n", | |
" <td>8</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>251</th>\n", | |
" <td>2022-12-01</td>\n", | |
" <td>retail</td>\n", | |
" <td>mass_market</td>\n", | |
" <td>walmart</td>\n", | |
" <td>retail</td>\n", | |
" <td>baby_food</td>\n", | |
" <td>gerber</td>\n", | |
" <td>ger_32oz</td>\n", | |
" <td>43</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>286</th>\n", | |
" <td>2022-11-01</td>\n", | |
" <td>retail</td>\n", | |
" <td>mass_market</td>\n", | |
" <td>walmart</td>\n", | |
" <td>retail</td>\n", | |
" <td>baby_food</td>\n", | |
" <td>gerber</td>\n", | |
" <td>ger_64oz</td>\n", | |
" <td>12</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>287</th>\n", | |
" <td>2022-12-01</td>\n", | |
" <td>retail</td>\n", | |
" <td>mass_market</td>\n", | |
" <td>walmart</td>\n", | |
" <td>retail</td>\n", | |
" <td>baby_food</td>\n", | |
" <td>gerber</td>\n", | |
" <td>ger_64oz</td>\n", | |
" <td>84</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n", | |
"</div>\n", | |
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-7df6c047-7c02-49a4-afd8-83e544a5f4ec')\"\n", | |
" title=\"Convert this dataframe to an interactive table.\"\n", | |
" style=\"display:none;\">\n", | |
" \n", | |
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n", | |
" width=\"24px\">\n", | |
" <path d=\"M0 0h24v24H0V0z\" fill=\"none\"/>\n", | |
" <path d=\"M18.56 5.44l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94zm-11 1L8.5 8.5l.94-2.06 2.06-.94-2.06-.94L8.5 2.5l-.94 2.06-2.06.94zm10 10l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94z\"/><path d=\"M17.41 7.96l-1.37-1.37c-.4-.4-.92-.59-1.43-.59-.52 0-1.04.2-1.43.59L10.3 9.45l-7.72 7.72c-.78.78-.78 2.05 0 2.83L4 21.41c.39.39.9.59 1.41.59.51 0 1.02-.2 1.41-.59l7.78-7.78 2.81-2.81c.8-.78.8-2.07 0-2.86zM5.41 20L4 18.59l7.72-7.72 1.47 1.35L5.41 20z\"/>\n", | |
" </svg>\n", | |
" </button>\n", | |
" \n", | |
" <style>\n", | |
" .colab-df-container {\n", | |
" display:flex;\n", | |
" flex-wrap:wrap;\n", | |
" gap: 12px;\n", | |
" }\n", | |
"\n", | |
" .colab-df-convert {\n", | |
" background-color: #E8F0FE;\n", | |
" border: none;\n", | |
" border-radius: 50%;\n", | |
" cursor: pointer;\n", | |
" display: none;\n", | |
" fill: #1967D2;\n", | |
" height: 32px;\n", | |
" padding: 0 0 0 0;\n", | |
" width: 32px;\n", | |
" }\n", | |
"\n", | |
" .colab-df-convert:hover {\n", | |
" background-color: #E2EBFA;\n", | |
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n", | |
" fill: #174EA6;\n", | |
" }\n", | |
"\n", | |
" [theme=dark] .colab-df-convert {\n", | |
" background-color: #3B4455;\n", | |
" fill: #D2E3FC;\n", | |
" }\n", | |
"\n", | |
" [theme=dark] .colab-df-convert:hover {\n", | |
" background-color: #434B5C;\n", | |
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n", | |
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n", | |
" fill: #FFFFFF;\n", | |
" }\n", | |
" </style>\n", | |
"\n", | |
" <script>\n", | |
" const buttonEl =\n", | |
" document.querySelector('#df-7df6c047-7c02-49a4-afd8-83e544a5f4ec button.colab-df-convert');\n", | |
" buttonEl.style.display =\n", | |
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n", | |
"\n", | |
" async function convertToInteractive(key) {\n", | |
" const element = document.querySelector('#df-7df6c047-7c02-49a4-afd8-83e544a5f4ec');\n", | |
" const dataTable =\n", | |
" await google.colab.kernel.invokeFunction('convertToInteractive',\n", | |
" [key], {});\n", | |
" if (!dataTable) return;\n", | |
"\n", | |
" const docLinkHtml = 'Like what you see? Visit the ' +\n", | |
" '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n", | |
" + ' to learn more about interactive tables.';\n", | |
" element.innerHTML = '';\n", | |
" dataTable['output_type'] = 'display_data';\n", | |
" await google.colab.output.renderOutput(dataTable, element);\n", | |
" const docLink = document.createElement('div');\n", | |
" docLink.innerHTML = docLinkHtml;\n", | |
" element.appendChild(docLink);\n", | |
" }\n", | |
" </script>\n", | |
" </div>\n", | |
" </div>\n", | |
" " | |
] | |
}, | |
"metadata": {}, | |
"execution_count": 4 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"# len(ds), len(all_products), len(category), len(brand), len(sku), len(ys), len(all_accounts), len(channel), len(account)" | |
], | |
"metadata": { | |
"id": "jJoNnTKFa9po" | |
}, | |
"execution_count": 5, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"# Create hierarchical structure and constraints\n", | |
"hierarchy_levels = [\n", | |
" ['all_acc'],\n", | |
" ['all_acc', 'ch'],\n", | |
" ['all_acc', 'ch', 'acc'],\n", | |
" ['all_acc', 'ch', 'acc', 'all_prods'],\n", | |
" ['all_acc', 'ch', 'acc', 'all_prods', 'cat'],\n", | |
" ['all_acc', 'ch', 'acc', 'all_prods', 'cat', 'brand'],\n", | |
" ['all_acc', 'ch', 'acc', 'all_prods', 'cat', 'brand', 'sku']\n", | |
" ]\n", | |
"Y_hier_df, S_df, tags = aggregate(df=bottom_df, spec=hierarchy_levels)\n", | |
"Y_hier_df = Y_hier_df.reset_index()\n", | |
"print('S_df.shape', S_df.shape)\n", | |
"print('Y_hier_df.shape', Y_hier_df.shape)\n", | |
"print(\"tags['all_acc']\", tags['all_acc'])" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "dNIFodWIPWTg", | |
"outputId": "de724f56-bad7-4d6e-94eb-f12281fb474e" | |
}, | |
"execution_count": 6, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"S_df.shape (51, 24)\n", | |
"Y_hier_df.shape (612, 3)\n", | |
"tags['all_acc'] ['retail']\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"# Y_hier_df[\"unique_id\"].unique()" | |
], | |
"metadata": { | |
"id": "giWk84ziXG_s" | |
}, | |
"execution_count": 7, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"S_df" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 1000 | |
}, | |
"id": "_hWjXlSBPWy3", | |
"outputId": "70a092c8-9c15-44a4-df69-972d7b75c1db" | |
}, | |
"execution_count": 8, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
" retail/mass_market/kroger/retail/baby_food/cerelac/cer_32oz \\\n", | |
"retail 1.0 \n", | |
"retail/mass_market 1.0 \n", | |
"retail/wholesale 0.0 \n", | |
"retail/mass_market/kroger 1.0 \n", | |
"retail/mass_market/walmart 0.0 \n", | |
"retail/wholesale/sams 0.0 \n", | |
"retail/mass_market/kroger/retail 1.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/mass_market/kroger/retail/baby_food/cerelac/cer_64oz \\\n", | |
"retail 1.0 \n", | |
"retail/mass_market 1.0 \n", | |
"retail/wholesale 0.0 \n", | |
"retail/mass_market/kroger 1.0 \n", | |
"retail/mass_market/walmart 0.0 \n", | |
"retail/wholesale/sams 0.0 \n", | |
"retail/mass_market/kroger/retail 1.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/mass_market/kroger/retail/baby_food/gerber/ger_32oz \\\n", | |
"retail 1.0 \n", | |
"retail/mass_market 1.0 \n", | |
"retail/wholesale 0.0 \n", | |
"retail/mass_market/kroger 1.0 \n", | |
"retail/mass_market/walmart 0.0 \n", | |
"retail/wholesale/sams 0.0 \n", | |
"retail/mass_market/kroger/retail 1.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/mass_market/kroger/retail/baby_food/gerber/ger_64oz \\\n", | |
"retail 1.0 \n", | |
"retail/mass_market 1.0 \n", | |
"retail/wholesale 0.0 \n", | |
"retail/mass_market/kroger 1.0 \n", | |
"retail/mass_market/walmart 0.0 \n", | |
"retail/wholesale/sams 0.0 \n", | |
"retail/mass_market/kroger/retail 1.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/mass_market/kroger/retail/chocolate/buterfinger/bf_1pk \\\n", | |
"retail 1.0 \n", | |
"retail/mass_market 1.0 \n", | |
"retail/wholesale 0.0 \n", | |
"retail/mass_market/kroger 1.0 \n", | |
"retail/mass_market/walmart 0.0 \n", | |
"retail/wholesale/sams 0.0 \n", | |
"retail/mass_market/kroger/retail 1.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 1.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/mass_market/kroger/retail/chocolate/buterfinger/bf_8pk \\\n", | |
"retail 1.0 \n", | |
"retail/mass_market 1.0 \n", | |
"retail/wholesale 0.0 \n", | |
"retail/mass_market/kroger 1.0 \n", | |
"retail/mass_market/walmart 0.0 \n", | |
"retail/wholesale/sams 0.0 \n", | |
"retail/mass_market/kroger/retail 1.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 1.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/mass_market/kroger/retail/chocolate/kitkat/kk_1pk \\\n", | |
"retail 1.0 \n", | |
"retail/mass_market 1.0 \n", | |
"retail/wholesale 0.0 \n", | |
"retail/mass_market/kroger 1.0 \n", | |
"retail/mass_market/walmart 0.0 \n", | |
"retail/wholesale/sams 0.0 \n", | |
"retail/mass_market/kroger/retail 1.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 1.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 1.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/mass_market/kroger/retail/chocolate/kitkat/kk_8pk \\\n", | |
"retail 1.0 \n", | |
"retail/mass_market 1.0 \n", | |
"retail/wholesale 0.0 \n", | |
"retail/mass_market/kroger 1.0 \n", | |
"retail/mass_market/walmart 0.0 \n", | |
"retail/wholesale/sams 0.0 \n", | |
"retail/mass_market/kroger/retail 1.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 1.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 1.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 1.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/mass_market/walmart/retail/baby_food/cerelac/cer_32oz \\\n", | |
"retail 1.0 \n", | |
"retail/mass_market 1.0 \n", | |
"retail/wholesale 0.0 \n", | |
"retail/mass_market/kroger 0.0 \n", | |
"retail/mass_market/walmart 1.0 \n", | |
"retail/wholesale/sams 0.0 \n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 1.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 1.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 1.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 1.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/mass_market/walmart/retail/baby_food/cerelac/cer_64oz \\\n", | |
"retail 1.0 \n", | |
"retail/mass_market 1.0 \n", | |
"retail/wholesale 0.0 \n", | |
"retail/mass_market/kroger 0.0 \n", | |
"retail/mass_market/walmart 1.0 \n", | |
"retail/wholesale/sams 0.0 \n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 1.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 1.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 1.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 1.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" ... \\\n", | |
"retail ... \n", | |
"retail/mass_market ... \n", | |
"retail/wholesale ... \n", | |
"retail/mass_market/kroger ... \n", | |
"retail/mass_market/walmart ... \n", | |
"retail/wholesale/sams ... \n", | |
"retail/mass_market/kroger/retail ... \n", | |
"retail/mass_market/walmart/retail ... \n", | |
"retail/wholesale/sams/retail ... \n", | |
"retail/mass_market/kroger/retail/baby_food ... \n", | |
"retail/mass_market/kroger/retail/chocolate ... \n", | |
"retail/mass_market/walmart/retail/baby_food ... \n", | |
"retail/mass_market/walmart/retail/chocolate ... \n", | |
"retail/wholesale/sams/retail/baby_food ... \n", | |
"retail/wholesale/sams/retail/chocolate ... \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac ... \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber ... \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... ... \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat ... \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... ... \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber ... \n", | |
"retail/mass_market/walmart/retail/chocolate/but... ... \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat ... \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac ... \n", | |
"retail/wholesale/sams/retail/baby_food/gerber ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger ... \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat ... \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... ... \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... ... \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... ... \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... ... \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... ... \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... ... \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... ... \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... ... \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... ... \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... ... \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... ... \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... ... \n", | |
"retail/mass_market/walmart/retail/chocolate/but... ... \n", | |
"retail/mass_market/walmart/retail/chocolate/but... ... \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... ... \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... ... \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... ... \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... ... \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... ... \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... ... \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... ... \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... ... \n", | |
"\n", | |
" retail/mass_market/walmart/retail/chocolate/kitkat/kk_1pk \\\n", | |
"retail 1.0 \n", | |
"retail/mass_market 1.0 \n", | |
"retail/wholesale 0.0 \n", | |
"retail/mass_market/kroger 0.0 \n", | |
"retail/mass_market/walmart 1.0 \n", | |
"retail/wholesale/sams 0.0 \n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 1.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 1.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 1.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 1.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/mass_market/walmart/retail/chocolate/kitkat/kk_8pk \\\n", | |
"retail 1.0 \n", | |
"retail/mass_market 1.0 \n", | |
"retail/wholesale 0.0 \n", | |
"retail/mass_market/kroger 0.0 \n", | |
"retail/mass_market/walmart 1.0 \n", | |
"retail/wholesale/sams 0.0 \n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 1.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 1.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 1.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 1.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/wholesale/sams/retail/baby_food/cerelac/cer_32oz \\\n", | |
"retail 1.0 \n", | |
"retail/mass_market 0.0 \n", | |
"retail/wholesale 1.0 \n", | |
"retail/mass_market/kroger 0.0 \n", | |
"retail/mass_market/walmart 0.0 \n", | |
"retail/wholesale/sams 1.0 \n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 1.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 1.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/wholesale/sams/retail/baby_food/cerelac/cer_64oz \\\n", | |
"retail 1.0 \n", | |
"retail/mass_market 0.0 \n", | |
"retail/wholesale 1.0 \n", | |
"retail/mass_market/kroger 0.0 \n", | |
"retail/mass_market/walmart 0.0 \n", | |
"retail/wholesale/sams 1.0 \n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 1.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 1.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/wholesale/sams/retail/baby_food/gerber/ger_32oz \\\n", | |
"retail 1.0 \n", | |
"retail/mass_market 0.0 \n", | |
"retail/wholesale 1.0 \n", | |
"retail/mass_market/kroger 0.0 \n", | |
"retail/mass_market/walmart 0.0 \n", | |
"retail/wholesale/sams 1.0 \n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 1.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/wholesale/sams/retail/baby_food/gerber/ger_64oz \\\n", | |
"retail 1.0 \n", | |
"retail/mass_market 0.0 \n", | |
"retail/wholesale 1.0 \n", | |
"retail/mass_market/kroger 0.0 \n", | |
"retail/mass_market/walmart 0.0 \n", | |
"retail/wholesale/sams 1.0 \n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/wholesale/sams/retail/chocolate/buterfinger/bf_1pk \\\n", | |
"retail 1.0 \n", | |
"retail/mass_market 0.0 \n", | |
"retail/wholesale 1.0 \n", | |
"retail/mass_market/kroger 0.0 \n", | |
"retail/mass_market/walmart 0.0 \n", | |
"retail/wholesale/sams 1.0 \n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/wholesale/sams/retail/chocolate/buterfinger/bf_8pk \\\n", | |
"retail 1.0 \n", | |
"retail/mass_market 0.0 \n", | |
"retail/wholesale 1.0 \n", | |
"retail/mass_market/kroger 0.0 \n", | |
"retail/mass_market/walmart 0.0 \n", | |
"retail/wholesale/sams 1.0 \n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/wholesale/sams/retail/chocolate/kitkat/kk_1pk \\\n", | |
"retail 1.0 \n", | |
"retail/mass_market 0.0 \n", | |
"retail/wholesale 1.0 \n", | |
"retail/mass_market/kroger 0.0 \n", | |
"retail/mass_market/walmart 0.0 \n", | |
"retail/wholesale/sams 1.0 \n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/wholesale/sams/retail/chocolate/kitkat/kk_8pk \n", | |
"retail 1.0 \n", | |
"retail/mass_market 0.0 \n", | |
"retail/wholesale 1.0 \n", | |
"retail/mass_market/kroger 0.0 \n", | |
"retail/mass_market/walmart 0.0 \n", | |
"retail/wholesale/sams 1.0 \n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 1.0 \n", | |
"\n", | |
"[51 rows x 24 columns]" | |
], | |
"text/html": [ | |
"\n", | |
" <div id=\"df-d64fe87b-19fe-40ac-8389-679cd3e99be7\">\n", | |
" <div class=\"colab-df-container\">\n", | |
" <div>\n", | |
"<style scoped>\n", | |
" .dataframe tbody tr th:only-of-type {\n", | |
" vertical-align: middle;\n", | |
" }\n", | |
"\n", | |
" .dataframe tbody tr th {\n", | |
" vertical-align: top;\n", | |
" }\n", | |
"\n", | |
" .dataframe thead th {\n", | |
" text-align: right;\n", | |
" }\n", | |
"</style>\n", | |
"<table border=\"1\" class=\"dataframe\">\n", | |
" <thead>\n", | |
" <tr style=\"text-align: right;\">\n", | |
" <th></th>\n", | |
" <th>retail/mass_market/kroger/retail/baby_food/cerelac/cer_32oz</th>\n", | |
" <th>retail/mass_market/kroger/retail/baby_food/cerelac/cer_64oz</th>\n", | |
" <th>retail/mass_market/kroger/retail/baby_food/gerber/ger_32oz</th>\n", | |
" <th>retail/mass_market/kroger/retail/baby_food/gerber/ger_64oz</th>\n", | |
" <th>retail/mass_market/kroger/retail/chocolate/buterfinger/bf_1pk</th>\n", | |
" <th>retail/mass_market/kroger/retail/chocolate/buterfinger/bf_8pk</th>\n", | |
" <th>retail/mass_market/kroger/retail/chocolate/kitkat/kk_1pk</th>\n", | |
" <th>retail/mass_market/kroger/retail/chocolate/kitkat/kk_8pk</th>\n", | |
" <th>retail/mass_market/walmart/retail/baby_food/cerelac/cer_32oz</th>\n", | |
" <th>retail/mass_market/walmart/retail/baby_food/cerelac/cer_64oz</th>\n", | |
" <th>...</th>\n", | |
" <th>retail/mass_market/walmart/retail/chocolate/kitkat/kk_1pk</th>\n", | |
" <th>retail/mass_market/walmart/retail/chocolate/kitkat/kk_8pk</th>\n", | |
" <th>retail/wholesale/sams/retail/baby_food/cerelac/cer_32oz</th>\n", | |
" <th>retail/wholesale/sams/retail/baby_food/cerelac/cer_64oz</th>\n", | |
" <th>retail/wholesale/sams/retail/baby_food/gerber/ger_32oz</th>\n", | |
" <th>retail/wholesale/sams/retail/baby_food/gerber/ger_64oz</th>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/buterfinger/bf_1pk</th>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/buterfinger/bf_8pk</th>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/kitkat/kk_1pk</th>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/kitkat/kk_8pk</th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th>retail</th>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>...</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market</th>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>...</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger</th>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>...</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail</th>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>...</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/baby_food</th>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/chocolate</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/baby_food</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/chocolate</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/baby_food</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/baby_food/cerelac</th>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/baby_food/gerber</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/chocolate/buterfinger</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/chocolate/kitkat</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/baby_food/cerelac</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/baby_food/gerber</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/chocolate/buterfinger</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/chocolate/kitkat</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/baby_food/cerelac</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/baby_food/gerber</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/buterfinger</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/kitkat</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/baby_food/cerelac/cer_32oz</th>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/baby_food/cerelac/cer_64oz</th>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/baby_food/gerber/ger_32oz</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/baby_food/gerber/ger_64oz</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/chocolate/buterfinger/bf_1pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/chocolate/buterfinger/bf_8pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/chocolate/kitkat/kk_1pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/chocolate/kitkat/kk_8pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/baby_food/cerelac/cer_32oz</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/baby_food/cerelac/cer_64oz</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/baby_food/gerber/ger_32oz</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/baby_food/gerber/ger_64oz</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/chocolate/buterfinger/bf_1pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/chocolate/buterfinger/bf_8pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/chocolate/kitkat/kk_1pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/chocolate/kitkat/kk_8pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/baby_food/cerelac/cer_32oz</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/baby_food/cerelac/cer_64oz</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/baby_food/gerber/ger_32oz</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/baby_food/gerber/ger_64oz</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/buterfinger/bf_1pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/buterfinger/bf_8pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/kitkat/kk_1pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/kitkat/kk_8pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n", | |
"<p>51 rows × 24 columns</p>\n", | |
"</div>\n", | |
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-d64fe87b-19fe-40ac-8389-679cd3e99be7')\"\n", | |
" title=\"Convert this dataframe to an interactive table.\"\n", | |
" style=\"display:none;\">\n", | |
" \n", | |
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n", | |
" width=\"24px\">\n", | |
" <path d=\"M0 0h24v24H0V0z\" fill=\"none\"/>\n", | |
" <path d=\"M18.56 5.44l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94zm-11 1L8.5 8.5l.94-2.06 2.06-.94-2.06-.94L8.5 2.5l-.94 2.06-2.06.94zm10 10l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94z\"/><path d=\"M17.41 7.96l-1.37-1.37c-.4-.4-.92-.59-1.43-.59-.52 0-1.04.2-1.43.59L10.3 9.45l-7.72 7.72c-.78.78-.78 2.05 0 2.83L4 21.41c.39.39.9.59 1.41.59.51 0 1.02-.2 1.41-.59l7.78-7.78 2.81-2.81c.8-.78.8-2.07 0-2.86zM5.41 20L4 18.59l7.72-7.72 1.47 1.35L5.41 20z\"/>\n", | |
" </svg>\n", | |
" </button>\n", | |
" \n", | |
" <style>\n", | |
" .colab-df-container {\n", | |
" display:flex;\n", | |
" flex-wrap:wrap;\n", | |
" gap: 12px;\n", | |
" }\n", | |
"\n", | |
" .colab-df-convert {\n", | |
" background-color: #E8F0FE;\n", | |
" border: none;\n", | |
" border-radius: 50%;\n", | |
" cursor: pointer;\n", | |
" display: none;\n", | |
" fill: #1967D2;\n", | |
" height: 32px;\n", | |
" padding: 0 0 0 0;\n", | |
" width: 32px;\n", | |
" }\n", | |
"\n", | |
" .colab-df-convert:hover {\n", | |
" background-color: #E2EBFA;\n", | |
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n", | |
" fill: #174EA6;\n", | |
" }\n", | |
"\n", | |
" [theme=dark] .colab-df-convert {\n", | |
" background-color: #3B4455;\n", | |
" fill: #D2E3FC;\n", | |
" }\n", | |
"\n", | |
" [theme=dark] .colab-df-convert:hover {\n", | |
" background-color: #434B5C;\n", | |
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n", | |
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n", | |
" fill: #FFFFFF;\n", | |
" }\n", | |
" </style>\n", | |
"\n", | |
" <script>\n", | |
" const buttonEl =\n", | |
" document.querySelector('#df-d64fe87b-19fe-40ac-8389-679cd3e99be7 button.colab-df-convert');\n", | |
" buttonEl.style.display =\n", | |
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n", | |
"\n", | |
" async function convertToInteractive(key) {\n", | |
" const element = document.querySelector('#df-d64fe87b-19fe-40ac-8389-679cd3e99be7');\n", | |
" const dataTable =\n", | |
" await google.colab.kernel.invokeFunction('convertToInteractive',\n", | |
" [key], {});\n", | |
" if (!dataTable) return;\n", | |
"\n", | |
" const docLinkHtml = 'Like what you see? Visit the ' +\n", | |
" '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n", | |
" + ' to learn more about interactive tables.';\n", | |
" element.innerHTML = '';\n", | |
" dataTable['output_type'] = 'display_data';\n", | |
" await google.colab.output.renderOutput(dataTable, element);\n", | |
" const docLink = document.createElement('div');\n", | |
" docLink.innerHTML = docLinkHtml;\n", | |
" element.appendChild(docLink);\n", | |
" }\n", | |
" </script>\n", | |
" </div>\n", | |
" </div>\n", | |
" " | |
] | |
}, | |
"metadata": {}, | |
"execution_count": 8 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"hplot = HierarchicalPlot(S=S_df, tags=tags)\n", | |
"hplot.plot_summing_matrix()" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 417 | |
}, | |
"id": "Cs8kkwryaDtc", | |
"outputId": "645fdd0d-8328-4d91-d7d5-e50825900cea" | |
}, | |
"execution_count": 9, | |
"outputs": [ | |
{ | |
"output_type": "display_data", | |
"data": { | |
"text/plain": [ | |
"<Figure size 320x480 with 1 Axes>" | |
], | |
"image/png": "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\n" | |
}, | |
"metadata": {} | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"# Split train/test sets\n", | |
"Y_test_df = Y_hier_df.groupby('unique_id').tail(FH)\n", | |
"Y_train_df = Y_hier_df.drop(Y_test_df.index)\n", | |
"\n", | |
"Y_test_df = Y_test_df.set_index('unique_id')\n", | |
"Y_train_df = Y_train_df.set_index('unique_id')\n", | |
"\n", | |
"Y_train_df.info(), Y_test_df.info()" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "3MVo7IptParm", | |
"outputId": "4e17e8dc-2269-437c-8033-b4854ca0ed32" | |
}, | |
"execution_count": 10, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"<class 'pandas.core.frame.DataFrame'>\n", | |
"Index: 510 entries, retail to retail/wholesale/sams/retail/chocolate/kitkat/kk_8pk\n", | |
"Data columns (total 2 columns):\n", | |
" # Column Non-Null Count Dtype \n", | |
"--- ------ -------------- ----- \n", | |
" 0 ds 510 non-null datetime64[ns]\n", | |
" 1 y 510 non-null int64 \n", | |
"dtypes: datetime64[ns](1), int64(1)\n", | |
"memory usage: 12.0+ KB\n", | |
"<class 'pandas.core.frame.DataFrame'>\n", | |
"Index: 102 entries, retail to retail/wholesale/sams/retail/chocolate/kitkat/kk_8pk\n", | |
"Data columns (total 2 columns):\n", | |
" # Column Non-Null Count Dtype \n", | |
"--- ------ -------------- ----- \n", | |
" 0 ds 102 non-null datetime64[ns]\n", | |
" 1 y 102 non-null int64 \n", | |
"dtypes: datetime64[ns](1), int64(1)\n", | |
"memory usage: 2.4+ KB\n" | |
] | |
}, | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"(None, None)" | |
] | |
}, | |
"metadata": {}, | |
"execution_count": 10 | |
} | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": [ | |
"## Evaluation Criteria" | |
], | |
"metadata": { | |
"id": "aiZoYEADbdgY" | |
} | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"metric = \"mse\"\n", | |
"stat_level = \"all_acc/ch/acc/all_prods/cat/brand/sku\"" | |
], | |
"metadata": { | |
"id": "B0rHIijBbglp" | |
}, | |
"execution_count": 11, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": [ | |
"## Get Forecasts\n", | |
"\n", | |
"- If you have insample foreasts, you can apply more reconciliation methods\n", | |
"- Without in-sample forecasts, you can still apply reconciliation, but the available methods are limited in that case." | |
], | |
"metadata": { | |
"id": "6F224xs3b15B" | |
} | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"seed = 42\n", | |
"random.seed(seed)\n", | |
"np.random.seed(seed)\n", | |
"\n", | |
"def add_best_fit(y, name=\"best_fit\"):\n", | |
" best_model = np.random.choice([\"model1\", \"model2\"])\n", | |
" y[name] = y[best_model].copy()\n", | |
" return y\n", | |
"\n", | |
"# Creating random forecasts (non-reconciled)\n", | |
"Ys = pd.DataFrame(Y_hier_df[[\"unique_id\", \"ds\", \"y\"]].copy())\n", | |
"Ys[\"model1\"] = [random.randint(0, 100) for _ in np.arange(len(Y_hier_df))]\n", | |
"Ys[\"model2\"] = [random.randint(0, 100) for _ in np.arange(len(Y_hier_df))]\n", | |
"Ys = Ys.groupby(\"unique_id\").apply(add_best_fit, name=\"benchmark\")\n", | |
"\n", | |
"\n", | |
"Y_hat_df = Ys.groupby('unique_id').tail(FH) # Out of Sample Predictions\n", | |
"Y_hat_df = Y_hat_df.drop(columns=\"y\")\n", | |
"Y_fitted_df = Ys.drop(Y_hat_df.index) # Insample Predictions\n", | |
"\n", | |
"Y_hat_df = Y_hat_df.set_index('unique_id')\n", | |
"Y_fitted_df = Y_fitted_df.set_index('unique_id')\n", | |
"\n", | |
"print(Y_hat_df.info(), Y_fitted_df.info())\n", | |
"\n", | |
"Y_hat_df" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 872 | |
}, | |
"id": "D5zj8jufQGbw", | |
"outputId": "16de1eb7-bcd8-4cf8-dd59-5b5108e93c52" | |
}, | |
"execution_count": 12, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"<class 'pandas.core.frame.DataFrame'>\n", | |
"Index: 102 entries, retail to retail/wholesale/sams/retail/chocolate/kitkat/kk_8pk\n", | |
"Data columns (total 4 columns):\n", | |
" # Column Non-Null Count Dtype \n", | |
"--- ------ -------------- ----- \n", | |
" 0 ds 102 non-null datetime64[ns]\n", | |
" 1 model1 102 non-null int64 \n", | |
" 2 model2 102 non-null int64 \n", | |
" 3 benchmark 102 non-null int64 \n", | |
"dtypes: datetime64[ns](1), int64(3)\n", | |
"memory usage: 4.0+ KB\n", | |
"<class 'pandas.core.frame.DataFrame'>\n", | |
"Index: 510 entries, retail to retail/wholesale/sams/retail/chocolate/kitkat/kk_8pk\n", | |
"Data columns (total 5 columns):\n", | |
" # Column Non-Null Count Dtype \n", | |
"--- ------ -------------- ----- \n", | |
" 0 ds 510 non-null datetime64[ns]\n", | |
" 1 y 510 non-null int64 \n", | |
" 2 model1 510 non-null int64 \n", | |
" 3 model2 510 non-null int64 \n", | |
" 4 benchmark 510 non-null int64 \n", | |
"dtypes: datetime64[ns](1), int64(4)\n", | |
"memory usage: 23.9+ KB\n", | |
"None None\n" | |
] | |
}, | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
" ds model1 model2 \\\n", | |
"unique_id \n", | |
"retail 2022-11-01 86 55 \n", | |
"retail 2022-12-01 94 100 \n", | |
"retail/mass_market 2022-11-01 77 60 \n", | |
"retail/mass_market 2022-12-01 3 94 \n", | |
"retail/wholesale 2022-11-01 35 96 \n", | |
"... ... ... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 2022-12-01 8 65 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 2022-11-01 85 96 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 2022-12-01 52 63 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 2022-11-01 86 89 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 2022-12-01 95 62 \n", | |
"\n", | |
" benchmark \n", | |
"unique_id \n", | |
"retail 86 \n", | |
"retail 94 \n", | |
"retail/mass_market 60 \n", | |
"retail/mass_market 94 \n", | |
"retail/wholesale 96 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 8 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 96 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 63 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 86 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 95 \n", | |
"\n", | |
"[102 rows x 4 columns]" | |
], | |
"text/html": [ | |
"\n", | |
" <div id=\"df-21c1499d-d13a-45b6-97a3-f8d98798f341\">\n", | |
" <div class=\"colab-df-container\">\n", | |
" <div>\n", | |
"<style scoped>\n", | |
" .dataframe tbody tr th:only-of-type {\n", | |
" vertical-align: middle;\n", | |
" }\n", | |
"\n", | |
" .dataframe tbody tr th {\n", | |
" vertical-align: top;\n", | |
" }\n", | |
"\n", | |
" .dataframe thead th {\n", | |
" text-align: right;\n", | |
" }\n", | |
"</style>\n", | |
"<table border=\"1\" class=\"dataframe\">\n", | |
" <thead>\n", | |
" <tr style=\"text-align: right;\">\n", | |
" <th></th>\n", | |
" <th>ds</th>\n", | |
" <th>model1</th>\n", | |
" <th>model2</th>\n", | |
" <th>benchmark</th>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>unique_id</th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th>retail</th>\n", | |
" <td>2022-11-01</td>\n", | |
" <td>86</td>\n", | |
" <td>55</td>\n", | |
" <td>86</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail</th>\n", | |
" <td>2022-12-01</td>\n", | |
" <td>94</td>\n", | |
" <td>100</td>\n", | |
" <td>94</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market</th>\n", | |
" <td>2022-11-01</td>\n", | |
" <td>77</td>\n", | |
" <td>60</td>\n", | |
" <td>60</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market</th>\n", | |
" <td>2022-12-01</td>\n", | |
" <td>3</td>\n", | |
" <td>94</td>\n", | |
" <td>94</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale</th>\n", | |
" <td>2022-11-01</td>\n", | |
" <td>35</td>\n", | |
" <td>96</td>\n", | |
" <td>96</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>...</th>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/buterfinger/bf_8pk</th>\n", | |
" <td>2022-12-01</td>\n", | |
" <td>8</td>\n", | |
" <td>65</td>\n", | |
" <td>8</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/kitkat/kk_1pk</th>\n", | |
" <td>2022-11-01</td>\n", | |
" <td>85</td>\n", | |
" <td>96</td>\n", | |
" <td>96</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/kitkat/kk_1pk</th>\n", | |
" <td>2022-12-01</td>\n", | |
" <td>52</td>\n", | |
" <td>63</td>\n", | |
" <td>63</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/kitkat/kk_8pk</th>\n", | |
" <td>2022-11-01</td>\n", | |
" <td>86</td>\n", | |
" <td>89</td>\n", | |
" <td>86</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/kitkat/kk_8pk</th>\n", | |
" <td>2022-12-01</td>\n", | |
" <td>95</td>\n", | |
" <td>62</td>\n", | |
" <td>95</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n", | |
"<p>102 rows × 4 columns</p>\n", | |
"</div>\n", | |
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-21c1499d-d13a-45b6-97a3-f8d98798f341')\"\n", | |
" title=\"Convert this dataframe to an interactive table.\"\n", | |
" style=\"display:none;\">\n", | |
" \n", | |
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n", | |
" width=\"24px\">\n", | |
" <path d=\"M0 0h24v24H0V0z\" fill=\"none\"/>\n", | |
" <path d=\"M18.56 5.44l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94zm-11 1L8.5 8.5l.94-2.06 2.06-.94-2.06-.94L8.5 2.5l-.94 2.06-2.06.94zm10 10l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94z\"/><path d=\"M17.41 7.96l-1.37-1.37c-.4-.4-.92-.59-1.43-.59-.52 0-1.04.2-1.43.59L10.3 9.45l-7.72 7.72c-.78.78-.78 2.05 0 2.83L4 21.41c.39.39.9.59 1.41.59.51 0 1.02-.2 1.41-.59l7.78-7.78 2.81-2.81c.8-.78.8-2.07 0-2.86zM5.41 20L4 18.59l7.72-7.72 1.47 1.35L5.41 20z\"/>\n", | |
" </svg>\n", | |
" </button>\n", | |
" \n", | |
" <style>\n", | |
" .colab-df-container {\n", | |
" display:flex;\n", | |
" flex-wrap:wrap;\n", | |
" gap: 12px;\n", | |
" }\n", | |
"\n", | |
" .colab-df-convert {\n", | |
" background-color: #E8F0FE;\n", | |
" border: none;\n", | |
" border-radius: 50%;\n", | |
" cursor: pointer;\n", | |
" display: none;\n", | |
" fill: #1967D2;\n", | |
" height: 32px;\n", | |
" padding: 0 0 0 0;\n", | |
" width: 32px;\n", | |
" }\n", | |
"\n", | |
" .colab-df-convert:hover {\n", | |
" background-color: #E2EBFA;\n", | |
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n", | |
" fill: #174EA6;\n", | |
" }\n", | |
"\n", | |
" [theme=dark] .colab-df-convert {\n", | |
" background-color: #3B4455;\n", | |
" fill: #D2E3FC;\n", | |
" }\n", | |
"\n", | |
" [theme=dark] .colab-df-convert:hover {\n", | |
" background-color: #434B5C;\n", | |
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n", | |
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n", | |
" fill: #FFFFFF;\n", | |
" }\n", | |
" </style>\n", | |
"\n", | |
" <script>\n", | |
" const buttonEl =\n", | |
" document.querySelector('#df-21c1499d-d13a-45b6-97a3-f8d98798f341 button.colab-df-convert');\n", | |
" buttonEl.style.display =\n", | |
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n", | |
"\n", | |
" async function convertToInteractive(key) {\n", | |
" const element = document.querySelector('#df-21c1499d-d13a-45b6-97a3-f8d98798f341');\n", | |
" const dataTable =\n", | |
" await google.colab.kernel.invokeFunction('convertToInteractive',\n", | |
" [key], {});\n", | |
" if (!dataTable) return;\n", | |
"\n", | |
" const docLinkHtml = 'Like what you see? Visit the ' +\n", | |
" '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n", | |
" + ' to learn more about interactive tables.';\n", | |
" element.innerHTML = '';\n", | |
" dataTable['output_type'] = 'display_data';\n", | |
" await google.colab.output.renderOutput(dataTable, element);\n", | |
" const docLink = document.createElement('div');\n", | |
" docLink.innerHTML = docLinkHtml;\n", | |
" element.appendChild(docLink);\n", | |
" }\n", | |
" </script>\n", | |
" </div>\n", | |
" </div>\n", | |
" " | |
] | |
}, | |
"metadata": {}, | |
"execution_count": 12 | |
} | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": [ | |
"## Reconcile Forecasts" | |
], | |
"metadata": { | |
"id": "tQ1N6ROlcJi3" | |
} | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"# You can select a reconciler from our collection\n", | |
"reconcilers = [\n", | |
" BottomUp(),\n", | |
" TopDown(method='forecast_proportions'),\n", | |
" # TopDown(method='average_proportions'),\n", | |
" # TopDown(method='proportion_averages'),\n", | |
" MinTrace(method='ols'),\n", | |
" # MinTrace(method='wls_var'),\n", | |
" # MinTrace(method='mint_shrink'),\n", | |
" # #ERM(method='reg_bu', lambda_reg=100) # Extremely inneficient\n", | |
" ERM(method='closed')\n", | |
"]\n", | |
"hrec = HierarchicalReconciliation(reconcilers=reconcilers)\n", | |
"\n" | |
], | |
"metadata": { | |
"id": "FJLTFWnlPpHn" | |
}, | |
"execution_count": 13, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [], | |
"metadata": { | |
"id": "TTIXgqNl4fCg" | |
}, | |
"execution_count": 13, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": [ | |
"### Full Hierarchy" | |
], | |
"metadata": { | |
"id": "OeUPC_1x4hZM" | |
} | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"Y_rec_df = hrec.reconcile(Y_hat_df=Y_hat_df, \n", | |
" Y_df=Y_fitted_df,\n", | |
" S=S_df, tags=tags)\n", | |
"Y_rec_df.groupby('unique_id').head(FH)" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 727 | |
}, | |
"id": "9BV6bbRD4efg", | |
"outputId": "b08e2e40-199c-40e9-8119-9adbd1816717" | |
}, | |
"execution_count": 14, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
" ds model1 model2 \\\n", | |
"unique_id \n", | |
"retail 2022-11-01 86 55 \n", | |
"retail 2022-12-01 94 100 \n", | |
"retail/mass_market 2022-11-01 77 60 \n", | |
"retail/mass_market 2022-12-01 3 94 \n", | |
"retail/wholesale 2022-11-01 35 96 \n", | |
"... ... ... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 2022-12-01 8 65 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 2022-11-01 85 96 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 2022-12-01 52 63 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 2022-11-01 86 89 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 2022-12-01 95 62 \n", | |
"\n", | |
" benchmark \\\n", | |
"unique_id \n", | |
"retail 86 \n", | |
"retail 94 \n", | |
"retail/mass_market 60 \n", | |
"retail/mass_market 94 \n", | |
"retail/wholesale 96 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 8 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 96 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 63 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 86 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 95 \n", | |
"\n", | |
" model1/BottomUp \\\n", | |
"unique_id \n", | |
"retail 1356.0 \n", | |
"retail 1183.0 \n", | |
"retail/mass_market 850.0 \n", | |
"retail/mass_market 768.0 \n", | |
"retail/wholesale 506.0 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 8.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 85.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 52.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 86.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 95.0 \n", | |
"\n", | |
" model2/BottomUp \\\n", | |
"unique_id \n", | |
"retail 1322.0 \n", | |
"retail 1349.0 \n", | |
"retail/mass_market 756.0 \n", | |
"retail/mass_market 907.0 \n", | |
"retail/wholesale 566.0 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 65.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 96.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 63.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 89.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 62.0 \n", | |
"\n", | |
" benchmark/BottomUp \\\n", | |
"unique_id \n", | |
"retail 1318.0 \n", | |
"retail 1200.0 \n", | |
"retail/mass_market 838.0 \n", | |
"retail/mass_market 763.0 \n", | |
"retail/wholesale 480.0 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 8.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 96.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 63.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 86.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 95.0 \n", | |
"\n", | |
" model1/TopDown_method-forecast_proportions \\\n", | |
"unique_id \n", | |
"retail 86 \n", | |
"retail 94 \n", | |
"retail/mass_market 59 \n", | |
"retail/mass_market 94 \n", | |
"retail/wholesale 26 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0 \n", | |
"\n", | |
" model2/TopDown_method-forecast_proportions \\\n", | |
"unique_id \n", | |
"retail 55 \n", | |
"retail 100 \n", | |
"retail/mass_market 21 \n", | |
"retail/mass_market 75 \n", | |
"retail/wholesale 33 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 3 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 2 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 1 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 2 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 1 \n", | |
"\n", | |
" benchmark/TopDown_method-forecast_proportions \\\n", | |
"unique_id \n", | |
"retail 86 \n", | |
"retail 94 \n", | |
"retail/mass_market 33 \n", | |
"retail/mass_market 71 \n", | |
"retail/wholesale 52 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 1 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 3 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 1 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 3 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 3 \n", | |
"\n", | |
" model1/MinTrace_method-ols \\\n", | |
"unique_id \n", | |
"retail 134.280615 \n", | |
"retail 129.103123 \n", | |
"retail/mass_market 93.320773 \n", | |
"retail/mass_market 63.291026 \n", | |
"retail/wholesale 40.959841 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... -19.077059 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... -3.832401 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... -7.077059 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... -2.832401 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 35.922941 \n", | |
"\n", | |
" model2/MinTrace_method-ols \\\n", | |
"unique_id \n", | |
"retail 190.451165 \n", | |
"retail 168.158156 \n", | |
"retail/mass_market 101.148240 \n", | |
"retail/mass_market 103.037680 \n", | |
"retail/wholesale 89.302925 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 24.116250 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 12.424770 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 2.449583 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 5.424770 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 1.449583 \n", | |
"\n", | |
" benchmark/MinTrace_method-ols \\\n", | |
"unique_id \n", | |
"retail 166.899355 \n", | |
"retail 149.669807 \n", | |
"retail/mass_market 95.066931 \n", | |
"retail/mass_market 86.520079 \n", | |
"retail/wholesale 71.832424 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... -7.540808 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 16.657624 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... -2.207475 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 6.657624 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 29.792525 \n", | |
"\n", | |
" model1/ERM_method-closed_lambda_reg-0.01 \\\n", | |
"unique_id \n", | |
"retail 934.696516 \n", | |
"retail 952.136062 \n", | |
"retail/mass_market 591.891370 \n", | |
"retail/mass_market 594.794220 \n", | |
"retail/wholesale 342.805148 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 17.573471 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 28.647843 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 45.767197 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 44.458937 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 56.372737 \n", | |
"\n", | |
" model2/ERM_method-closed_lambda_reg-0.01 \\\n", | |
"unique_id \n", | |
"retail 1426.709378 \n", | |
"retail 1232.368081 \n", | |
"retail/mass_market 892.371913 \n", | |
"retail/mass_market 776.816814 \n", | |
"retail/wholesale 534.337480 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 18.189518 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 66.308788 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 45.051403 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 82.953377 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 63.483301 \n", | |
"\n", | |
" benchmark/ERM_method-closed_lambda_reg-0.01 \n", | |
"unique_id \n", | |
"retail 1259.781237 \n", | |
"retail 1059.395600 \n", | |
"retail/mass_market 793.030093 \n", | |
"retail/mass_market 660.212337 \n", | |
"retail/wholesale 466.751136 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 20.591135 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 48.226199 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 54.154791 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 66.347510 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 64.883180 \n", | |
"\n", | |
"[102 rows x 16 columns]" | |
], | |
"text/html": [ | |
"\n", | |
" <div id=\"df-9f2c2988-50e5-4e3d-bf63-e26e18847074\">\n", | |
" <div class=\"colab-df-container\">\n", | |
" <div>\n", | |
"<style scoped>\n", | |
" .dataframe tbody tr th:only-of-type {\n", | |
" vertical-align: middle;\n", | |
" }\n", | |
"\n", | |
" .dataframe tbody tr th {\n", | |
" vertical-align: top;\n", | |
" }\n", | |
"\n", | |
" .dataframe thead th {\n", | |
" text-align: right;\n", | |
" }\n", | |
"</style>\n", | |
"<table border=\"1\" class=\"dataframe\">\n", | |
" <thead>\n", | |
" <tr style=\"text-align: right;\">\n", | |
" <th></th>\n", | |
" <th>ds</th>\n", | |
" <th>model1</th>\n", | |
" <th>model2</th>\n", | |
" <th>benchmark</th>\n", | |
" <th>model1/BottomUp</th>\n", | |
" <th>model2/BottomUp</th>\n", | |
" <th>benchmark/BottomUp</th>\n", | |
" <th>model1/TopDown_method-forecast_proportions</th>\n", | |
" <th>model2/TopDown_method-forecast_proportions</th>\n", | |
" <th>benchmark/TopDown_method-forecast_proportions</th>\n", | |
" <th>model1/MinTrace_method-ols</th>\n", | |
" <th>model2/MinTrace_method-ols</th>\n", | |
" <th>benchmark/MinTrace_method-ols</th>\n", | |
" <th>model1/ERM_method-closed_lambda_reg-0.01</th>\n", | |
" <th>model2/ERM_method-closed_lambda_reg-0.01</th>\n", | |
" <th>benchmark/ERM_method-closed_lambda_reg-0.01</th>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>unique_id</th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th>retail</th>\n", | |
" <td>2022-11-01</td>\n", | |
" <td>86</td>\n", | |
" <td>55</td>\n", | |
" <td>86</td>\n", | |
" <td>1356.0</td>\n", | |
" <td>1322.0</td>\n", | |
" <td>1318.0</td>\n", | |
" <td>86</td>\n", | |
" <td>55</td>\n", | |
" <td>86</td>\n", | |
" <td>134.280615</td>\n", | |
" <td>190.451165</td>\n", | |
" <td>166.899355</td>\n", | |
" <td>934.696516</td>\n", | |
" <td>1426.709378</td>\n", | |
" <td>1259.781237</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail</th>\n", | |
" <td>2022-12-01</td>\n", | |
" <td>94</td>\n", | |
" <td>100</td>\n", | |
" <td>94</td>\n", | |
" <td>1183.0</td>\n", | |
" <td>1349.0</td>\n", | |
" <td>1200.0</td>\n", | |
" <td>94</td>\n", | |
" <td>100</td>\n", | |
" <td>94</td>\n", | |
" <td>129.103123</td>\n", | |
" <td>168.158156</td>\n", | |
" <td>149.669807</td>\n", | |
" <td>952.136062</td>\n", | |
" <td>1232.368081</td>\n", | |
" <td>1059.395600</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market</th>\n", | |
" <td>2022-11-01</td>\n", | |
" <td>77</td>\n", | |
" <td>60</td>\n", | |
" <td>60</td>\n", | |
" <td>850.0</td>\n", | |
" <td>756.0</td>\n", | |
" <td>838.0</td>\n", | |
" <td>59</td>\n", | |
" <td>21</td>\n", | |
" <td>33</td>\n", | |
" <td>93.320773</td>\n", | |
" <td>101.148240</td>\n", | |
" <td>95.066931</td>\n", | |
" <td>591.891370</td>\n", | |
" <td>892.371913</td>\n", | |
" <td>793.030093</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market</th>\n", | |
" <td>2022-12-01</td>\n", | |
" <td>3</td>\n", | |
" <td>94</td>\n", | |
" <td>94</td>\n", | |
" <td>768.0</td>\n", | |
" <td>907.0</td>\n", | |
" <td>763.0</td>\n", | |
" <td>94</td>\n", | |
" <td>75</td>\n", | |
" <td>71</td>\n", | |
" <td>63.291026</td>\n", | |
" <td>103.037680</td>\n", | |
" <td>86.520079</td>\n", | |
" <td>594.794220</td>\n", | |
" <td>776.816814</td>\n", | |
" <td>660.212337</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale</th>\n", | |
" <td>2022-11-01</td>\n", | |
" <td>35</td>\n", | |
" <td>96</td>\n", | |
" <td>96</td>\n", | |
" <td>506.0</td>\n", | |
" <td>566.0</td>\n", | |
" <td>480.0</td>\n", | |
" <td>26</td>\n", | |
" <td>33</td>\n", | |
" <td>52</td>\n", | |
" <td>40.959841</td>\n", | |
" <td>89.302925</td>\n", | |
" <td>71.832424</td>\n", | |
" <td>342.805148</td>\n", | |
" <td>534.337480</td>\n", | |
" <td>466.751136</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>...</th>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/buterfinger/bf_8pk</th>\n", | |
" <td>2022-12-01</td>\n", | |
" <td>8</td>\n", | |
" <td>65</td>\n", | |
" <td>8</td>\n", | |
" <td>8.0</td>\n", | |
" <td>65.0</td>\n", | |
" <td>8.0</td>\n", | |
" <td>0</td>\n", | |
" <td>3</td>\n", | |
" <td>1</td>\n", | |
" <td>-19.077059</td>\n", | |
" <td>24.116250</td>\n", | |
" <td>-7.540808</td>\n", | |
" <td>17.573471</td>\n", | |
" <td>18.189518</td>\n", | |
" <td>20.591135</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/kitkat/kk_1pk</th>\n", | |
" <td>2022-11-01</td>\n", | |
" <td>85</td>\n", | |
" <td>96</td>\n", | |
" <td>96</td>\n", | |
" <td>85.0</td>\n", | |
" <td>96.0</td>\n", | |
" <td>96.0</td>\n", | |
" <td>0</td>\n", | |
" <td>2</td>\n", | |
" <td>3</td>\n", | |
" <td>-3.832401</td>\n", | |
" <td>12.424770</td>\n", | |
" <td>16.657624</td>\n", | |
" <td>28.647843</td>\n", | |
" <td>66.308788</td>\n", | |
" <td>48.226199</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/kitkat/kk_1pk</th>\n", | |
" <td>2022-12-01</td>\n", | |
" <td>52</td>\n", | |
" <td>63</td>\n", | |
" <td>63</td>\n", | |
" <td>52.0</td>\n", | |
" <td>63.0</td>\n", | |
" <td>63.0</td>\n", | |
" <td>0</td>\n", | |
" <td>1</td>\n", | |
" <td>1</td>\n", | |
" <td>-7.077059</td>\n", | |
" <td>2.449583</td>\n", | |
" <td>-2.207475</td>\n", | |
" <td>45.767197</td>\n", | |
" <td>45.051403</td>\n", | |
" <td>54.154791</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/kitkat/kk_8pk</th>\n", | |
" <td>2022-11-01</td>\n", | |
" <td>86</td>\n", | |
" <td>89</td>\n", | |
" <td>86</td>\n", | |
" <td>86.0</td>\n", | |
" <td>89.0</td>\n", | |
" <td>86.0</td>\n", | |
" <td>0</td>\n", | |
" <td>2</td>\n", | |
" <td>3</td>\n", | |
" <td>-2.832401</td>\n", | |
" <td>5.424770</td>\n", | |
" <td>6.657624</td>\n", | |
" <td>44.458937</td>\n", | |
" <td>82.953377</td>\n", | |
" <td>66.347510</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/kitkat/kk_8pk</th>\n", | |
" <td>2022-12-01</td>\n", | |
" <td>95</td>\n", | |
" <td>62</td>\n", | |
" <td>95</td>\n", | |
" <td>95.0</td>\n", | |
" <td>62.0</td>\n", | |
" <td>95.0</td>\n", | |
" <td>0</td>\n", | |
" <td>1</td>\n", | |
" <td>3</td>\n", | |
" <td>35.922941</td>\n", | |
" <td>1.449583</td>\n", | |
" <td>29.792525</td>\n", | |
" <td>56.372737</td>\n", | |
" <td>63.483301</td>\n", | |
" <td>64.883180</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n", | |
"<p>102 rows × 16 columns</p>\n", | |
"</div>\n", | |
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-9f2c2988-50e5-4e3d-bf63-e26e18847074')\"\n", | |
" title=\"Convert this dataframe to an interactive table.\"\n", | |
" style=\"display:none;\">\n", | |
" \n", | |
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n", | |
" width=\"24px\">\n", | |
" <path d=\"M0 0h24v24H0V0z\" fill=\"none\"/>\n", | |
" <path d=\"M18.56 5.44l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94zm-11 1L8.5 8.5l.94-2.06 2.06-.94-2.06-.94L8.5 2.5l-.94 2.06-2.06.94zm10 10l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94z\"/><path d=\"M17.41 7.96l-1.37-1.37c-.4-.4-.92-.59-1.43-.59-.52 0-1.04.2-1.43.59L10.3 9.45l-7.72 7.72c-.78.78-.78 2.05 0 2.83L4 21.41c.39.39.9.59 1.41.59.51 0 1.02-.2 1.41-.59l7.78-7.78 2.81-2.81c.8-.78.8-2.07 0-2.86zM5.41 20L4 18.59l7.72-7.72 1.47 1.35L5.41 20z\"/>\n", | |
" </svg>\n", | |
" </button>\n", | |
" \n", | |
" <style>\n", | |
" .colab-df-container {\n", | |
" display:flex;\n", | |
" flex-wrap:wrap;\n", | |
" gap: 12px;\n", | |
" }\n", | |
"\n", | |
" .colab-df-convert {\n", | |
" background-color: #E8F0FE;\n", | |
" border: none;\n", | |
" border-radius: 50%;\n", | |
" cursor: pointer;\n", | |
" display: none;\n", | |
" fill: #1967D2;\n", | |
" height: 32px;\n", | |
" padding: 0 0 0 0;\n", | |
" width: 32px;\n", | |
" }\n", | |
"\n", | |
" .colab-df-convert:hover {\n", | |
" background-color: #E2EBFA;\n", | |
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n", | |
" fill: #174EA6;\n", | |
" }\n", | |
"\n", | |
" [theme=dark] .colab-df-convert {\n", | |
" background-color: #3B4455;\n", | |
" fill: #D2E3FC;\n", | |
" }\n", | |
"\n", | |
" [theme=dark] .colab-df-convert:hover {\n", | |
" background-color: #434B5C;\n", | |
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n", | |
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n", | |
" fill: #FFFFFF;\n", | |
" }\n", | |
" </style>\n", | |
"\n", | |
" <script>\n", | |
" const buttonEl =\n", | |
" document.querySelector('#df-9f2c2988-50e5-4e3d-bf63-e26e18847074 button.colab-df-convert');\n", | |
" buttonEl.style.display =\n", | |
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n", | |
"\n", | |
" async function convertToInteractive(key) {\n", | |
" const element = document.querySelector('#df-9f2c2988-50e5-4e3d-bf63-e26e18847074');\n", | |
" const dataTable =\n", | |
" await google.colab.kernel.invokeFunction('convertToInteractive',\n", | |
" [key], {});\n", | |
" if (!dataTable) return;\n", | |
"\n", | |
" const docLinkHtml = 'Like what you see? Visit the ' +\n", | |
" '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n", | |
" + ' to learn more about interactive tables.';\n", | |
" element.innerHTML = '';\n", | |
" dataTable['output_type'] = 'display_data';\n", | |
" await google.colab.output.renderOutput(dataTable, element);\n", | |
" const docLink = document.createElement('div');\n", | |
" docLink.innerHTML = docLinkHtml;\n", | |
" element.appendChild(docLink);\n", | |
" }\n", | |
" </script>\n", | |
" </div>\n", | |
" </div>\n", | |
" " | |
] | |
}, | |
"metadata": {}, | |
"execution_count": 14 | |
} | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": [ | |
"#### Evaluate Reconciled Results" | |
], | |
"metadata": { | |
"id": "Wdy4pp6zcOrm" | |
} | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"def mse(y, y_hat):\n", | |
" return np.round(np.mean((y-y_hat)**2),2)\n", | |
"\n", | |
"# def accuracy(y, y_hat):\n", | |
"# return 1-np.sum(np.abs(y-y_hat))/np.sum(y)\n", | |
"\n", | |
"evaluator = HierarchicalEvaluation(evaluators=[mse])" | |
], | |
"metadata": { | |
"id": "ZGip95qfQzJQ" | |
}, | |
"execution_count": 15, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"evaluation = evaluator.evaluate(\n", | |
" Y_hat_df=Y_rec_df, Y_test_df=Y_test_df, \n", | |
" tags=tags\n", | |
")\n", | |
"evaluation = evaluation.T" | |
], | |
"metadata": { | |
"id": "XlTq-e1hXxCD" | |
}, | |
"execution_count": 16, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": [ | |
"##### Without reconciliation (reference)" | |
], | |
"metadata": { | |
"id": "c3llVxN_fHPw" | |
} | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"benchmark_metric = evaluation.loc[\"benchmark\"][stat_level][\"mse\"]\n", | |
"evaluation.loc[[\"model1\", \"model2\", \"benchmark\"]][stat_level]" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 143 | |
}, | |
"id": "FCWrI0LTX1H7", | |
"outputId": "03047edb-0fdf-4c9d-c02c-0097b8616f4d" | |
}, | |
"execution_count": 17, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"metric mse\n", | |
"model1 2311.23\n", | |
"model2 1620.19\n", | |
"benchmark 1565.79" | |
], | |
"text/html": [ | |
"\n", | |
" <div id=\"df-fba85bcf-969a-4200-96c8-b0082ebdc4a8\">\n", | |
" <div class=\"colab-df-container\">\n", | |
" <div>\n", | |
"<style scoped>\n", | |
" .dataframe tbody tr th:only-of-type {\n", | |
" vertical-align: middle;\n", | |
" }\n", | |
"\n", | |
" .dataframe tbody tr th {\n", | |
" vertical-align: top;\n", | |
" }\n", | |
"\n", | |
" .dataframe thead th {\n", | |
" text-align: right;\n", | |
" }\n", | |
"</style>\n", | |
"<table border=\"1\" class=\"dataframe\">\n", | |
" <thead>\n", | |
" <tr style=\"text-align: right;\">\n", | |
" <th>metric</th>\n", | |
" <th>mse</th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th>model1</th>\n", | |
" <td>2311.23</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>model2</th>\n", | |
" <td>1620.19</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>benchmark</th>\n", | |
" <td>1565.79</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n", | |
"</div>\n", | |
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-fba85bcf-969a-4200-96c8-b0082ebdc4a8')\"\n", | |
" title=\"Convert this dataframe to an interactive table.\"\n", | |
" style=\"display:none;\">\n", | |
" \n", | |
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n", | |
" width=\"24px\">\n", | |
" <path d=\"M0 0h24v24H0V0z\" fill=\"none\"/>\n", | |
" <path d=\"M18.56 5.44l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94zm-11 1L8.5 8.5l.94-2.06 2.06-.94-2.06-.94L8.5 2.5l-.94 2.06-2.06.94zm10 10l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94z\"/><path d=\"M17.41 7.96l-1.37-1.37c-.4-.4-.92-.59-1.43-.59-.52 0-1.04.2-1.43.59L10.3 9.45l-7.72 7.72c-.78.78-.78 2.05 0 2.83L4 21.41c.39.39.9.59 1.41.59.51 0 1.02-.2 1.41-.59l7.78-7.78 2.81-2.81c.8-.78.8-2.07 0-2.86zM5.41 20L4 18.59l7.72-7.72 1.47 1.35L5.41 20z\"/>\n", | |
" </svg>\n", | |
" </button>\n", | |
" \n", | |
" <style>\n", | |
" .colab-df-container {\n", | |
" display:flex;\n", | |
" flex-wrap:wrap;\n", | |
" gap: 12px;\n", | |
" }\n", | |
"\n", | |
" .colab-df-convert {\n", | |
" background-color: #E8F0FE;\n", | |
" border: none;\n", | |
" border-radius: 50%;\n", | |
" cursor: pointer;\n", | |
" display: none;\n", | |
" fill: #1967D2;\n", | |
" height: 32px;\n", | |
" padding: 0 0 0 0;\n", | |
" width: 32px;\n", | |
" }\n", | |
"\n", | |
" .colab-df-convert:hover {\n", | |
" background-color: #E2EBFA;\n", | |
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n", | |
" fill: #174EA6;\n", | |
" }\n", | |
"\n", | |
" [theme=dark] .colab-df-convert {\n", | |
" background-color: #3B4455;\n", | |
" fill: #D2E3FC;\n", | |
" }\n", | |
"\n", | |
" [theme=dark] .colab-df-convert:hover {\n", | |
" background-color: #434B5C;\n", | |
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n", | |
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n", | |
" fill: #FFFFFF;\n", | |
" }\n", | |
" </style>\n", | |
"\n", | |
" <script>\n", | |
" const buttonEl =\n", | |
" document.querySelector('#df-fba85bcf-969a-4200-96c8-b0082ebdc4a8 button.colab-df-convert');\n", | |
" buttonEl.style.display =\n", | |
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n", | |
"\n", | |
" async function convertToInteractive(key) {\n", | |
" const element = document.querySelector('#df-fba85bcf-969a-4200-96c8-b0082ebdc4a8');\n", | |
" const dataTable =\n", | |
" await google.colab.kernel.invokeFunction('convertToInteractive',\n", | |
" [key], {});\n", | |
" if (!dataTable) return;\n", | |
"\n", | |
" const docLinkHtml = 'Like what you see? Visit the ' +\n", | |
" '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n", | |
" + ' to learn more about interactive tables.';\n", | |
" element.innerHTML = '';\n", | |
" dataTable['output_type'] = 'display_data';\n", | |
" await google.colab.output.renderOutput(dataTable, element);\n", | |
" const docLink = document.createElement('div');\n", | |
" docLink.innerHTML = docLinkHtml;\n", | |
" element.appendChild(docLink);\n", | |
" }\n", | |
" </script>\n", | |
" </div>\n", | |
" </div>\n", | |
" " | |
] | |
}, | |
"metadata": {}, | |
"execution_count": 17 | |
} | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": [ | |
"##### With reconciliation" | |
], | |
"metadata": { | |
"id": "ov4Yq63ZfJR0" | |
} | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"evaluation[stat_level]" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 520 | |
}, | |
"id": "KuJPI_AlX7xj", | |
"outputId": "a453e85b-a13f-4276-f64d-a435e9d867ec" | |
}, | |
"execution_count": 18, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"metric mse\n", | |
"model1 2311.23\n", | |
"model2 1620.19\n", | |
"benchmark 1565.79\n", | |
"model1/BottomUp 2311.23\n", | |
"model2/BottomUp 1620.19\n", | |
"benchmark/BottomUp 1565.79\n", | |
"model1/TopDown_method-forecast_proportions 2402.27\n", | |
"model2/TopDown_method-forecast_proportions 2423.56\n", | |
"benchmark/TopDown_method-forecast_proportions 2383.27\n", | |
"model1/MinTrace_method-ols 2860.01\n", | |
"model2/MinTrace_method-ols 2353.12\n", | |
"benchmark/MinTrace_method-ols 2401.94\n", | |
"model1/ERM_method-closed_lambda_reg-0.01 1130.51\n", | |
"model2/ERM_method-closed_lambda_reg-0.01 1687.14\n", | |
"benchmark/ERM_method-closed_lambda_reg-0.01 1329.74" | |
], | |
"text/html": [ | |
"\n", | |
" <div id=\"df-e971bf0f-c7fa-454d-87b6-fba209691f3c\">\n", | |
" <div class=\"colab-df-container\">\n", | |
" <div>\n", | |
"<style scoped>\n", | |
" .dataframe tbody tr th:only-of-type {\n", | |
" vertical-align: middle;\n", | |
" }\n", | |
"\n", | |
" .dataframe tbody tr th {\n", | |
" vertical-align: top;\n", | |
" }\n", | |
"\n", | |
" .dataframe thead th {\n", | |
" text-align: right;\n", | |
" }\n", | |
"</style>\n", | |
"<table border=\"1\" class=\"dataframe\">\n", | |
" <thead>\n", | |
" <tr style=\"text-align: right;\">\n", | |
" <th>metric</th>\n", | |
" <th>mse</th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th>model1</th>\n", | |
" <td>2311.23</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>model2</th>\n", | |
" <td>1620.19</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>benchmark</th>\n", | |
" <td>1565.79</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>model1/BottomUp</th>\n", | |
" <td>2311.23</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>model2/BottomUp</th>\n", | |
" <td>1620.19</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>benchmark/BottomUp</th>\n", | |
" <td>1565.79</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>model1/TopDown_method-forecast_proportions</th>\n", | |
" <td>2402.27</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>model2/TopDown_method-forecast_proportions</th>\n", | |
" <td>2423.56</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>benchmark/TopDown_method-forecast_proportions</th>\n", | |
" <td>2383.27</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>model1/MinTrace_method-ols</th>\n", | |
" <td>2860.01</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>model2/MinTrace_method-ols</th>\n", | |
" <td>2353.12</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>benchmark/MinTrace_method-ols</th>\n", | |
" <td>2401.94</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>model1/ERM_method-closed_lambda_reg-0.01</th>\n", | |
" <td>1130.51</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>model2/ERM_method-closed_lambda_reg-0.01</th>\n", | |
" <td>1687.14</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>benchmark/ERM_method-closed_lambda_reg-0.01</th>\n", | |
" <td>1329.74</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n", | |
"</div>\n", | |
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-e971bf0f-c7fa-454d-87b6-fba209691f3c')\"\n", | |
" title=\"Convert this dataframe to an interactive table.\"\n", | |
" style=\"display:none;\">\n", | |
" \n", | |
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n", | |
" width=\"24px\">\n", | |
" <path d=\"M0 0h24v24H0V0z\" fill=\"none\"/>\n", | |
" <path d=\"M18.56 5.44l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94zm-11 1L8.5 8.5l.94-2.06 2.06-.94-2.06-.94L8.5 2.5l-.94 2.06-2.06.94zm10 10l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94z\"/><path d=\"M17.41 7.96l-1.37-1.37c-.4-.4-.92-.59-1.43-.59-.52 0-1.04.2-1.43.59L10.3 9.45l-7.72 7.72c-.78.78-.78 2.05 0 2.83L4 21.41c.39.39.9.59 1.41.59.51 0 1.02-.2 1.41-.59l7.78-7.78 2.81-2.81c.8-.78.8-2.07 0-2.86zM5.41 20L4 18.59l7.72-7.72 1.47 1.35L5.41 20z\"/>\n", | |
" </svg>\n", | |
" </button>\n", | |
" \n", | |
" <style>\n", | |
" .colab-df-container {\n", | |
" display:flex;\n", | |
" flex-wrap:wrap;\n", | |
" gap: 12px;\n", | |
" }\n", | |
"\n", | |
" .colab-df-convert {\n", | |
" background-color: #E8F0FE;\n", | |
" border: none;\n", | |
" border-radius: 50%;\n", | |
" cursor: pointer;\n", | |
" display: none;\n", | |
" fill: #1967D2;\n", | |
" height: 32px;\n", | |
" padding: 0 0 0 0;\n", | |
" width: 32px;\n", | |
" }\n", | |
"\n", | |
" .colab-df-convert:hover {\n", | |
" background-color: #E2EBFA;\n", | |
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n", | |
" fill: #174EA6;\n", | |
" }\n", | |
"\n", | |
" [theme=dark] .colab-df-convert {\n", | |
" background-color: #3B4455;\n", | |
" fill: #D2E3FC;\n", | |
" }\n", | |
"\n", | |
" [theme=dark] .colab-df-convert:hover {\n", | |
" background-color: #434B5C;\n", | |
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n", | |
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n", | |
" fill: #FFFFFF;\n", | |
" }\n", | |
" </style>\n", | |
"\n", | |
" <script>\n", | |
" const buttonEl =\n", | |
" document.querySelector('#df-e971bf0f-c7fa-454d-87b6-fba209691f3c button.colab-df-convert');\n", | |
" buttonEl.style.display =\n", | |
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n", | |
"\n", | |
" async function convertToInteractive(key) {\n", | |
" const element = document.querySelector('#df-e971bf0f-c7fa-454d-87b6-fba209691f3c');\n", | |
" const dataTable =\n", | |
" await google.colab.kernel.invokeFunction('convertToInteractive',\n", | |
" [key], {});\n", | |
" if (!dataTable) return;\n", | |
"\n", | |
" const docLinkHtml = 'Like what you see? Visit the ' +\n", | |
" '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n", | |
" + ' to learn more about interactive tables.';\n", | |
" element.innerHTML = '';\n", | |
" dataTable['output_type'] = 'display_data';\n", | |
" await google.colab.output.renderOutput(dataTable, element);\n", | |
" const docLink = document.createElement('div');\n", | |
" docLink.innerHTML = docLinkHtml;\n", | |
" element.appendChild(docLink);\n", | |
" }\n", | |
" </script>\n", | |
" </div>\n", | |
" </div>\n", | |
" " | |
] | |
}, | |
"metadata": {}, | |
"execution_count": 18 | |
} | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": [ | |
"#### Choose Best Method" | |
], | |
"metadata": { | |
"id": "J297pihGcUNU" | |
} | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"# Best Method\n", | |
"best_metric = evaluation[stat_level][metric].min()\n", | |
"best_method = evaluation[evaluation[stat_level][metric] == best_metric].index[0]\n", | |
"print(f\"Benchmark {metric}: {benchmark_metric}\")\n", | |
"print(f\"Best {metric}: {best_metric} obtained using {best_method}\")" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "PHus3XbdYa5Q", | |
"outputId": "3032a29e-601d-4e24-e75a-42402b59cac6" | |
}, | |
"execution_count": 19, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"Benchmark mse: 1565.79\n", | |
"Best mse: 1130.51 obtained using model1/ERM_method-closed_lambda_reg-0.01\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"# evaluation_scaled = evaluator.evaluate(\n", | |
"# Y_hat_df=Y_rec_df, Y_test_df=Y_test_df, \n", | |
"# tags=tags, benchmark='benchmark'\n", | |
"# )\n", | |
"# evaluation_scaled = evaluation_scaled.T" | |
], | |
"metadata": { | |
"id": "lST8iCfvkagD" | |
}, | |
"execution_count": 20, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"# evaluation_scaled.loc[[\"model1\", \"model2\", \"benchmark\"]]" | |
], | |
"metadata": { | |
"id": "ttJ1hk5KXnj6" | |
}, | |
"execution_count": 21, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"# evaluation_scaled[evaluation_scaled[stat_level][f\"{metric}-scaled\"] == evaluation_scaled[stat_level][f\"{metric}-scaled\"].min()].index[0]" | |
], | |
"metadata": { | |
"id": "lyTZm0NSVndr" | |
}, | |
"execution_count": 22, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": [ | |
"### Limited Hierarchies\n", | |
"\n", | |
"Goal: See if reducing the number of hierarchies helps improve the results" | |
], | |
"metadata": { | |
"id": "UHcLHqRItMK5" | |
} | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"# Create hierarchical structure and constraints\n", | |
"hierarchy_levels2 = [\n", | |
" ['all_acc', 'ch', 'acc', 'all_prods'],\n", | |
" ['all_acc', 'ch', 'acc', 'all_prods', 'cat'],\n", | |
" ['all_acc', 'ch', 'acc', 'all_prods', 'cat', 'brand'],\n", | |
" ['all_acc', 'ch', 'acc', 'all_prods', 'cat', 'brand', 'sku']\n", | |
" ]\n", | |
"Y_hier_df2, S_df2, tags2 = aggregate(df=bottom_df, spec=hierarchy_levels2)\n", | |
"Y_hier_df2 = Y_hier_df2.reset_index()\n", | |
"print('S_df.shape', S_df2.shape)\n", | |
"print('Y_hier_df.shape', Y_hier_df2.shape)" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "DQSUMRVqtN9w", | |
"outputId": "44dc71c4-bbf7-4505-969f-4055ee1b9e3c" | |
}, | |
"execution_count": 23, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"S_df.shape (45, 24)\n", | |
"Y_hier_df.shape (540, 3)\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"S_df2" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 1000 | |
}, | |
"id": "jRalYwB8typC", | |
"outputId": "adf3fe6a-3e13-4723-eeb3-ce87401d779c" | |
}, | |
"execution_count": 24, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
" retail/mass_market/kroger/retail/baby_food/cerelac/cer_32oz \\\n", | |
"retail/mass_market/kroger/retail 1.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/mass_market/kroger/retail/baby_food/cerelac/cer_64oz \\\n", | |
"retail/mass_market/kroger/retail 1.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/mass_market/kroger/retail/baby_food/gerber/ger_32oz \\\n", | |
"retail/mass_market/kroger/retail 1.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/mass_market/kroger/retail/baby_food/gerber/ger_64oz \\\n", | |
"retail/mass_market/kroger/retail 1.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/mass_market/kroger/retail/chocolate/buterfinger/bf_1pk \\\n", | |
"retail/mass_market/kroger/retail 1.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 1.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/mass_market/kroger/retail/chocolate/buterfinger/bf_8pk \\\n", | |
"retail/mass_market/kroger/retail 1.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 1.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/mass_market/kroger/retail/chocolate/kitkat/kk_1pk \\\n", | |
"retail/mass_market/kroger/retail 1.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 1.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 1.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 1.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/mass_market/kroger/retail/chocolate/kitkat/kk_8pk \\\n", | |
"retail/mass_market/kroger/retail 1.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 1.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 1.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 1.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/mass_market/walmart/retail/baby_food/cerelac/cer_32oz \\\n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 1.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 1.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 1.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 1.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/mass_market/walmart/retail/baby_food/cerelac/cer_64oz \\\n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 1.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 1.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 1.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 1.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" ... \\\n", | |
"retail/mass_market/kroger/retail ... \n", | |
"retail/mass_market/walmart/retail ... \n", | |
"retail/wholesale/sams/retail ... \n", | |
"retail/mass_market/kroger/retail/baby_food ... \n", | |
"retail/mass_market/kroger/retail/chocolate ... \n", | |
"retail/mass_market/walmart/retail/baby_food ... \n", | |
"retail/mass_market/walmart/retail/chocolate ... \n", | |
"retail/wholesale/sams/retail/baby_food ... \n", | |
"retail/wholesale/sams/retail/chocolate ... \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac ... \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber ... \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... ... \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat ... \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... ... \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber ... \n", | |
"retail/mass_market/walmart/retail/chocolate/but... ... \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat ... \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac ... \n", | |
"retail/wholesale/sams/retail/baby_food/gerber ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger ... \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat ... \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... ... \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... ... \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... ... \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... ... \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... ... \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... ... \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... ... \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... ... \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... ... \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... ... \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... ... \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... ... \n", | |
"retail/mass_market/walmart/retail/chocolate/but... ... \n", | |
"retail/mass_market/walmart/retail/chocolate/but... ... \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... ... \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... ... \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... ... \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... ... \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... ... \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... ... \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... ... \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... ... \n", | |
"\n", | |
" retail/mass_market/walmart/retail/chocolate/kitkat/kk_1pk \\\n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 1.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 1.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 1.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 1.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/mass_market/walmart/retail/chocolate/kitkat/kk_8pk \\\n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 1.0 \n", | |
"retail/wholesale/sams/retail 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 1.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 1.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 1.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/wholesale/sams/retail/baby_food/cerelac/cer_32oz \\\n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 1.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 1.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/wholesale/sams/retail/baby_food/cerelac/cer_64oz \\\n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 1.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 1.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/wholesale/sams/retail/baby_food/gerber/ger_32oz \\\n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 1.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/wholesale/sams/retail/baby_food/gerber/ger_64oz \\\n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/wholesale/sams/retail/chocolate/buterfinger/bf_1pk \\\n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/wholesale/sams/retail/chocolate/buterfinger/bf_8pk \\\n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/wholesale/sams/retail/chocolate/kitkat/kk_1pk \\\n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 1.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"\n", | |
" retail/wholesale/sams/retail/chocolate/kitkat/kk_8pk \n", | |
"retail/mass_market/kroger/retail 0.0 \n", | |
"retail/mass_market/walmart/retail 0.0 \n", | |
"retail/wholesale/sams/retail 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cerelac 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitkat 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/gerber 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kitkat 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfinger 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat 1.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/cere... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/baby_food/gerb... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/bute... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/kroger/retail/chocolate/kitk... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/cer... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/baby_food/ger... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/but... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/mass_market/walmart/retail/chocolate/kit... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/cerelac/... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/baby_food/gerber/g... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 1.0 \n", | |
"\n", | |
"[45 rows x 24 columns]" | |
], | |
"text/html": [ | |
"\n", | |
" <div id=\"df-f64affc0-879f-4853-8cf2-42a19af4d22d\">\n", | |
" <div class=\"colab-df-container\">\n", | |
" <div>\n", | |
"<style scoped>\n", | |
" .dataframe tbody tr th:only-of-type {\n", | |
" vertical-align: middle;\n", | |
" }\n", | |
"\n", | |
" .dataframe tbody tr th {\n", | |
" vertical-align: top;\n", | |
" }\n", | |
"\n", | |
" .dataframe thead th {\n", | |
" text-align: right;\n", | |
" }\n", | |
"</style>\n", | |
"<table border=\"1\" class=\"dataframe\">\n", | |
" <thead>\n", | |
" <tr style=\"text-align: right;\">\n", | |
" <th></th>\n", | |
" <th>retail/mass_market/kroger/retail/baby_food/cerelac/cer_32oz</th>\n", | |
" <th>retail/mass_market/kroger/retail/baby_food/cerelac/cer_64oz</th>\n", | |
" <th>retail/mass_market/kroger/retail/baby_food/gerber/ger_32oz</th>\n", | |
" <th>retail/mass_market/kroger/retail/baby_food/gerber/ger_64oz</th>\n", | |
" <th>retail/mass_market/kroger/retail/chocolate/buterfinger/bf_1pk</th>\n", | |
" <th>retail/mass_market/kroger/retail/chocolate/buterfinger/bf_8pk</th>\n", | |
" <th>retail/mass_market/kroger/retail/chocolate/kitkat/kk_1pk</th>\n", | |
" <th>retail/mass_market/kroger/retail/chocolate/kitkat/kk_8pk</th>\n", | |
" <th>retail/mass_market/walmart/retail/baby_food/cerelac/cer_32oz</th>\n", | |
" <th>retail/mass_market/walmart/retail/baby_food/cerelac/cer_64oz</th>\n", | |
" <th>...</th>\n", | |
" <th>retail/mass_market/walmart/retail/chocolate/kitkat/kk_1pk</th>\n", | |
" <th>retail/mass_market/walmart/retail/chocolate/kitkat/kk_8pk</th>\n", | |
" <th>retail/wholesale/sams/retail/baby_food/cerelac/cer_32oz</th>\n", | |
" <th>retail/wholesale/sams/retail/baby_food/cerelac/cer_64oz</th>\n", | |
" <th>retail/wholesale/sams/retail/baby_food/gerber/ger_32oz</th>\n", | |
" <th>retail/wholesale/sams/retail/baby_food/gerber/ger_64oz</th>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/buterfinger/bf_1pk</th>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/buterfinger/bf_8pk</th>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/kitkat/kk_1pk</th>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/kitkat/kk_8pk</th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail</th>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>...</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/baby_food</th>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/chocolate</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/baby_food</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/chocolate</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/baby_food</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/baby_food/cerelac</th>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/baby_food/gerber</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/chocolate/buterfinger</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/chocolate/kitkat</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/baby_food/cerelac</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/baby_food/gerber</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/chocolate/buterfinger</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/chocolate/kitkat</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/baby_food/cerelac</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/baby_food/gerber</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/buterfinger</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/kitkat</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>1.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/baby_food/cerelac/cer_32oz</th>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/baby_food/cerelac/cer_64oz</th>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/baby_food/gerber/ger_32oz</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/baby_food/gerber/ger_64oz</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/chocolate/buterfinger/bf_1pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/chocolate/buterfinger/bf_8pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/chocolate/kitkat/kk_1pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail/chocolate/kitkat/kk_8pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/baby_food/cerelac/cer_32oz</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/baby_food/cerelac/cer_64oz</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/baby_food/gerber/ger_32oz</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/baby_food/gerber/ger_64oz</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/chocolate/buterfinger/bf_1pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/chocolate/buterfinger/bf_8pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/chocolate/kitkat/kk_1pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail/chocolate/kitkat/kk_8pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/baby_food/cerelac/cer_32oz</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/baby_food/cerelac/cer_64oz</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/baby_food/gerber/ger_32oz</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/baby_food/gerber/ger_64oz</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/buterfinger/bf_1pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/buterfinger/bf_8pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/kitkat/kk_1pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/kitkat/kk_8pk</th>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>...</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>1.0</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n", | |
"<p>45 rows × 24 columns</p>\n", | |
"</div>\n", | |
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-f64affc0-879f-4853-8cf2-42a19af4d22d')\"\n", | |
" title=\"Convert this dataframe to an interactive table.\"\n", | |
" style=\"display:none;\">\n", | |
" \n", | |
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n", | |
" width=\"24px\">\n", | |
" <path d=\"M0 0h24v24H0V0z\" fill=\"none\"/>\n", | |
" <path d=\"M18.56 5.44l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94zm-11 1L8.5 8.5l.94-2.06 2.06-.94-2.06-.94L8.5 2.5l-.94 2.06-2.06.94zm10 10l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94z\"/><path d=\"M17.41 7.96l-1.37-1.37c-.4-.4-.92-.59-1.43-.59-.52 0-1.04.2-1.43.59L10.3 9.45l-7.72 7.72c-.78.78-.78 2.05 0 2.83L4 21.41c.39.39.9.59 1.41.59.51 0 1.02-.2 1.41-.59l7.78-7.78 2.81-2.81c.8-.78.8-2.07 0-2.86zM5.41 20L4 18.59l7.72-7.72 1.47 1.35L5.41 20z\"/>\n", | |
" </svg>\n", | |
" </button>\n", | |
" \n", | |
" <style>\n", | |
" .colab-df-container {\n", | |
" display:flex;\n", | |
" flex-wrap:wrap;\n", | |
" gap: 12px;\n", | |
" }\n", | |
"\n", | |
" .colab-df-convert {\n", | |
" background-color: #E8F0FE;\n", | |
" border: none;\n", | |
" border-radius: 50%;\n", | |
" cursor: pointer;\n", | |
" display: none;\n", | |
" fill: #1967D2;\n", | |
" height: 32px;\n", | |
" padding: 0 0 0 0;\n", | |
" width: 32px;\n", | |
" }\n", | |
"\n", | |
" .colab-df-convert:hover {\n", | |
" background-color: #E2EBFA;\n", | |
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n", | |
" fill: #174EA6;\n", | |
" }\n", | |
"\n", | |
" [theme=dark] .colab-df-convert {\n", | |
" background-color: #3B4455;\n", | |
" fill: #D2E3FC;\n", | |
" }\n", | |
"\n", | |
" [theme=dark] .colab-df-convert:hover {\n", | |
" background-color: #434B5C;\n", | |
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n", | |
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n", | |
" fill: #FFFFFF;\n", | |
" }\n", | |
" </style>\n", | |
"\n", | |
" <script>\n", | |
" const buttonEl =\n", | |
" document.querySelector('#df-f64affc0-879f-4853-8cf2-42a19af4d22d button.colab-df-convert');\n", | |
" buttonEl.style.display =\n", | |
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n", | |
"\n", | |
" async function convertToInteractive(key) {\n", | |
" const element = document.querySelector('#df-f64affc0-879f-4853-8cf2-42a19af4d22d');\n", | |
" const dataTable =\n", | |
" await google.colab.kernel.invokeFunction('convertToInteractive',\n", | |
" [key], {});\n", | |
" if (!dataTable) return;\n", | |
"\n", | |
" const docLinkHtml = 'Like what you see? Visit the ' +\n", | |
" '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n", | |
" + ' to learn more about interactive tables.';\n", | |
" element.innerHTML = '';\n", | |
" dataTable['output_type'] = 'display_data';\n", | |
" await google.colab.output.renderOutput(dataTable, element);\n", | |
" const docLink = document.createElement('div');\n", | |
" docLink.innerHTML = docLinkHtml;\n", | |
" element.appendChild(docLink);\n", | |
" }\n", | |
" </script>\n", | |
" </div>\n", | |
" </div>\n", | |
" " | |
] | |
}, | |
"metadata": {}, | |
"execution_count": 24 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"hplot = HierarchicalPlot(S=S_df2, tags=tags2)\n", | |
"hplot.plot_summing_matrix()" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 417 | |
}, | |
"id": "LTzy_D1Nte4D", | |
"outputId": "5a30f77b-9044-4526-f9a4-ae55b68b099b" | |
}, | |
"execution_count": 25, | |
"outputs": [ | |
{ | |
"output_type": "display_data", | |
"data": { | |
"text/plain": [ | |
"<Figure size 320x480 with 1 Axes>" | |
], | |
"image/png": "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\n" | |
}, | |
"metadata": {} | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"diff_index = Y_hat_df.index.difference(S_df2.index.unique())\n", | |
"diff_index" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "uWDMy3EMuGnh", | |
"outputId": "02504b47-7360-4b82-cf04-982c11d8939f" | |
}, | |
"execution_count": 26, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"Index(['retail', 'retail/mass_market', 'retail/mass_market/kroger',\n", | |
" 'retail/mass_market/walmart', 'retail/wholesale',\n", | |
" 'retail/wholesale/sams'],\n", | |
" dtype='object')" | |
] | |
}, | |
"metadata": {}, | |
"execution_count": 26 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"Y_hat_df2 = Y_hat_df.drop(index=diff_index)\n", | |
"Y_fitted_df2 = Y_fitted_df.drop(index=diff_index)\n", | |
"Y_test_df2 = Y_test_df.drop(index=diff_index)\n", | |
"\n", | |
"Y_hat_df2.index.difference(S_df2.index.unique()), Y_fitted_df2.index.difference(S_df2.index.unique()), Y_test_df2.index.difference(S_df2.index.unique())" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "sIdW6zwyuLxn", | |
"outputId": "5dc67c63-7b44-4ebd-c6d3-68bce970a078" | |
}, | |
"execution_count": 27, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"(Index([], dtype='object'),\n", | |
" Index([], dtype='object'),\n", | |
" Index([], dtype='object'))" | |
] | |
}, | |
"metadata": {}, | |
"execution_count": 27 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"Y_test_df.index" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "Ui31v3F96pgi", | |
"outputId": "2250c4d2-45ae-403c-c050-a85ed4173c9d" | |
}, | |
"execution_count": 28, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"Index(['retail', 'retail', 'retail/mass_market', 'retail/mass_market',\n", | |
" 'retail/wholesale', 'retail/wholesale', 'retail/mass_market/kroger',\n", | |
" 'retail/mass_market/kroger', 'retail/mass_market/walmart',\n", | |
" 'retail/mass_market/walmart',\n", | |
" ...\n", | |
" 'retail/wholesale/sams/retail/baby_food/gerber/ger_64oz',\n", | |
" 'retail/wholesale/sams/retail/baby_food/gerber/ger_64oz',\n", | |
" 'retail/wholesale/sams/retail/chocolate/buterfinger/bf_1pk',\n", | |
" 'retail/wholesale/sams/retail/chocolate/buterfinger/bf_1pk',\n", | |
" 'retail/wholesale/sams/retail/chocolate/buterfinger/bf_8pk',\n", | |
" 'retail/wholesale/sams/retail/chocolate/buterfinger/bf_8pk',\n", | |
" 'retail/wholesale/sams/retail/chocolate/kitkat/kk_1pk',\n", | |
" 'retail/wholesale/sams/retail/chocolate/kitkat/kk_1pk',\n", | |
" 'retail/wholesale/sams/retail/chocolate/kitkat/kk_8pk',\n", | |
" 'retail/wholesale/sams/retail/chocolate/kitkat/kk_8pk'],\n", | |
" dtype='object', name='unique_id', length=102)" | |
] | |
}, | |
"metadata": {}, | |
"execution_count": 28 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"Y_rec_df2 = hrec.reconcile(Y_hat_df=Y_hat_df2, \n", | |
" Y_df=Y_fitted_df2,\n", | |
" S=S_df2, tags=tags2)\n", | |
"Y_rec_df2.groupby('unique_id').head(FH)" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 727 | |
}, | |
"id": "tCP8yy7czTof", | |
"outputId": "f8402561-cc53-48bb-913d-0d7307fc0e3f" | |
}, | |
"execution_count": 29, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
" ds model1 model2 \\\n", | |
"unique_id \n", | |
"retail/mass_market/kroger/retail 2022-11-01 46 71 \n", | |
"retail/mass_market/kroger/retail 2022-12-01 20 76 \n", | |
"retail/mass_market/walmart/retail 2022-11-01 81 95 \n", | |
"retail/mass_market/walmart/retail 2022-12-01 21 60 \n", | |
"retail/wholesale/sams/retail 2022-11-01 28 80 \n", | |
"... ... ... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 2022-12-01 8 65 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 2022-11-01 85 96 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 2022-12-01 52 63 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 2022-11-01 86 89 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 2022-12-01 95 62 \n", | |
"\n", | |
" benchmark \\\n", | |
"unique_id \n", | |
"retail/mass_market/kroger/retail 46 \n", | |
"retail/mass_market/kroger/retail 20 \n", | |
"retail/mass_market/walmart/retail 81 \n", | |
"retail/mass_market/walmart/retail 21 \n", | |
"retail/wholesale/sams/retail 80 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 8 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 96 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 63 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 86 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 95 \n", | |
"\n", | |
" model1/BottomUp \\\n", | |
"unique_id \n", | |
"retail/mass_market/kroger/retail 409.0 \n", | |
"retail/mass_market/kroger/retail 351.0 \n", | |
"retail/mass_market/walmart/retail 441.0 \n", | |
"retail/mass_market/walmart/retail 417.0 \n", | |
"retail/wholesale/sams/retail 506.0 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 8.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 85.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 52.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 86.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 95.0 \n", | |
"\n", | |
" model2/BottomUp \\\n", | |
"unique_id \n", | |
"retail/mass_market/kroger/retail 354.0 \n", | |
"retail/mass_market/kroger/retail 374.0 \n", | |
"retail/mass_market/walmart/retail 402.0 \n", | |
"retail/mass_market/walmart/retail 533.0 \n", | |
"retail/wholesale/sams/retail 566.0 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 65.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 96.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 63.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 89.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 62.0 \n", | |
"\n", | |
" benchmark/BottomUp \\\n", | |
"unique_id \n", | |
"retail/mass_market/kroger/retail 440.0 \n", | |
"retail/mass_market/kroger/retail 278.0 \n", | |
"retail/mass_market/walmart/retail 398.0 \n", | |
"retail/mass_market/walmart/retail 485.0 \n", | |
"retail/wholesale/sams/retail 480.0 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 8.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 96.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 63.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 86.0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 95.0 \n", | |
"\n", | |
" model1/TopDown_method-forecast_proportions \\\n", | |
"unique_id \n", | |
"retail/mass_market/kroger/retail 46 \n", | |
"retail/mass_market/kroger/retail 20 \n", | |
"retail/mass_market/walmart/retail 0 \n", | |
"retail/mass_market/walmart/retail 0 \n", | |
"retail/wholesale/sams/retail 0 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0 \n", | |
"\n", | |
" model2/TopDown_method-forecast_proportions \\\n", | |
"unique_id \n", | |
"retail/mass_market/kroger/retail 71 \n", | |
"retail/mass_market/kroger/retail 76 \n", | |
"retail/mass_market/walmart/retail 0 \n", | |
"retail/mass_market/walmart/retail 0 \n", | |
"retail/wholesale/sams/retail 0 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0 \n", | |
"\n", | |
" benchmark/TopDown_method-forecast_proportions \\\n", | |
"unique_id \n", | |
"retail/mass_market/kroger/retail 46 \n", | |
"retail/mass_market/kroger/retail 20 \n", | |
"retail/mass_market/walmart/retail 0 \n", | |
"retail/mass_market/walmart/retail 0 \n", | |
"retail/wholesale/sams/retail 0 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 0 \n", | |
"\n", | |
" model1/MinTrace_method-ols \\\n", | |
"unique_id \n", | |
"retail/mass_market/kroger/retail 79.266667 \n", | |
"retail/mass_market/kroger/retail 86.600000 \n", | |
"retail/mass_market/walmart/retail 117.800000 \n", | |
"retail/mass_market/walmart/retail 80.733333 \n", | |
"retail/wholesale/sams/retail 89.066667 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... -13.561905 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 2.180952 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... -1.561905 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 3.180952 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 41.438095 \n", | |
"\n", | |
" model2/MinTrace_method-ols \\\n", | |
"unique_id \n", | |
"retail/mass_market/kroger/retail 111.200000 \n", | |
"retail/mass_market/kroger/retail 96.266667 \n", | |
"retail/mass_market/walmart/retail 163.466667 \n", | |
"retail/mass_market/walmart/retail 129.666667 \n", | |
"retail/wholesale/sams/retail 158.133333 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 30.942857 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 21.028571 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 9.276190 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 14.028571 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 8.276190 \n", | |
"\n", | |
" benchmark/MinTrace_method-ols \\\n", | |
"unique_id \n", | |
"retail/mass_market/kroger/retail 81.733333 \n", | |
"retail/mass_market/kroger/retail 74.533333 \n", | |
"retail/mass_market/walmart/retail 164.266667 \n", | |
"retail/mass_market/walmart/retail 94.066667 \n", | |
"retail/wholesale/sams/retail 137.733333 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... -3.009524 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 24.895238 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 2.323810 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 14.895238 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 34.323810 \n", | |
"\n", | |
" model1/ERM_method-closed_lambda_reg-0.01 \\\n", | |
"unique_id \n", | |
"retail/mass_market/kroger/retail 316.233519 \n", | |
"retail/mass_market/kroger/retail 316.782933 \n", | |
"retail/mass_market/walmart/retail 284.569851 \n", | |
"retail/mass_market/walmart/retail 298.480210 \n", | |
"retail/wholesale/sams/retail 347.575250 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 15.416673 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 28.561271 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 38.804573 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 44.771597 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 52.431647 \n", | |
"\n", | |
" model2/ERM_method-closed_lambda_reg-0.01 \\\n", | |
"unique_id \n", | |
"retail/mass_market/kroger/retail 440.918339 \n", | |
"retail/mass_market/kroger/retail 405.124881 \n", | |
"retail/mass_market/walmart/retail 427.490351 \n", | |
"retail/mass_market/walmart/retail 375.994146 \n", | |
"retail/wholesale/sams/retail 518.956814 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 18.282538 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 63.164069 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 45.276975 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 79.786161 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 63.818417 \n", | |
"\n", | |
" benchmark/ERM_method-closed_lambda_reg-0.01 \n", | |
"unique_id \n", | |
"retail/mass_market/kroger/retail 416.612774 \n", | |
"retail/mass_market/kroger/retail 327.681068 \n", | |
"retail/mass_market/walmart/retail 392.875607 \n", | |
"retail/mass_market/walmart/retail 325.642247 \n", | |
"retail/wholesale/sams/retail 477.998227 \n", | |
"... ... \n", | |
"retail/wholesale/sams/retail/chocolate/buterfin... 20.177648 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 51.286643 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 52.975578 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 69.143205 \n", | |
"retail/wholesale/sams/retail/chocolate/kitkat/k... 63.783127 \n", | |
"\n", | |
"[90 rows x 16 columns]" | |
], | |
"text/html": [ | |
"\n", | |
" <div id=\"df-daea4751-e019-4094-a22e-59607ed89f57\">\n", | |
" <div class=\"colab-df-container\">\n", | |
" <div>\n", | |
"<style scoped>\n", | |
" .dataframe tbody tr th:only-of-type {\n", | |
" vertical-align: middle;\n", | |
" }\n", | |
"\n", | |
" .dataframe tbody tr th {\n", | |
" vertical-align: top;\n", | |
" }\n", | |
"\n", | |
" .dataframe thead th {\n", | |
" text-align: right;\n", | |
" }\n", | |
"</style>\n", | |
"<table border=\"1\" class=\"dataframe\">\n", | |
" <thead>\n", | |
" <tr style=\"text-align: right;\">\n", | |
" <th></th>\n", | |
" <th>ds</th>\n", | |
" <th>model1</th>\n", | |
" <th>model2</th>\n", | |
" <th>benchmark</th>\n", | |
" <th>model1/BottomUp</th>\n", | |
" <th>model2/BottomUp</th>\n", | |
" <th>benchmark/BottomUp</th>\n", | |
" <th>model1/TopDown_method-forecast_proportions</th>\n", | |
" <th>model2/TopDown_method-forecast_proportions</th>\n", | |
" <th>benchmark/TopDown_method-forecast_proportions</th>\n", | |
" <th>model1/MinTrace_method-ols</th>\n", | |
" <th>model2/MinTrace_method-ols</th>\n", | |
" <th>benchmark/MinTrace_method-ols</th>\n", | |
" <th>model1/ERM_method-closed_lambda_reg-0.01</th>\n", | |
" <th>model2/ERM_method-closed_lambda_reg-0.01</th>\n", | |
" <th>benchmark/ERM_method-closed_lambda_reg-0.01</th>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>unique_id</th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail</th>\n", | |
" <td>2022-11-01</td>\n", | |
" <td>46</td>\n", | |
" <td>71</td>\n", | |
" <td>46</td>\n", | |
" <td>409.0</td>\n", | |
" <td>354.0</td>\n", | |
" <td>440.0</td>\n", | |
" <td>46</td>\n", | |
" <td>71</td>\n", | |
" <td>46</td>\n", | |
" <td>79.266667</td>\n", | |
" <td>111.200000</td>\n", | |
" <td>81.733333</td>\n", | |
" <td>316.233519</td>\n", | |
" <td>440.918339</td>\n", | |
" <td>416.612774</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/kroger/retail</th>\n", | |
" <td>2022-12-01</td>\n", | |
" <td>20</td>\n", | |
" <td>76</td>\n", | |
" <td>20</td>\n", | |
" <td>351.0</td>\n", | |
" <td>374.0</td>\n", | |
" <td>278.0</td>\n", | |
" <td>20</td>\n", | |
" <td>76</td>\n", | |
" <td>20</td>\n", | |
" <td>86.600000</td>\n", | |
" <td>96.266667</td>\n", | |
" <td>74.533333</td>\n", | |
" <td>316.782933</td>\n", | |
" <td>405.124881</td>\n", | |
" <td>327.681068</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail</th>\n", | |
" <td>2022-11-01</td>\n", | |
" <td>81</td>\n", | |
" <td>95</td>\n", | |
" <td>81</td>\n", | |
" <td>441.0</td>\n", | |
" <td>402.0</td>\n", | |
" <td>398.0</td>\n", | |
" <td>0</td>\n", | |
" <td>0</td>\n", | |
" <td>0</td>\n", | |
" <td>117.800000</td>\n", | |
" <td>163.466667</td>\n", | |
" <td>164.266667</td>\n", | |
" <td>284.569851</td>\n", | |
" <td>427.490351</td>\n", | |
" <td>392.875607</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/mass_market/walmart/retail</th>\n", | |
" <td>2022-12-01</td>\n", | |
" <td>21</td>\n", | |
" <td>60</td>\n", | |
" <td>21</td>\n", | |
" <td>417.0</td>\n", | |
" <td>533.0</td>\n", | |
" <td>485.0</td>\n", | |
" <td>0</td>\n", | |
" <td>0</td>\n", | |
" <td>0</td>\n", | |
" <td>80.733333</td>\n", | |
" <td>129.666667</td>\n", | |
" <td>94.066667</td>\n", | |
" <td>298.480210</td>\n", | |
" <td>375.994146</td>\n", | |
" <td>325.642247</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail</th>\n", | |
" <td>2022-11-01</td>\n", | |
" <td>28</td>\n", | |
" <td>80</td>\n", | |
" <td>80</td>\n", | |
" <td>506.0</td>\n", | |
" <td>566.0</td>\n", | |
" <td>480.0</td>\n", | |
" <td>0</td>\n", | |
" <td>0</td>\n", | |
" <td>0</td>\n", | |
" <td>89.066667</td>\n", | |
" <td>158.133333</td>\n", | |
" <td>137.733333</td>\n", | |
" <td>347.575250</td>\n", | |
" <td>518.956814</td>\n", | |
" <td>477.998227</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>...</th>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" <td>...</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/buterfinger/bf_8pk</th>\n", | |
" <td>2022-12-01</td>\n", | |
" <td>8</td>\n", | |
" <td>65</td>\n", | |
" <td>8</td>\n", | |
" <td>8.0</td>\n", | |
" <td>65.0</td>\n", | |
" <td>8.0</td>\n", | |
" <td>0</td>\n", | |
" <td>0</td>\n", | |
" <td>0</td>\n", | |
" <td>-13.561905</td>\n", | |
" <td>30.942857</td>\n", | |
" <td>-3.009524</td>\n", | |
" <td>15.416673</td>\n", | |
" <td>18.282538</td>\n", | |
" <td>20.177648</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/kitkat/kk_1pk</th>\n", | |
" <td>2022-11-01</td>\n", | |
" <td>85</td>\n", | |
" <td>96</td>\n", | |
" <td>96</td>\n", | |
" <td>85.0</td>\n", | |
" <td>96.0</td>\n", | |
" <td>96.0</td>\n", | |
" <td>0</td>\n", | |
" <td>0</td>\n", | |
" <td>0</td>\n", | |
" <td>2.180952</td>\n", | |
" <td>21.028571</td>\n", | |
" <td>24.895238</td>\n", | |
" <td>28.561271</td>\n", | |
" <td>63.164069</td>\n", | |
" <td>51.286643</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/kitkat/kk_1pk</th>\n", | |
" <td>2022-12-01</td>\n", | |
" <td>52</td>\n", | |
" <td>63</td>\n", | |
" <td>63</td>\n", | |
" <td>52.0</td>\n", | |
" <td>63.0</td>\n", | |
" <td>63.0</td>\n", | |
" <td>0</td>\n", | |
" <td>0</td>\n", | |
" <td>0</td>\n", | |
" <td>-1.561905</td>\n", | |
" <td>9.276190</td>\n", | |
" <td>2.323810</td>\n", | |
" <td>38.804573</td>\n", | |
" <td>45.276975</td>\n", | |
" <td>52.975578</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/kitkat/kk_8pk</th>\n", | |
" <td>2022-11-01</td>\n", | |
" <td>86</td>\n", | |
" <td>89</td>\n", | |
" <td>86</td>\n", | |
" <td>86.0</td>\n", | |
" <td>89.0</td>\n", | |
" <td>86.0</td>\n", | |
" <td>0</td>\n", | |
" <td>0</td>\n", | |
" <td>0</td>\n", | |
" <td>3.180952</td>\n", | |
" <td>14.028571</td>\n", | |
" <td>14.895238</td>\n", | |
" <td>44.771597</td>\n", | |
" <td>79.786161</td>\n", | |
" <td>69.143205</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>retail/wholesale/sams/retail/chocolate/kitkat/kk_8pk</th>\n", | |
" <td>2022-12-01</td>\n", | |
" <td>95</td>\n", | |
" <td>62</td>\n", | |
" <td>95</td>\n", | |
" <td>95.0</td>\n", | |
" <td>62.0</td>\n", | |
" <td>95.0</td>\n", | |
" <td>0</td>\n", | |
" <td>0</td>\n", | |
" <td>0</td>\n", | |
" <td>41.438095</td>\n", | |
" <td>8.276190</td>\n", | |
" <td>34.323810</td>\n", | |
" <td>52.431647</td>\n", | |
" <td>63.818417</td>\n", | |
" <td>63.783127</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n", | |
"<p>90 rows × 16 columns</p>\n", | |
"</div>\n", | |
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-daea4751-e019-4094-a22e-59607ed89f57')\"\n", | |
" title=\"Convert this dataframe to an interactive table.\"\n", | |
" style=\"display:none;\">\n", | |
" \n", | |
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n", | |
" width=\"24px\">\n", | |
" <path d=\"M0 0h24v24H0V0z\" fill=\"none\"/>\n", | |
" <path d=\"M18.56 5.44l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94zm-11 1L8.5 8.5l.94-2.06 2.06-.94-2.06-.94L8.5 2.5l-.94 2.06-2.06.94zm10 10l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94z\"/><path d=\"M17.41 7.96l-1.37-1.37c-.4-.4-.92-.59-1.43-.59-.52 0-1.04.2-1.43.59L10.3 9.45l-7.72 7.72c-.78.78-.78 2.05 0 2.83L4 21.41c.39.39.9.59 1.41.59.51 0 1.02-.2 1.41-.59l7.78-7.78 2.81-2.81c.8-.78.8-2.07 0-2.86zM5.41 20L4 18.59l7.72-7.72 1.47 1.35L5.41 20z\"/>\n", | |
" </svg>\n", | |
" </button>\n", | |
" \n", | |
" <style>\n", | |
" .colab-df-container {\n", | |
" display:flex;\n", | |
" flex-wrap:wrap;\n", | |
" gap: 12px;\n", | |
" }\n", | |
"\n", | |
" .colab-df-convert {\n", | |
" background-color: #E8F0FE;\n", | |
" border: none;\n", | |
" border-radius: 50%;\n", | |
" cursor: pointer;\n", | |
" display: none;\n", | |
" fill: #1967D2;\n", | |
" height: 32px;\n", | |
" padding: 0 0 0 0;\n", | |
" width: 32px;\n", | |
" }\n", | |
"\n", | |
" .colab-df-convert:hover {\n", | |
" background-color: #E2EBFA;\n", | |
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n", | |
" fill: #174EA6;\n", | |
" }\n", | |
"\n", | |
" [theme=dark] .colab-df-convert {\n", | |
" background-color: #3B4455;\n", | |
" fill: #D2E3FC;\n", | |
" }\n", | |
"\n", | |
" [theme=dark] .colab-df-convert:hover {\n", | |
" background-color: #434B5C;\n", | |
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n", | |
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n", | |
" fill: #FFFFFF;\n", | |
" }\n", | |
" </style>\n", | |
"\n", | |
" <script>\n", | |
" const buttonEl =\n", | |
" document.querySelector('#df-daea4751-e019-4094-a22e-59607ed89f57 button.colab-df-convert');\n", | |
" buttonEl.style.display =\n", | |
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n", | |
"\n", | |
" async function convertToInteractive(key) {\n", | |
" const element = document.querySelector('#df-daea4751-e019-4094-a22e-59607ed89f57');\n", | |
" const dataTable =\n", | |
" await google.colab.kernel.invokeFunction('convertToInteractive',\n", | |
" [key], {});\n", | |
" if (!dataTable) return;\n", | |
"\n", | |
" const docLinkHtml = 'Like what you see? Visit the ' +\n", | |
" '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n", | |
" + ' to learn more about interactive tables.';\n", | |
" element.innerHTML = '';\n", | |
" dataTable['output_type'] = 'display_data';\n", | |
" await google.colab.output.renderOutput(dataTable, element);\n", | |
" const docLink = document.createElement('div');\n", | |
" docLink.innerHTML = docLinkHtml;\n", | |
" element.appendChild(docLink);\n", | |
" }\n", | |
" </script>\n", | |
" </div>\n", | |
" </div>\n", | |
" " | |
] | |
}, | |
"metadata": {}, | |
"execution_count": 29 | |
} | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": [ | |
"#### Evaluate Reconciled Results" | |
], | |
"metadata": { | |
"id": "nBWbKd_D5Nss" | |
} | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"evaluation2 = evaluator.evaluate(Y_hat_df=Y_rec_df2, Y_test_df=Y_test_df2, tags=tags2)\n", | |
"evaluation2 = evaluation2.T" | |
], | |
"metadata": { | |
"id": "noiWGsM1zZOz" | |
}, | |
"execution_count": 30, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"evaluation2.loc[[\"model1\", \"model2\", \"benchmark\"]][stat_level]" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 143 | |
}, | |
"id": "k7VQ8rE0zxUr", | |
"outputId": "c92be858-784d-44fc-e9e5-83211242ef78" | |
}, | |
"execution_count": 31, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"metric mse\n", | |
"model1 2311.23\n", | |
"model2 1620.19\n", | |
"benchmark 1565.79" | |
], | |
"text/html": [ | |
"\n", | |
" <div id=\"df-3d723d31-2358-46fc-be96-1f6d4222432d\">\n", | |
" <div class=\"colab-df-container\">\n", | |
" <div>\n", | |
"<style scoped>\n", | |
" .dataframe tbody tr th:only-of-type {\n", | |
" vertical-align: middle;\n", | |
" }\n", | |
"\n", | |
" .dataframe tbody tr th {\n", | |
" vertical-align: top;\n", | |
" }\n", | |
"\n", | |
" .dataframe thead th {\n", | |
" text-align: right;\n", | |
" }\n", | |
"</style>\n", | |
"<table border=\"1\" class=\"dataframe\">\n", | |
" <thead>\n", | |
" <tr style=\"text-align: right;\">\n", | |
" <th>metric</th>\n", | |
" <th>mse</th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th>model1</th>\n", | |
" <td>2311.23</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>model2</th>\n", | |
" <td>1620.19</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>benchmark</th>\n", | |
" <td>1565.79</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n", | |
"</div>\n", | |
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-3d723d31-2358-46fc-be96-1f6d4222432d')\"\n", | |
" title=\"Convert this dataframe to an interactive table.\"\n", | |
" style=\"display:none;\">\n", | |
" \n", | |
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n", | |
" width=\"24px\">\n", | |
" <path d=\"M0 0h24v24H0V0z\" fill=\"none\"/>\n", | |
" <path d=\"M18.56 5.44l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94zm-11 1L8.5 8.5l.94-2.06 2.06-.94-2.06-.94L8.5 2.5l-.94 2.06-2.06.94zm10 10l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94z\"/><path d=\"M17.41 7.96l-1.37-1.37c-.4-.4-.92-.59-1.43-.59-.52 0-1.04.2-1.43.59L10.3 9.45l-7.72 7.72c-.78.78-.78 2.05 0 2.83L4 21.41c.39.39.9.59 1.41.59.51 0 1.02-.2 1.41-.59l7.78-7.78 2.81-2.81c.8-.78.8-2.07 0-2.86zM5.41 20L4 18.59l7.72-7.72 1.47 1.35L5.41 20z\"/>\n", | |
" </svg>\n", | |
" </button>\n", | |
" \n", | |
" <style>\n", | |
" .colab-df-container {\n", | |
" display:flex;\n", | |
" flex-wrap:wrap;\n", | |
" gap: 12px;\n", | |
" }\n", | |
"\n", | |
" .colab-df-convert {\n", | |
" background-color: #E8F0FE;\n", | |
" border: none;\n", | |
" border-radius: 50%;\n", | |
" cursor: pointer;\n", | |
" display: none;\n", | |
" fill: #1967D2;\n", | |
" height: 32px;\n", | |
" padding: 0 0 0 0;\n", | |
" width: 32px;\n", | |
" }\n", | |
"\n", | |
" .colab-df-convert:hover {\n", | |
" background-color: #E2EBFA;\n", | |
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n", | |
" fill: #174EA6;\n", | |
" }\n", | |
"\n", | |
" [theme=dark] .colab-df-convert {\n", | |
" background-color: #3B4455;\n", | |
" fill: #D2E3FC;\n", | |
" }\n", | |
"\n", | |
" [theme=dark] .colab-df-convert:hover {\n", | |
" background-color: #434B5C;\n", | |
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n", | |
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n", | |
" fill: #FFFFFF;\n", | |
" }\n", | |
" </style>\n", | |
"\n", | |
" <script>\n", | |
" const buttonEl =\n", | |
" document.querySelector('#df-3d723d31-2358-46fc-be96-1f6d4222432d button.colab-df-convert');\n", | |
" buttonEl.style.display =\n", | |
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n", | |
"\n", | |
" async function convertToInteractive(key) {\n", | |
" const element = document.querySelector('#df-3d723d31-2358-46fc-be96-1f6d4222432d');\n", | |
" const dataTable =\n", | |
" await google.colab.kernel.invokeFunction('convertToInteractive',\n", | |
" [key], {});\n", | |
" if (!dataTable) return;\n", | |
"\n", | |
" const docLinkHtml = 'Like what you see? Visit the ' +\n", | |
" '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n", | |
" + ' to learn more about interactive tables.';\n", | |
" element.innerHTML = '';\n", | |
" dataTable['output_type'] = 'display_data';\n", | |
" await google.colab.output.renderOutput(dataTable, element);\n", | |
" const docLink = document.createElement('div');\n", | |
" docLink.innerHTML = docLinkHtml;\n", | |
" element.appendChild(docLink);\n", | |
" }\n", | |
" </script>\n", | |
" </div>\n", | |
" </div>\n", | |
" " | |
] | |
}, | |
"metadata": {}, | |
"execution_count": 31 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"evaluation2[stat_level]" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 520 | |
}, | |
"id": "CnZJiYj00wly", | |
"outputId": "b60b0c05-4523-470e-e426-ce8357128a41" | |
}, | |
"execution_count": 32, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"metric mse\n", | |
"model1 2311.23\n", | |
"model2 1620.19\n", | |
"benchmark 1565.79\n", | |
"model1/BottomUp 2311.23\n", | |
"model2/BottomUp 1620.19\n", | |
"benchmark/BottomUp 1565.79\n", | |
"model1/TopDown_method-forecast_proportions 2494.58\n", | |
"model2/TopDown_method-forecast_proportions 2419.21\n", | |
"benchmark/TopDown_method-forecast_proportions 2512.27\n", | |
"model1/MinTrace_method-ols 2474.9\n", | |
"model2/MinTrace_method-ols 1889.56\n", | |
"benchmark/MinTrace_method-ols 2008.37\n", | |
"model1/ERM_method-closed_lambda_reg-0.01 1163.41\n", | |
"model2/ERM_method-closed_lambda_reg-0.01 1637.31\n", | |
"benchmark/ERM_method-closed_lambda_reg-0.01 1357.17" | |
], | |
"text/html": [ | |
"\n", | |
" <div id=\"df-5ab9c202-58fd-4c47-98f0-1e3f8f17c986\">\n", | |
" <div class=\"colab-df-container\">\n", | |
" <div>\n", | |
"<style scoped>\n", | |
" .dataframe tbody tr th:only-of-type {\n", | |
" vertical-align: middle;\n", | |
" }\n", | |
"\n", | |
" .dataframe tbody tr th {\n", | |
" vertical-align: top;\n", | |
" }\n", | |
"\n", | |
" .dataframe thead th {\n", | |
" text-align: right;\n", | |
" }\n", | |
"</style>\n", | |
"<table border=\"1\" class=\"dataframe\">\n", | |
" <thead>\n", | |
" <tr style=\"text-align: right;\">\n", | |
" <th>metric</th>\n", | |
" <th>mse</th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th>model1</th>\n", | |
" <td>2311.23</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>model2</th>\n", | |
" <td>1620.19</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>benchmark</th>\n", | |
" <td>1565.79</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>model1/BottomUp</th>\n", | |
" <td>2311.23</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>model2/BottomUp</th>\n", | |
" <td>1620.19</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>benchmark/BottomUp</th>\n", | |
" <td>1565.79</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>model1/TopDown_method-forecast_proportions</th>\n", | |
" <td>2494.58</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>model2/TopDown_method-forecast_proportions</th>\n", | |
" <td>2419.21</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>benchmark/TopDown_method-forecast_proportions</th>\n", | |
" <td>2512.27</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>model1/MinTrace_method-ols</th>\n", | |
" <td>2474.9</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>model2/MinTrace_method-ols</th>\n", | |
" <td>1889.56</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>benchmark/MinTrace_method-ols</th>\n", | |
" <td>2008.37</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>model1/ERM_method-closed_lambda_reg-0.01</th>\n", | |
" <td>1163.41</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>model2/ERM_method-closed_lambda_reg-0.01</th>\n", | |
" <td>1637.31</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>benchmark/ERM_method-closed_lambda_reg-0.01</th>\n", | |
" <td>1357.17</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n", | |
"</div>\n", | |
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-5ab9c202-58fd-4c47-98f0-1e3f8f17c986')\"\n", | |
" title=\"Convert this dataframe to an interactive table.\"\n", | |
" style=\"display:none;\">\n", | |
" \n", | |
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n", | |
" width=\"24px\">\n", | |
" <path d=\"M0 0h24v24H0V0z\" fill=\"none\"/>\n", | |
" <path d=\"M18.56 5.44l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94zm-11 1L8.5 8.5l.94-2.06 2.06-.94-2.06-.94L8.5 2.5l-.94 2.06-2.06.94zm10 10l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94z\"/><path d=\"M17.41 7.96l-1.37-1.37c-.4-.4-.92-.59-1.43-.59-.52 0-1.04.2-1.43.59L10.3 9.45l-7.72 7.72c-.78.78-.78 2.05 0 2.83L4 21.41c.39.39.9.59 1.41.59.51 0 1.02-.2 1.41-.59l7.78-7.78 2.81-2.81c.8-.78.8-2.07 0-2.86zM5.41 20L4 18.59l7.72-7.72 1.47 1.35L5.41 20z\"/>\n", | |
" </svg>\n", | |
" </button>\n", | |
" \n", | |
" <style>\n", | |
" .colab-df-container {\n", | |
" display:flex;\n", | |
" flex-wrap:wrap;\n", | |
" gap: 12px;\n", | |
" }\n", | |
"\n", | |
" .colab-df-convert {\n", | |
" background-color: #E8F0FE;\n", | |
" border: none;\n", | |
" border-radius: 50%;\n", | |
" cursor: pointer;\n", | |
" display: none;\n", | |
" fill: #1967D2;\n", | |
" height: 32px;\n", | |
" padding: 0 0 0 0;\n", | |
" width: 32px;\n", | |
" }\n", | |
"\n", | |
" .colab-df-convert:hover {\n", | |
" background-color: #E2EBFA;\n", | |
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n", | |
" fill: #174EA6;\n", | |
" }\n", | |
"\n", | |
" [theme=dark] .colab-df-convert {\n", | |
" background-color: #3B4455;\n", | |
" fill: #D2E3FC;\n", | |
" }\n", | |
"\n", | |
" [theme=dark] .colab-df-convert:hover {\n", | |
" background-color: #434B5C;\n", | |
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n", | |
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n", | |
" fill: #FFFFFF;\n", | |
" }\n", | |
" </style>\n", | |
"\n", | |
" <script>\n", | |
" const buttonEl =\n", | |
" document.querySelector('#df-5ab9c202-58fd-4c47-98f0-1e3f8f17c986 button.colab-df-convert');\n", | |
" buttonEl.style.display =\n", | |
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n", | |
"\n", | |
" async function convertToInteractive(key) {\n", | |
" const element = document.querySelector('#df-5ab9c202-58fd-4c47-98f0-1e3f8f17c986');\n", | |
" const dataTable =\n", | |
" await google.colab.kernel.invokeFunction('convertToInteractive',\n", | |
" [key], {});\n", | |
" if (!dataTable) return;\n", | |
"\n", | |
" const docLinkHtml = 'Like what you see? Visit the ' +\n", | |
" '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n", | |
" + ' to learn more about interactive tables.';\n", | |
" element.innerHTML = '';\n", | |
" dataTable['output_type'] = 'display_data';\n", | |
" await google.colab.output.renderOutput(dataTable, element);\n", | |
" const docLink = document.createElement('div');\n", | |
" docLink.innerHTML = docLinkHtml;\n", | |
" element.appendChild(docLink);\n", | |
" }\n", | |
" </script>\n", | |
" </div>\n", | |
" </div>\n", | |
" " | |
] | |
}, | |
"metadata": {}, | |
"execution_count": 32 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"# Best Method\n", | |
"best_metric2 = evaluation2[stat_level][metric].min()\n", | |
"best_method2 = evaluation2[evaluation2[stat_level][metric] == best_metric2].index[0]\n", | |
"print(f\"Benchmark {metric}: {benchmark_metric}\")\n", | |
"print(f\"Full Hierarchy >> Best {metric}: {best_metric} obtained using {best_method}\")\n", | |
"print(f\"Limited Hierarchy >> Best {metric}: {best_metric2} obtained using {best_method2}\")" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "-3Iuc0IK0yyS", | |
"outputId": "8c6f3644-3782-454b-dac8-5da29b755629" | |
}, | |
"execution_count": 33, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"Benchmark mse: 1565.79\n", | |
"Full Hierarchy >> Best mse: 1130.51 obtained using model1/ERM_method-closed_lambda_reg-0.01\n", | |
"Limited Hierarchy >> Best mse: 1163.41 obtained using model1/ERM_method-closed_lambda_reg-0.01\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": [ | |
"### Conclusion\n", | |
"\n", | |
"- With limited hierarchy, we are still able to reconcile but the results are not as good as the one with the full hierarchy. \n", | |
"- The addition of the full hierarchy adds extra \"useful\" information during the reconciliaton process.\n" | |
], | |
"metadata": { | |
"id": "fnuRSIYC4GJe" | |
} | |
}, | |
{ | |
"cell_type": "code", | |
"source": [], | |
"metadata": { | |
"id": "N_iEp-EI6dew" | |
}, | |
"execution_count": 33, | |
"outputs": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment