Lag initialization on Hyperparam.Evolutive
This commit is contained in:
parent
2e1d7fa11a
commit
a0af21d4b9
@ -42,13 +42,14 @@ def random_genotype():
|
|||||||
:return: the genotype, a dictionary with all hyperparameters
|
:return: the genotype, a dictionary with all hyperparameters
|
||||||
'''
|
'''
|
||||||
order = random.randint(1, 3)
|
order = random.randint(1, 3)
|
||||||
|
lags = [k for k in np.arange(1, order+1)]
|
||||||
return genotype(
|
return genotype(
|
||||||
random.randint(1, 4),
|
random.randint(1, 4),
|
||||||
random.randint(10, 100),
|
random.randint(10, 100),
|
||||||
random.randint(1, 2),
|
random.randint(1, 2),
|
||||||
order,
|
order,
|
||||||
random.uniform(0, .5),
|
random.uniform(0, .5),
|
||||||
sorted(random.sample(range(1, 50), order)),
|
lags,
|
||||||
None,
|
None,
|
||||||
None
|
None
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user