Skip to content

Commit

Permalink
update files
Browse files Browse the repository at this point in the history
  • Loading branch information
ElcoK committed Feb 4, 2025
1 parent c927356 commit b8db989
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions week2/tutorial1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1011,8 +1011,7 @@
},
"outputs": [],
"source": [
"#dataOLS = pd.read_csv(r\"https://github.com/ElcoK/BigData_AED/raw/main/week2/usadataforOLS_updatejan25.csv\", sep = ',', encoding = 'unicode_escape')\n",
"dataOLS = pd.read_csv(r\"usadataforOLS_updatejan25.csv\", sep = ',', encoding = 'unicode_escape')"
"dataOLS = pd.read_csv(r\"https://github.com/ElcoK/BigData_AED/raw/main/week2/usadataforOLS.csv\", sep = ',', encoding = 'unicode_escape')"
]
},
{
Expand Down
3 changes: 1 addition & 2 deletions week2/tutorial2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,6 @@
},
"outputs": [],
"source": [
"datanan = datanan.fillna(0)\n",
"training_data, testing_data = train_test_split(datanan, test_size=0.3, random_state=25)"
]
},
Expand Down Expand Up @@ -643,7 +642,7 @@
"id": "Y-xji2g9srHk"
},
"source": [
"The R2 score is pretty low, so we want to try other hyperparameters. We will change the depth and the number of trees in the forest. In the code below, we run a for loop that tries 3 different n_estimators and 3 different depths, so we estimate 9 different random forest models. We save the mse and r2 of each model in a list, i.e. list_mse and list_r2. It'll take a minute or two to run. \n"
"The R2 score is pretty low, so we want to try other hyperparameters. We will change the depth and the number of trees in the forest. In the code below, we run a for loop that tries 2 different n_estimators and 3 different depths, so we estimate 6 different random forest models. We save the mse and r2 of each model in a list, i.e. list_mse and list_r2. It'll take a minute or two to run. \n"
]
},
{
Expand Down

0 comments on commit b8db989

Please # to comment.