Skip to content

Commit bb5978f

Browse files
new version
1 parent f51b91e commit bb5978f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

initialize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def __init__(self):
4646
self.test_name_ = '_test'
4747
#String added to the results file name
4848

49-
self.training_ = 3 #Lenght in months of training period (put 18)
50-
self.test_ = 3 #Lenght in months of testing period (put 9)
49+
self.training_ = 18 #Lenght in months of training period (put 18)
50+
self.test_ = 9 #Lenght in months of testing period (put 9)
5151
self.dict_name_ = {self.training_name_:self.training_,self.test_name_:self.test_}
5252
self.train_param= [] #Optimized training parameters used for the test period
5353

optimize/genetic_algorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class GenAlgo(PnL):
99
""" Genetic algo that return the parameter `self.op_param` and pnl `self.pnl_dict` for the best chromosome
1010
"""
1111

12-
def __init__(self,self_, min_results = 3, size_population = 10, generations = 3, co_rate = .6,
12+
def __init__(self,self_, min_results = 10, size_population = 20, generations = 25, co_rate = .6,
1313
mutation_rate = .10, fitness_level = 3):
1414
""" Setting the parameters here"""
1515

0 commit comments

Comments
 (0)