diff --git a/docs/img/price_performance.png b/docs/img/price_performance.png new file mode 100644 index 0000000..00eb0ba Binary files /dev/null and b/docs/img/price_performance.png differ diff --git a/docs/img/weights.png b/docs/img/weights.png new file mode 100644 index 0000000..12d07dd Binary files /dev/null and b/docs/img/weights.png differ diff --git a/readme.md b/readme.md index 7e5fe13..1570422 100644 --- a/readme.md +++ b/readme.md @@ -92,7 +92,20 @@ env = PortfolioEnv( output_mode='mlp' ) + +# Let run it with random actions then plot +for _ in tqdm(range(50)): + action = env.action_space.sample() + action /= action.sum() + + state, reward, done, info = env.step(action) + if done: + break + +env.render('notebook') ``` +![](docs/img/price_performance.png) +![](docs/img/weights.png) # Tests