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

tensorflow + python 2 / pandas environment. #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,12 @@ Such as:
```
python main.py --stock_symbol=SP500 --train --input_size=5 --lstm_size=128 --max_epoch=50
```


Install Conda https://conda.io/docs/installation.html .
Cheatsheet https://conda.io/docs/_downloads/conda-cheatsheet.pdf .
.
## Python 2.7
conda create -n tensorflow-p2 python=2.7
source activate tensorflow-p2
conda install numpy pandas matplotlib tensorflow jupyter notebook scipy scikit-learn nb_conda nltk
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def load_sp500(input_size, num_steps, k=None, target_symbol=None, test_ratio=0.0
print info['file_exists'].value_counts().to_dict()

info = info[info['file_exists'] == True].reset_index(drop=True)
info = info.sort('market_cap', ascending=False).reset_index(drop=True)
info = info.sort_values('market_cap', ascending=False).reset_index(drop=True)

if k is not None:
info = info.head(k)
Expand Down