Skip to content

Commit 0f1e972

Browse files
bug fix
1 parent a4ac3df commit 0f1e972

6 files changed

+11
-11
lines changed

zoofs/baseoptimizationalgorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class BaseOptimizationAlgorithm(ABC):
1010

1111
def __init__(self,
1212
objective_function,
13-
n_iteration=50,
13+
n_iteration: int = 1000,
1414
timeout: int = None,
1515
population_size=50,
1616
minimize=True):

zoofs/dragonflyoptimization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class DragonFlyOptimization(BaseOptimizationAlgorithm):
1818

1919
def __init__(self,
2020
objective_function,
21-
n_iteration=50,
21+
n_iteration: int = 1000,
2222
timeout: int = None,
2323
population_size=50,
2424
minimize=True):
@@ -31,7 +31,7 @@ def __init__(self,
3131
population_size: int, default=50
3232
Total size of the population
3333
34-
n_iteration: int, default=50
34+
n_iteration: int, default=1000
3535
Number of time the Optimization algorithm will run
3636
3737
timeout: int = None

zoofs/geneticoptimization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class GeneticOptimization(BaseOptimizationAlgorithm):
1717

1818
def __init__(self,
1919
objective_function,
20-
n_iteration=20,
20+
n_iteration: int = 1000,
2121
timeout: int = None,
2222
population_size=20,
2323
selective_pressure=2,
@@ -30,7 +30,7 @@ def __init__(self,
3030
objective_function : user made function of the signature 'func(model,X_train,y_train,X_test,y_test)'
3131
The function must return a value, that needs to be minimized/maximized.
3232
33-
n_iteration : int, default=50
33+
n_iteration : int, default=1000
3434
Number of time the Optimization algorithm will run
3535
3636
timeout: int = None

zoofs/gravitationaloptimization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class GravitationalOptimization(BaseOptimizationAlgorithm):
1818

1919
def __init__(self,
2020
objective_function,
21-
n_iteration=50,
21+
n_iteration: int = 1000,
2222
timeout: int = None,
2323
population_size=50,
2424
g0=100,
@@ -30,7 +30,7 @@ def __init__(self,
3030
objective_function : user made function of the signature 'func(model,X_train,y_train,X_test,y_test)'
3131
The function must return a value, that needs to be minimized/maximized.
3232
33-
n_iteration : int, default=50
33+
n_iteration : int, default=1000
3434
Number of time the Optimization algorithm will run
3535
3636
timeout: int = None

zoofs/greywolfoptimization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class GreyWolfOptimization(BaseOptimizationAlgorithm):
1919

2020
def __init__(self,
2121
objective_function,
22-
n_iteration=50,
22+
n_iteration: int = 1000,
2323
timeout: int = None,
2424
population_size=50,
2525
minimize=True):
@@ -29,7 +29,7 @@ def __init__(self,
2929
objective_function : user made function of the signature 'func(model,X_train,y_train,X_test,y_test)'
3030
The function must return a value, that needs to be minimized/maximized.
3131
32-
n_iteration : int, default=50
32+
n_iteration : int, default=1000
3333
Number of time the Optimization algorithm will run
3434
3535
timeout: int = None

zoofs/particleswarmoptimization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ParticleSwarmOptimization(BaseOptimizationAlgorithm):
1818

1919
def __init__(self,
2020
objective_function,
21-
n_iteration: int = 50,
21+
n_iteration: int = 1000,
2222
timeout: int = None,
2323
population_size=50,
2424
minimize=True,
@@ -34,7 +34,7 @@ def __init__(self,
3434
population_size: int, default=50
3535
Total size of the population , default=50
3636
37-
n_iteration: int = 50
37+
n_iteration: int, default=1000
3838
Number of time the Particle Swarm Optimization algorithm will run
3939
4040
timeout: int = None

0 commit comments

Comments
 (0)