Skip to content

Commit

Permalink
Merge pull request #6 from toonsevrin/patch-1
Browse files Browse the repository at this point in the history
Typo in notebook example
  • Loading branch information
fmder committed Nov 13, 2021
2 parents 36a8ca4 + 2c07804 commit 6ce4054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OneMax.ipynb
Expand Up @@ -120,7 +120,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"In the last block of code we created a toolbox object and registered three functions. This first one, `attr_bool`, calls randint from the random module with arguments (0, 1) to create an integer in the interval $[0, 1]$. The second function, `individual`, when called, will use the initRepeat function made available in the tools module to fill an `Individual` class with what is produced by 100 calls to the previously defined `attr_bool` function. The same thing is done for the `population` function.\n",
"In the last block of code we created a toolbox object and registered three functions. This first one, `attr_bool`, calls randint from the random module with arguments (0, 1) to create an integer in the interval $[0, 1]$. The second function, `individual`, when called, will use the initRepeat function made available in the tools module to fill an `Individual` class with what is produced by 10 calls to the previously defined `attr_bool` function. The same thing is done for the `population` function.\n",
"\n",
"For example, calling every function individually shows how it proceeds."
]
Expand Down

0 comments on commit 6ce4054

Please sign in to comment.