wip
This commit is contained in:
parent
354dcfd341
commit
c6d33555ec
5 changed files with 25 additions and 9 deletions
|
|
@ -1,16 +1,13 @@
|
|||
use bot::burnrl::{dqn_model, environment, utils::demo_model};
|
||||
use burn::backend::{Autodiff, NdArray};
|
||||
use burn_rl::base::ElemType;
|
||||
use bot::burnrl::{
|
||||
dqn_model,
|
||||
environment,
|
||||
utils::demo_model,
|
||||
};
|
||||
|
||||
type Backend = Autodiff<NdArray<ElemType>>;
|
||||
type Env = environment::TrictracEnvironment;
|
||||
|
||||
fn main() {
|
||||
let agent = dqn_model::run::<Env, Backend>(512, false); //true);
|
||||
let num_episodes = 3;
|
||||
let agent = dqn_model::run::<Env, Backend>(num_episodes, false); //true);
|
||||
|
||||
demo_model::<Env>(agent);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue