mirror of
https://github.com/gsi-upm/sitc
synced 2025-04-24 13:49:05 +00:00
Compare commits
12 Commits
c49c866a2e
...
4e0f9159e8
Author | SHA1 | Date | |
---|---|---|---|
|
4e0f9159e8 | ||
|
82aa552976 | ||
|
3ebff69cf8 | ||
|
0f228bbec3 | ||
|
64c8854741 | ||
|
3e081e5d83 | ||
|
065797b886 | ||
|
8d2f625b7e | ||
|
26eda30a71 | ||
|
55365ae927 | ||
|
152125b3da | ||
|
97362545ea |
@ -48,7 +48,7 @@
|
||||
"# Introduction\n",
|
||||
"The purpose of this practice is to understand better how GAs work. \n",
|
||||
"\n",
|
||||
"There are many libraries that implement GAs, you can find some of then in the [References](#References) section."
|
||||
"There are many libraries that implement GAs; you can find some of them in the [References](#References) section."
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -56,7 +56,7 @@
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# Genetic Algorithms\n",
|
||||
"In this section we are going to use the library DEAP [[References](#References)] for implementing a genetic algorithms.\n",
|
||||
"In this section, we are going to use the library [DEAP](https://github.com/DEAP/deap/tree/master) for implementing a genetic algorithms.\n",
|
||||
"\n",
|
||||
"We are going to implement the OneMax problem as seen in class.\n",
|
||||
"\n",
|
||||
@ -200,22 +200,13 @@
|
||||
"source": [
|
||||
"## Optional. Optimizing ML hyperparameters\n",
|
||||
"\n",
|
||||
"One of the applications of Genetic Algorithms is the optimization of ML hyperparameters. Previously we have used GridSearch from Scikit. Using (sklearn-deap)[[References](#References)], optimize the Titatic hyperparameters using both GridSearch and Genetic Algorithms. \n",
|
||||
"One of the applications of Genetic Algorithms is the optimization of ML hyperparameters. Previously, we have used GridSearch from Scikit. Using [sklearn-deap](https://github.com/rsteca/sklearn-deap), optimize the Titatic hyperparameters using both GridSearch and Genetic Algorithms. \n",
|
||||
"\n",
|
||||
"The same exercise (using the digits dataset) can be found in this [notebook](https://github.com/rsteca/sklearn-deap/blob/master/test.ipynb).\n",
|
||||
"\n",
|
||||
"Submit a notebook where you include well-crafted conclusions about the exercises, discussing the pros and cons of using genetic algorithms for this purpose.\n",
|
||||
"Since there is a problem with Scikit version 0.24, you can just comment on the different approaches.",
|
||||
"\n",
|
||||
"Note: There is a problem with Scikit version 0.24. Comment on the different approaches."
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# Optional exercises\n",
|
||||
"\n",
|
||||
"Here there is a proposed optional exercise."
|
||||
"Alternatively, you can also use the library [sklearn-genetic-opt](https://sklearn-genetic-opt.readthedocs.io/en/stable/index.html) and discuss the digit classification example included in the library: [digits decision tree](https://sklearn-genetic-opt.readthedocs.io/en/stable/notebooks/Digits_decision_tree.html)."
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -224,7 +215,7 @@
|
||||
"source": [
|
||||
"## Optional. Optimizing an ML pipeline with a genetic algorithm\n",
|
||||
"\n",
|
||||
"The library [TPOT](#References) optimizes ML pipelines and comes with a lot of (examples)[https://epistasislab.github.io/tpot/examples/] and even notebooks, for example for the [iris dataset](https://github.com/EpistasisLab/tpot/blob/master/tutorials/IRIS.ipynb).\n",
|
||||
"The library [TPOT](https://epistasislab.github.io/tpot/latest/) optimizes ML pipelines and comes with a lot of [examples](https://epistasislab.github.io/tpot/latest/Tutorial/9_Genetic_Algorithm_Overview/) and even notebooks, for example for the [iris dataset](https://github.com/EpistasisLab/tpot/blob/master/tutorials/IRIS.ipynb).\n",
|
||||
"\n",
|
||||
"Your task is to apply TPOT to the intermediate challenge and write a short essay explaining:\n",
|
||||
"* what TPOT does (with your own words).\n",
|
||||
@ -242,7 +233,8 @@
|
||||
"* [tpot](http://epistasislab.github.io/tpot/)\n",
|
||||
"* [gplearn](http://gplearn.readthedocs.io/en/latest/index.html)\n",
|
||||
"* [scikit-allel](https://scikit-allel.readthedocs.io/en/latest/)\n",
|
||||
"* [scklearn-genetic](https://github.com/manuel-calzolari/sklearn-genetic)"
|
||||
"* [sklearn-genetic](https://github.com/manuel-calzolari/sklearn-genetic)\n",
|
||||
"* [sklearn-genetic-opt](https://sklearn-genetic-opt.readthedocs.io/en/stable/)"
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -256,7 +248,7 @@
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"The notebook is freely licensed under under the [Creative Commons Attribution Share-Alike license](https://creativecommons.org/licenses/by/2.0/). \n",
|
||||
"The notebook is freely licensed under the [Creative Commons Attribution Share-Alike license](https://creativecommons.org/licenses/by/2.0/). \n",
|
||||
"\n",
|
||||
"© Carlos A. Iglesias, Universidad Politécnica de Madrid."
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user