Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswinder9051998 committed Sep 12, 2021
1 parent a4ac3df commit 0f1e972
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion zoofs/baseoptimizationalgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class BaseOptimizationAlgorithm(ABC):

def __init__(self,
objective_function,
n_iteration=50,
n_iteration: int = 1000,
timeout: int = None,
population_size=50,
minimize=True):
Expand Down
4 changes: 2 additions & 2 deletions zoofs/dragonflyoptimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class DragonFlyOptimization(BaseOptimizationAlgorithm):

def __init__(self,
objective_function,
n_iteration=50,
n_iteration: int = 1000,
timeout: int = None,
population_size=50,
minimize=True):
Expand All @@ -31,7 +31,7 @@ def __init__(self,
population_size: int, default=50
Total size of the population
n_iteration: int, default=50
n_iteration: int, default=1000
Number of time the Optimization algorithm will run
timeout: int = None
Expand Down
4 changes: 2 additions & 2 deletions zoofs/geneticoptimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class GeneticOptimization(BaseOptimizationAlgorithm):

def __init__(self,
objective_function,
n_iteration=20,
n_iteration: int = 1000,
timeout: int = None,
population_size=20,
selective_pressure=2,
Expand All @@ -30,7 +30,7 @@ def __init__(self,
objective_function : user made function of the signature 'func(model,X_train,y_train,X_test,y_test)'
The function must return a value, that needs to be minimized/maximized.
n_iteration : int, default=50
n_iteration : int, default=1000
Number of time the Optimization algorithm will run
timeout: int = None
Expand Down
4 changes: 2 additions & 2 deletions zoofs/gravitationaloptimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class GravitationalOptimization(BaseOptimizationAlgorithm):

def __init__(self,
objective_function,
n_iteration=50,
n_iteration: int = 1000,
timeout: int = None,
population_size=50,
g0=100,
Expand All @@ -30,7 +30,7 @@ def __init__(self,
objective_function : user made function of the signature 'func(model,X_train,y_train,X_test,y_test)'
The function must return a value, that needs to be minimized/maximized.
n_iteration : int, default=50
n_iteration : int, default=1000
Number of time the Optimization algorithm will run
timeout: int = None
Expand Down
4 changes: 2 additions & 2 deletions zoofs/greywolfoptimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class GreyWolfOptimization(BaseOptimizationAlgorithm):

def __init__(self,
objective_function,
n_iteration=50,
n_iteration: int = 1000,
timeout: int = None,
population_size=50,
minimize=True):
Expand All @@ -29,7 +29,7 @@ def __init__(self,
objective_function : user made function of the signature 'func(model,X_train,y_train,X_test,y_test)'
The function must return a value, that needs to be minimized/maximized.
n_iteration : int, default=50
n_iteration : int, default=1000
Number of time the Optimization algorithm will run
timeout: int = None
Expand Down
4 changes: 2 additions & 2 deletions zoofs/particleswarmoptimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ParticleSwarmOptimization(BaseOptimizationAlgorithm):

def __init__(self,
objective_function,
n_iteration: int = 50,
n_iteration: int = 1000,
timeout: int = None,
population_size=50,
minimize=True,
Expand All @@ -34,7 +34,7 @@ def __init__(self,
population_size: int, default=50
Total size of the population , default=50
n_iteration: int = 50
n_iteration: int, default=1000
Number of time the Particle Swarm Optimization algorithm will run
timeout: int = None
Expand Down

0 comments on commit 0f1e972

Please sign in to comment.