Skip to content

QLearningDecisionPolicy not compatible tensorflow 2.0 #3

Description

@algobughk

QLearningDecisionPolicy in chapter 11 of random_bandit_agent.py is not compatible with tensorflow 2.0

Traceback (most recent call last):

File "Chapter11\stock_price_predictive_agent.py", line 134, in
policy = QLearningDecisionPolicy(actions, hist + 2)

File "Chapter11\stock_price_predictive_agent.py", line 41, in init
self.x = tf.placeholder(tf.float32, [None, input_dim])

AttributeError: module 'tensorflow' has no attribute 'placeholder'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions