Skip to content

Commit

Permalink
Added requirements file and tested the nbs
Browse files Browse the repository at this point in the history
  • Loading branch information
cemsaz committed Nov 3, 2021
1 parent a9e3c78 commit a075206
Show file tree
Hide file tree
Showing 22 changed files with 882 additions and 2,634 deletions.
31 changes: 20 additions & 11 deletions assignments/DTE-LECTURE-1-ASSIGNMENT-SOLN.ipynb

Large diffs are not rendered by default.

27 changes: 18 additions & 9 deletions assignments/DTE-LECTURE-1-ASSIGNMENT.ipynb

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion assignments/DTE-LECTURE-2-ASSIGNMENT-SOLN.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@
"Now that we know how decision trees work, we want to start thinking about ensembling, and how to bring many models together. In particular, we'll take a look at ExtraTrees, and try to understand explicitly how the bias variance trade-off works."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"! pip install -q -r ../requirements.txt"
]
},
{
"cell_type": "code",
"execution_count": 1,
Expand Down Expand Up @@ -690,7 +699,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.10"
"version": "3.6.13"
}
},
"nbformat": 4,
Expand Down
11 changes: 10 additions & 1 deletion assignments/DTE-LECTURE-2-ASSIGNMENT.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@
"Now that we know how decision trees work, we want to start thinking about ensembling, and how to bring many models together. In particular, we'll take a look at ExtraTrees, and try to understand explicitly how the bias variance trade-off works."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"! pip install -q -r ../requirements.txt"
]
},
{
"cell_type": "code",
"execution_count": 1,
Expand Down Expand Up @@ -270,7 +279,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.10"
"version": "3.6.13"
}
},
"nbformat": 4,
Expand Down
11 changes: 10 additions & 1 deletion assignments/DTE-LECTURE-3-ASSIGNMENT-SOLN.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@
"We're going to be digging in to random forests, and seeing how they provide extreme improvements in both computational efficiency and generalization errors."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"! pip install -q -r ../requirements.txt"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -682,7 +691,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.10"
"version": "3.6.13"
}
},
"nbformat": 4,
Expand Down
11 changes: 10 additions & 1 deletion assignments/DTE-LECTURE-3-ASSIGNMENT.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@
"We're going to be digging in to random forests, and seeing how they provide extreme improvements in both computational efficiency and generalization errors."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"! pip install -q -r ../requirements.txt"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -269,7 +278,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.10"
"version": "3.6.13"
}
},
"nbformat": 4,
Expand Down
11 changes: 10 additions & 1 deletion assignments/DTE-LECTURE-4-ASSIGNMENT-SOLN.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@
"We'll see how to implement proximities."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"! pip install -q -r ../requirements.txt"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -432,7 +441,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.10"
"version": "3.6.13"
}
},
"nbformat": 4,
Expand Down
11 changes: 10 additions & 1 deletion assignments/DTE-LECTURE-4-ASSIGNMENT.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@
"We'll see how to implement proximities."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"! pip install -q -r ../requirements.txt"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -214,7 +223,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.10"
"version": "3.6.13"
}
},
"nbformat": 4,
Expand Down
13 changes: 11 additions & 2 deletions assignments/DTE-LECTURE-5-ASSIGNMENT.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,21 @@
"Here are the links for the Boosting methods with discussed in the class:\n",
"* __XGBoost:__ Extreme gradient boosting with [documentation](https://xgboost.readthedocs.io/en/latest/) and [paper](https://arxiv.org/pdf/1603.02754.pdf)\n",
"* __LightGBM:__ LightGBM with [documentation](https://lightgbm.readthedocs.io/en/latest/) and [paper](https://papers.nips.cc/paper/6907-lightgbm-a-highly-efficient-gradient-boosting-decision-tree.pdf)\n",
"* __CatBoost:__ CatBoost with [documentation](https://catboost.ai/docs/concepts/about.html) and [paper](https://arxiv.org/pdf/1706.09516.pdf)\n",
"* __CatBoost:__ CatBoost with [documentation](https://catboost.ai/en/docs/) and [paper](https://arxiv.org/pdf/1706.09516.pdf)\n",
"\n",
"## This Assignment's Goals\n",
"This assignment's goal is to use a boosting method on your final project."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"! pip install -q -r ../requirements.txt"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -509,7 +518,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.10"
"version": "3.6.13"
}
},
"nbformat": 4,
Expand Down
29 changes: 19 additions & 10 deletions notebooks/final_project/DTE-FINAL-PROJECT.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@
"- __Time at Center__ - Time at center (0 = less than 30 days; 1 = more than 30 days). This is the value to predict. "
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"! pip install -q -r ../../requirements.txt"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -58,7 +67,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -104,7 +113,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -258,7 +267,7 @@
"4 365 0 "
]
},
"execution_count": 2,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -271,7 +280,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -419,7 +428,7 @@
"4 Blue/White 210 "
]
},
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -440,7 +449,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -461,7 +470,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 6,
"metadata": {
"scrolled": true
},
Expand All @@ -480,7 +489,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 7,
"metadata": {
"scrolled": true
},
Expand All @@ -501,7 +510,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -527,7 +536,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.10"
"version": "3.6.13"
}
},
"nbformat": 4,
Expand Down
27 changes: 18 additions & 9 deletions notebooks/lecture_1/DTE-LECTURE-1-PRUNE.ipynb

Large diffs are not rendered by default.

41 changes: 29 additions & 12 deletions notebooks/lecture_2/DTE-LECTURE-2-TREE-VARIANCE.ipynb

Large diffs are not rendered by default.

27 changes: 18 additions & 9 deletions notebooks/lecture_3/DTE-LECTURE-3-BAGGING-OVERFIT.ipynb

Large diffs are not rendered by default.

47 changes: 28 additions & 19 deletions notebooks/lecture_3/DTE-LECTURE-3-BOOTSTRAP.ipynb

Large diffs are not rendered by default.

244 changes: 138 additions & 106 deletions notebooks/lecture_3/DTE-LECTURE-3-RANDOM-FOREST.ipynb

Large diffs are not rendered by default.

23 changes: 16 additions & 7 deletions notebooks/lecture_3/DTE-LECTURE-3-TREE-CORRELATION.ipynb

Large diffs are not rendered by default.

748 changes: 422 additions & 326 deletions notebooks/lecture_4/DTE-LECTURE-4-FEATURE-IMPORTANCE.ipynb

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion notebooks/lecture_4/DTE-LECTURE-4-PERMUTATION-FEATURE-IMP.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@
"![MLU Logo](../../data/MLU_Logo.png)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"! pip install -q -r ../../requirements.txt"
]
},
{
"cell_type": "code",
"execution_count": 1,
Expand Down Expand Up @@ -33078,7 +33087,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.10"
"version": "3.6.13"
}
},
"nbformat": 4,
Expand Down
15 changes: 12 additions & 3 deletions notebooks/lecture_5/DTE-LECTURE-5-BOOSTING.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit a075206

Please sign in to comment.