Giter Site home page Giter Site logo

applied-reinforcement-learning-w-python's Introduction

Apress Source Code

This repository accompanies Applied Reinforcement Learning with Python by Taweh Beysolow (Apress, 2019).

Cover image

Download the files as a zip using the green button, or clone the repository to your machine using Git.

Releases

Release v1.0 corresponds to the code in the published book, without corrections or updates.

Contributions

See the file Contributing.md for more information on how you can contribute to this repository.

applied-reinforcement-learning-w-python's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

applied-reinforcement-learning-w-python's Issues

Warning for Model(input - missing an "s"

C:\Users\markUser\py3\rlEg\neural_networks\policy_gradient_utilities.py:53: UserWarning: Update your Model call to the Keras 2 API: Model(outputs=Tensor("de..., inputs=[<tf.Tenso...)
model_prediction = Model(input=[input_layer], outputs=output_layer)

Looks like the Model(input= ought to be Model(inputs=
^
Note the addition of the "s"
Seems all other lines in this model have the "s" with the exception of line 53.
Adding the "s" removes the warning when I run. Hope this is helpful.

PS - enjoying the book thus far.
Buytore

The code for chapter 4 has something wrong

I figure out that in the market_making_example.py ,line 225 has a bug,it will cause the generator always run the reset(),but each reset() will cause the self.position set into "flat",so the training will always get flat,that is wrong.
I fixed it by making my own reset:MyReset() and just copy the reset but delete the self.position='flat',also delete the releated code with next(),this will make the code right,but still ,the predict result is wrong.
def myReset(self):
self._data_generator.rewind()
self._total_reward = 0
self._total_pnl = 0
self._entry_price = 0
self._exit_price = 0
observation = self._get_observation()
self.state_shape = observation.shape
return observation

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.