Comments (3)
rewards = [0 if reward is None else reward for reward in rewards]
Add this above deltas = [r + ....
from rl-bitcoin-trading-bot.
deltas = [r + gamma * (1 - d) * nv - v for r, d, nv, v in zip(rewards, dones, next_values, values)]
TypeError: unsupported operand type(s) for +: 'NoneType' and 'float'
Where you able to solve this?
from rl-bitcoin-trading-bot.
rewards = [0 if reward is None else reward for reward in rewards]
Add this above deltas = [r + ....
Mind elaborating a bit more? It didnt solved the issue at my end, any help is highly appreciated. Thanks!
from rl-bitcoin-trading-bot.
Related Issues (20)
- Might be Uncomplete
- Not clear if it is learning HOT 1
- Random Choice when doing prediction HOT 3
- critic_PPO2_loss
- The machine becomes worse, instead of improving
- Lookahead Bias HOT 3
- Problem with visualizing img with OpenCV in utils.py
- preventing model from updating parameters while testing
- multiprocessing is slow and doesn't use much GPU HOT 8
- buy and sell placed on same day when visualizing HOT 1
- Gaes fees HOT 3
- Utils - Unpacking the deque Render_data list without using a specific index HOT 3
- np.random.choice(self.action_space, p=prediction)
- Errors in deduction of fees - fees are actually not applied at all
- 'Adam' object has no attribute 'get_updates' HOT 3
- Binance implementation HOT 5
- Indicators HOT 1
- Nomalizing data
- get_reward() returns None, later results in exception
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 rl-bitcoin-trading-bot.