Skip to content

Commit

Permalink
Merge pull request #32 from databricks-industry-solutions/add-require…
Browse files Browse the repository at this point in the history
…ments

updated-recommended-cluster-configuration
  • Loading branch information
ryuta-yoshimatsu authored Jan 7, 2025
2 parents cc436b9 + 1078ae7 commit a24afbe
Show file tree
Hide file tree
Showing 6 changed files with 462 additions and 6 deletions.
96 changes: 96 additions & 0 deletions 00_intro.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"inputWidgets": {},
"nuid": "2bb220eb-b4b5-46d8-a9a0-6e6331a01d46",
"showTitle": false,
"tableResultSettingsMap": {},
"title": ""
}
},
Expand All @@ -29,6 +30,7 @@
"inputWidgets": {},
"nuid": "92a25ef9-1b17-4f26-a615-ad66f051c1e1",
"showTitle": false,
"tableResultSettingsMap": {},
"title": ""
}
},
Expand Down Expand Up @@ -73,6 +75,7 @@
"inputWidgets": {},
"nuid": "3d527009-ad2d-4239-a427-37eabe35a6d6",
"showTitle": false,
"tableResultSettingsMap": {},
"title": ""
}
},
Expand Down Expand Up @@ -119,6 +122,70 @@
"This data has been simulated and the promotional offer influence \"ground truth\" is therefore known."
]
},
{
"cell_type": "markdown",
"metadata": {
"application/vnd.databricks.v1+cell": {
"cellMetadata": {
"byteLimit": 2048000,
"rowLimit": 10000
},
"inputWidgets": {},
"nuid": "799e931d-8298-4023-bfee-1cc53e7b2746",
"showTitle": false,
"tableResultSettingsMap": {},
"title": ""
}
},
"source": [
"## Cluster Configuration\n",
"We recommend using a cluster with the following or similar specifications to run this solution accelerator:\n",
"- Unity Catalog enabled cluster\n",
"- Databricks Runtime 15.4 LTS ML or above\n",
"- Single-node cluster: e.g. `m5d.2xlarge` on AWS or `Standard_D8ds_v5` on Azure Databricks"
]
},
{
"cell_type": "markdown",
"metadata": {
"application/vnd.databricks.v1+cell": {
"cellMetadata": {
"byteLimit": 2048000,
"rowLimit": 10000
},
"inputWidgets": {},
"nuid": "af48cf73-d7f3-46e7-8651-9402b6d4babb",
"showTitle": false,
"tableResultSettingsMap": {},
"title": ""
}
},
"source": [
"## Install Dependencies"
]
},
{
"cell_type": "code",
"execution_count": 0,
"metadata": {
"application/vnd.databricks.v1+cell": {
"cellMetadata": {
"byteLimit": 2048000,
"rowLimit": 10000
},
"inputWidgets": {},
"nuid": "15b2add3-3894-4bc1-99bb-8c0e2582ebda",
"showTitle": true,
"tableResultSettingsMap": {},
"title": "Install requirements"
}
},
"outputs": [],
"source": [
"%pip install -r ./requirements.txt --quiet\n",
"dbutils.library.restartPython()"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand All @@ -130,6 +197,7 @@
"inputWidgets": {},
"nuid": "500f91de-740e-4cc9-b63b-2f81a77a9899",
"showTitle": false,
"tableResultSettingsMap": {},
"title": ""
}
},
Expand All @@ -153,7 +221,11 @@
"inputWidgets": {},
"nuid": "7074a071-e301-4043-9d1d-2a90ee4f95e5",
"showTitle": true,
"tableResultSettingsMap": {},
"title": "Loading helper functions"
},
"jupyter": {
"outputs_hidden": true
}
},
"outputs": [],
Expand All @@ -173,6 +245,7 @@
"inputWidgets": {},
"nuid": "195ac730-282a-43a9-9e60-04f0ac322c19",
"showTitle": true,
"tableResultSettingsMap": {},
"title": "Obtaining summary statistics of the dataset"
}
},
Expand All @@ -196,6 +269,7 @@
"inputWidgets": {},
"nuid": "4f30d5af-d4a0-4191-8d73-c7b4f52f15f6",
"showTitle": false,
"tableResultSettingsMap": {},
"title": ""
}
},
Expand Down Expand Up @@ -237,6 +311,7 @@
"inputWidgets": {},
"nuid": "3f16324b-38db-4c66-8eda-32bf209db06b",
"showTitle": true,
"tableResultSettingsMap": {},
"title": "Display a box plot of each promotional offer vs Revenue (1 = incentive was provided)"
}
},
Expand All @@ -259,6 +334,7 @@
"inputWidgets": {},
"nuid": "ad77ecd0-6ee3-4d25-8940-872490e6726a",
"showTitle": false,
"tableResultSettingsMap": {},
"title": ""
}
},
Expand All @@ -280,6 +356,7 @@
"inputWidgets": {},
"nuid": "eea443a9-4080-44cc-96cc-161d579b970e",
"showTitle": true,
"tableResultSettingsMap": {},
"title": "Checking correlations among the distributions of the numerical features"
}
},
Expand All @@ -299,6 +376,7 @@
"inputWidgets": {},
"nuid": "0ffc2283-43d0-4444-91a7-9108753aa370",
"showTitle": false,
"tableResultSettingsMap": {},
"title": ""
}
},
Expand All @@ -320,6 +398,7 @@
"inputWidgets": {},
"nuid": "683c13aa-0615-4a7e-b131-aa6754fb48df",
"showTitle": true,
"tableResultSettingsMap": {},
"title": "Displaying box plots for numerical features vs Revenue"
}
},
Expand All @@ -343,6 +422,7 @@
"inputWidgets": {},
"nuid": "8bef3897-24b1-48c2-b944-bf2054bcecf7",
"showTitle": false,
"tableResultSettingsMap": {},
"title": ""
}
},
Expand All @@ -361,6 +441,7 @@
"inputWidgets": {},
"nuid": "40f7a244-6869-49ca-9d90-92c071fe2c1b",
"showTitle": false,
"tableResultSettingsMap": {},
"title": ""
}
},
Expand All @@ -382,6 +463,7 @@
"inputWidgets": {},
"nuid": "68e88377-88ed-40a2-b435-e559d6d7af44",
"showTitle": true,
"tableResultSettingsMap": {},
"title": "Displaying customer \"PC count\" vs \"Size\" vs Incentive provided "
}
},
Expand All @@ -403,6 +485,7 @@
"inputWidgets": {},
"nuid": "15f56bdb-4beb-4fe6-9a61-a495da7d5dc3",
"showTitle": false,
"tableResultSettingsMap": {},
"title": ""
}
},
Expand All @@ -423,6 +506,7 @@
"inputWidgets": {},
"nuid": "32ad0039-f35e-4686-ad50-87dfaf65db1c",
"showTitle": false,
"tableResultSettingsMap": {},
"title": ""
}
},
Expand Down Expand Up @@ -453,6 +537,7 @@
"inputWidgets": {},
"nuid": "6541a350-62cf-4f12-ae86-2a0bf0789829",
"showTitle": false,
"tableResultSettingsMap": {},
"title": ""
}
},
Expand All @@ -471,6 +556,7 @@
"inputWidgets": {},
"nuid": "401f0dcc-4f88-4a51-a339-979af7c8cf1c",
"showTitle": false,
"tableResultSettingsMap": {},
"title": ""
}
},
Expand All @@ -487,14 +573,24 @@
],
"metadata": {
"application/vnd.databricks.v1+notebook": {
"computePreferences": null,
"dashboards": [],
"environmentMetadata": null,
"language": "python",
"notebookMetadata": {
"mostRecentlyExecutedCommandWithImplicitDF": {
"commandId": 1375557022084006,
"dataframes": [
"_sqldf"
]
},
"pythonIndentUnit": 2
},
"notebookName": "00_intro",
"widgets": {}
},
"language_info": {
"name": "python"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit a24afbe

Please sign in to comment.