Skip to content

Commit

Permalink
Merge pull request #157 from rodrigo-arenas/0.11.1
Browse files Browse the repository at this point in the history
0.11.1
  • Loading branch information
rodrigo-arenas authored Sep 17, 2024
2 parents b22e550 + 87cdbe0 commit f9a643a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions docs/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ Release Notes

Some notes on new features in various releases

What's new in 0.11.1
--------------------

^^^^^^^^^^
Bug Fixes:
^^^^^^^^^^

* Fixed a bug that would generate AttributeError: 'GASearchCV' object has no attribute 'creator'


What's new in 0.11.0
--------------------

Expand Down
2 changes: 1 addition & 1 deletion sklearn_genetic/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.11.0"
__version__ = "0.11.1"
4 changes: 2 additions & 2 deletions sklearn_genetic/genetic_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ def _register(self):
"""
self.toolbox = base.Toolbox()

self.creator.create("FitnessMax", base.Fitness, weights=[self.criteria_sign, 1.0])
self.creator.create("Individual", list, fitness=creator.FitnessMax)
creator.create("FitnessMax", base.Fitness, weights=[self.criteria_sign, 1.0])
creator.create("Individual", list, fitness=creator.FitnessMax)


attributes = []
Expand Down

0 comments on commit f9a643a

Please sign in to comment.