forked from hiive/mlrose
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor all fitness functions (in progress)
- Add type hints for all methods/functions - Refactor file and method/function docstrings - General code style improvements - Vectorize suboptimal code
- Loading branch information
1 parent
a228184
commit b634074
Showing
27 changed files
with
338 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
"""Classes for defining fitness functions (i.e., optimization problems) for optimization algorithms.""" | ||
|
||
from .continuous_peaks import ContinuousPeaks | ||
|
||
from .flip_flop import FlipFlop | ||
|
||
from .four_peaks import FourPeaks | ||
from .six_peaks import SixPeaks | ||
from .continuous_peaks import ContinuousPeaks | ||
from .one_max import OneMax | ||
from .max_k_color import MaxKColor | ||
|
||
from .knapsack import Knapsack | ||
|
||
from .max_k_color import MaxKColor | ||
|
||
from .one_max import OneMax | ||
|
||
from .queens import Queens | ||
from .travelling_sales import TravellingSales | ||
|
||
from .six_peaks import SixPeaks | ||
|
||
from .travelling_salesperson import TravellingSalesperson | ||
|
||
from .custom_fitness import CustomFitness |
4 changes: 2 additions & 2 deletions
4
mlrose_hiive/fitness/discrete_peaks_base.py → mlrose_hiive/fitness/_discrete_peaks_base.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.