Comments (5)
looks like python2 vs python3 problem
from deep_trader.
I use python3
from deep_trader.
UnicodeDecodeError: 'ascii' codec can't decode byte 0x97 in position 0: ordinal not in range(128)
I have the same problem with python 3
/home/smilewater/anaconda3/envs/tensorflow-gpu/lib/python3.6/site-packages/sklearn/cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
"This module will be removed in 0.20.", DeprecationWarning)
Traceback (most recent call last):
File "dqn_model.py", line 11, in
from train_stock import *
File "/media/smilewater/Disk/pywork/SinicaFinancial/deep_trader/tensor-reinforcement/train_stock.py", line 21, in
data = episodic_data.load_data("data.pkl",episode=10)
File "/media/smilewater/Disk/pywork/SinicaFinancial/deep_trader/tensor-reinforcement/episodic_data.py", line 71, in load_data
data = load_file_data(file)
File "/media/smilewater/Disk/pywork/SinicaFinancial/deep_trader/tensor-reinforcement/episodic_data.py", line 76, in load_file_data
data = six.moves.cPickle.load(myFile)
UnicodeDecodeError: 'ascii' codec can't decode byte 0x97 in position 0: ordinal not in range(128)
from deep_trader.
def load_file_data(file):
with open(file, 'rb') as myFile:
# data = six.moves.cPickle.load(myFile)
data = pickle.load(myFile, encoding='latin')
return data
change episodic_data.py to this.
from deep_trader.
I have tried the solution you provided but i got an other error.
return hashlib.md5(string).hexdigest()
Unicode-objects must be encoded before hashing
how do you think I can fix this?
from deep_trader.
Related Issues (17)
- Have you used this to make money? HOT 2
- where can I get data file NIFTY50.csv HOT 1
- code run error HOT 7
- code run error HOT 10
- DQN Strategy HOT 1
- Data KeyError when run dqn_model.py HOT 3
- Tensorflow version? HOT 1
- pg_model vs pg_stock_model
- can not install adium-theme-ubuntu in `requirements.txt' HOT 2
- Your Code is running Old Python 2.7 , please update to Python 3.4+ HOT 1
- Singleton array array(<map object at 0x00000190A1D75EF0>, dtype=object) cannot be considered a valid collection HOT 1
- Lack of commission charge
- Could not find old network weights HOT 5
- Do you want to calculate high + low / 2 for average price? HOT 1
- code run problem HOT 2
- I want to know about episodic_data.py HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deep_trader.