Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One random number for two parameters #46

Open
123qweas opened this issue May 29, 2018 · 1 comment
Open

One random number for two parameters #46

123qweas opened this issue May 29, 2018 · 1 comment

Comments

@123qweas
Copy link

123qweas commented May 29, 2018

So I wanted to have one random number generated for the historySize and for the min_predictions (from neuralnet strategy).
I tried it with

predictions: [randomExt.integer(240, 1)]
getProperties: () => ({

min_predictions: randomExt.pick(config.predictions)
historySize:  randomExt.pick(config.predictions)
 })

It didn't work...
Both had the same random number but each epoch hat the same.
I think that the random number that is calculated ones stays the same for the whole time the config is executed.
Do one of you know a solution for my problem?
Thanks!

@raimannma
Copy link

getProperties: () => ({
    min_predictions: randomExt.integer(240, 1)
    historySize:  this.min_predictions
 })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants