Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Making new predictions #8

Open
slakkur1 opened this issue Aug 22, 2017 · 2 comments
Open

Making new predictions #8

slakkur1 opened this issue Aug 22, 2017 · 2 comments

Comments

@slakkur1
Copy link

This is extremely helpful code, thanks for sharing! I have a bit of a hypothetical question. Let's say that after training the agent using your code I want to be able to predict the q-values for moving to the right or left given a new combination of inputs. (i.e. do some type of model.predict(new_input), or test the code on new data). Where in the code would this go? Could you do model.predict(new_input) at the end of your main function outside of the for loop?

I ask because I wonder where the model parameters are being saved and if this affects where you call model.predict(new_input) for new data. Let me know if anything is unclear!

@adibyte95
Copy link

have you found out a solution to this

@WorksWellWithOthers
Copy link

The way this code is written you would not be able to access the model outside of the class object.
There would be many ways we could about this but it is outside the scope of this library.

Python Classes

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