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

Loading Saved Model #14

Open
best12112 opened this issue Nov 5, 2024 · 1 comment
Open

Loading Saved Model #14

best12112 opened this issue Nov 5, 2024 · 1 comment

Comments

@best12112
Copy link

Hi, I'm trying to load best.keras, however whenever I try training again it resets the model. I changed modelFile in dqnAgent to match the file name is there anything else that needs to be done?

@nuno-faria
Copy link
Owner

Hi, to load a model you can use the run_model.py script as such:

python3 run_model.py best.keras

The run.py is only designed to train a model. However, you can also manually set the model file to the existing model and set the epsilon_stop_episode to 0 to avoid the random exploration.

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