Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Can't find the strategy in batch mode #11

Open
chaostica opened this issue Jun 27, 2019 · 4 comments
Open

Can't find the strategy in batch mode #11

chaostica opened this issue Jun 27, 2019 · 4 comments

Comments

@chaostica
Copy link

There must be something I'm missing. I keep getting "ERROR: can't find strategy" when trying to run batch. I've tried installing and setting up numerous times on MacOS and Ubuntu without success. I've limited the batch to neuralnet_v2. The log shows the following:
uncaughtException TypeError: Cannot read property 'learning_rate' of undefined
at Base.init (/home/dbw/gekko/strategies/neuralnet_v2.js:70:36)

The address shown is correct for the strategy, but the error suggests that it's looking for the toml. I've tried setting it up to read the parameters directly from the batcher config, but I get the same errors.
I think I've followed the install and setup instuctions exactly, so I'm stumped. Can you help?

@nick-dolan
Copy link
Owner

Hey @chaostica! In other strategies such a mistake too? Is this strategy https://github.com/xFFFFF/Gekko-Strategies/tree/master/neuralnet_v2? I just copied and run. I have no errors, and the settings took from .toml path config/strategies. Did you set up config.gekkoPath correctly?

@chaostica
Copy link
Author

Sorry, I haven't been able to get back to this until now. I just tried again with a fresh copy of batcher in a fresh Ubuntu install. I still get "ERROR: Cannot find Gekko's config file". In the batcher config file it says:
config.gekkoPath = '../gekko/'
config.gekkoConfigFileName = 'config.js'
The gekko directory is /home/dbw/gekko
The gekko config is /home/dbw/gekko/config.js
The gekko-batcher is at /home/dbw/gekko/gekko-batcher
I followed exactly your instructions when setting up batcher.
The settings say config.configPriorityLocations = ['gekko-toml', 'batcher', 'gekko']
This doesn't seem to have anything to do with the strategies selected. If it can't find the gekko config file it's not going to get anywhere.
Any ideas?

Daniel

@nick-dolan
Copy link
Owner

Hey, no problem. gekko-batcher and gekko folders should be at one level directory. config.gekkoPath = '../gekko/' does mean go back to parent directory and enter gekko folder. So gekko-batcher should be at /home/dbw/gekko-batcher.

.
├── gekko
├── gekko-batcher

@FreshLondon
Copy link

FreshLondon commented Mar 2, 2020

Hey, no problem. gekko-batcher and gekko folders should be at one level directory. config.gekkoPath = '../gekko/' does mean go back to parent directory and enter gekko folder. So gekko-batcher should be at /home/dbw/gekko-batcher.

.
├── gekko
├── gekko-batcher

it's a bit late for you but if anyone see's this, yes - the gekko and gekko-batcher need to sit side by side and not inside one another.
On the config.gekkoPath in the gekko-batcher config file the ../ goes up a directory and then the gekko is the folder name within that directory - meaning if you have a different folder name for gekko you would have to change the path to ../YourFolderNameHere/ (in my case i've called it GreenGekko, so my path is ) ../GreenGekko/

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

No branches or pull requests

3 participants