1
0
mirror of https://github.com/gsi-upm/sitc synced 2024-12-22 11:48:12 +00:00

Update 2_6_Model_Tuning.ipynb

Fixed typo.
This commit is contained in:
Carlos A. Iglesias 2022-02-28 12:51:18 +01:00 committed by GitHub
parent 11a1ea80d3
commit a7c6be5b96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -314,7 +314,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Changing manually the hyperparameters to find their optimal values is not practical. Instead, we can consider to find the optimal value of the parameters as an *optimization problem*. \n",
"Changing manually the hyperparameters to find their optimal values is not practical. Instead, we can consider to find the optimal value of the hyperparameters as an *optimization problem*. \n",
"\n",
"The sklearn comes with several optimization techniques for this purpose, such as **grid search** and **randomized search**. In this notebook we are going to introduce the former one."
]
@ -323,7 +323,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The sklearn provides an object that, given data, computes the score during the fit of an estimator on a parameter grid and chooses the parameters to maximize the cross-validation score. "
"The sklearn provides an object that, given data, computes the score during the fit of an estimator on a hyperparameter grid and chooses the hyperparameters to maximize the cross-validation score. "
]
},
{
@ -371,7 +371,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"We can now evaluate the KFold with this optimized parameter as follows."
"We can now evaluate the KFold with this optimized hyperparameter as follows."
]
},
{
@ -431,7 +431,7 @@
"scores = ['precision', 'recall']\n",
"\n",
"for score in scores:\n",
" print(\"# Tuning hyper-hyperparameters for %s\" % score)\n",
" print(\"# Tuning hyperparameters for %s\" % score)\n",
" print()\n",
"\n",
" if score == 'precision':\n",