Skip to content

An example for making highly customized environments in TensorTrade.

License

Notifications You must be signed in to change notification settings

mwbrulhardt/penv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Portfolio Allocation with TensorTrade

This project serves as a guide for how to make more complex environments in TensorTrade. This code can either run locally or within a Docker container. Just make sure that all the libraries needed are properly downloaded when running locally.

Local

$ pip install -r requirements

Docker

If you are going to run the in the docker container use,

$ docker build -t penv .
$ docker run -it -v $PWD:/app --entrypoint /bin/bash penv

Commands

Run all of the following commands in order to ensure proper functionality.

To tune run,

$ python -m penv.tune --num-samples=4 --num-workers=8

To train run,

$ python -m penv.train --num-workers=8

To evaluate and render a chart for an episode run,

$ python -m penv.evaluate --price-type=sine

drawing

References

  • Jiang, Zhengyao, Dixing Xu, and Jinjun Liang. “A Deep Reinforcement Learning Framework for the Financial Portfolio Management Problem.” ArXiv.org (2017). Web. https://arxiv.org/abs/1706.10059.

About

An example for making highly customized environments in TensorTrade.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published