• Stars
    star
    104
  • Rank 329,412 (Top 7 %)
  • Language
    Jupyter Notebook
  • Created almost 5 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Deep Reinforcement Learning For Trading

Notebooks and code for Alpha Architect post on reinforcement learning.

  • Tic-Tac-Toe.ipynb - Table-based reinforcement learning to play Tic-Tac-Toe, and analogous if pointless deep learning algo
  • Cart-Pole.ipynb - Building deep reinforcement learning algos from scratch with Keras for OpenAI environments like Cartpole and LunarLander.
  • Ray_tune.ipynb - Similar but with state of the art RL from UC Berkeley Ray project
  • Trading_with_RL.ipynb - Algos to trade fake market data, inspired by Gordon Ritter paper Machine Learning for Trading. This should run in Google Colab.

Typical installation procedure:

  • Install Anaconda python data science distribution

  • Make an environment like

    conda create --name tf tensorflow

    or if you have Nvidia GPU

    conda create --name tf_gpu tensorflow-gpu 

    This should install requirements like working Nvidia drivers

  • Upgrade TensorFlow to latest version with

    pip install --upgrade tensorflow
  • Install additional requirements as necessary - requirements.txt has python modules installed at time of testing.

    pip install -r requirements.txt
  • TensorFlow Docker install may also be a good way to start but has not been tested.

  • Run notebooks using

    jupyter notebook

More Repositories

1

Machine-learning-for-financial-market-prediction

Machine Learning for Financial Market Prediction
Jupyter Notebook
52
star
2

swr

Safe withdrawal rate using flexible investing and withdrawal schedules and optimizers
Jupyter Notebook
26
star
3

safewithdrawal_tensorflow

Safe Withdrawal with Certainty Equivalent Cash Flow and TensorFlow
Jupyter Notebook
22
star
4

portfolio_optimization

Portfolio optimization with cvxopt
Jupyter Notebook
14
star
5

iowa

Iowa House Prices Kaggle (top 5%)
Jupyter Notebook
13
star
6

classification-in-Keras

classification sample code using Keras
Jupyter Notebook
11
star
7

ValueMomentum

Value and Momentum Using Machine Learning
Jupyter Notebook
11
star
8

classification-in-R

Use R machine learning to predict US equity premium outperformance using Prof. Amit Goyal's dataset
5
star
9

question_answering_over_docs

Question answering with ChatGPT and LlamaIndex and Langchain over your own docs
HTML
4
star
10

Pizza

use google maps, yelp, foursquare APIs to find best pizza
Jupyter Notebook
3
star
11

streeteye_word2vec

An embeddings model of StreetEYE headlines
Jupyter Notebook
3
star
12

threshold_selection

Threshold selection visualizations with isocurves
Jupyter Notebook
3
star
13

safewithdrawal

Code for safe withdrawal study - http://www.aaii.com/journal/article/safe-withdrawal-rates-and-certainty-equivalent-spending http://blog.streeteye.com/blog/2013/05/cat-food-revisited-final-thoughts-part-4/
R
3
star
14

reddit_prettiest_songs

Use OpenAI API to do entity extraction on a reddit thread of 25k posts, create a Spotify playlist with 1000+ songs
Jupyter Notebook
3
star
15

AInewsbot

A python workbook to find the latest news about AI
Jupyter Notebook
3
star
16

ClusterFinTweet

Clustering the FinTwitterSphere by topic
Jupyter Notebook
2
star
17

chartbook

A US economy chartbook pulling data from FRED, Quandl, Stooq
Jupyter Notebook
1
star
18

druce.github.io

blog repo
HTML
1
star
19

fundnames

Jupyter Notebook
1
star
20

HFTC2018Q3

Notebook and slideshow for HFTC 2018-09-20
Jupyter Notebook
1
star
21

Regression-Mad-Science

Experiments in nonlinear regression
Jupyter Notebook
1
star
22

MTA

chart MTA subway entries
Jupyter Notebook
1
star
23

docker_ml

docker for ML
Python
1
star
24

aitec_survey

AITEC survey; create slides from SurveyMonkey data
HTML
1
star
25

marketdata

APIs for free and low-cost market data
Jupyter Notebook
1
star
26

druce

Druce's profile
1
star
27

swr-react

React app for Safe Withdrawal for Retirement
JavaScript
1
star