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

Train by individual steps #13

Closed
tqwewe opened this issue Dec 26, 2022 · 1 comment
Closed

Train by individual steps #13

tqwewe opened this issue Dec 26, 2022 · 1 comment

Comments

@tqwewe
Copy link

tqwewe commented Dec 26, 2022

Is it possible to train a single step at a time, so I can have it run within something like a bevy system?

It seems like the current train method is usually done with a certain amount of iterations, but perhaps a function step or train_step would be convenient?

@milanboers
Copy link
Owner

You could use FixedIterations::new(0) as your termination strategy.

You can repeatedly call AgentTrainer.train and it will continue with the currently learned values.

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