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

Saved model file does not load #16

Open
josefczyz opened this issue May 11, 2021 · 0 comments
Open

Saved model file does not load #16

josefczyz opened this issue May 11, 2021 · 0 comments

Comments

@josefczyz
Copy link

Loading the saved .csv model file failed if we trained model with more generations than are weights in level L0.

Method in SnakeAI.pde:
void fileSelectedIn(File selection)

157:
while(genscore != 0)

it should be
while((genscore != 0) & (g<modelTable.getRowCount()-1))

E.g. For topology 1x4 we have 25x4 L0 weights => rows in saved output .csv file
If the simulation is performed for more than 100 generations (101) than 100th row in saved .csv file it will have in Graph column genscore<>0 and 101st row will not exist. An error exception will be thrown and the model will not be loaded.

It's just work around. In case we need a Graph of progress, the results of the score per generation should be saved in a separate file.

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

1 participant