google-research / recsim

A Configurable Recommender Systems Simulation Platform
https://github.com/google-research/recsim
Apache License 2.0
732 stars 127 forks source link

“from recsim.agents import full_slate_q_agent” gets new problem #7

Open TobyGE opened 4 years ago

TobyGE commented 4 years ago

I had maybe a new error on Linux...

Tensorflow Attribute Error: module 'tensorflow_core._api.v2.train' has no attribute 'RMSProp Optimizer'

https://github.com/google/dopamine/issues/121 This link relates to this error, unfortunately, no one answers...

Screen Shot 2019-12-10 at 9 31 52 PM

Originally posted by @TobyGE in https://github.com/google-research/recsim/issues/5#issuecomment-564350200

cwhsu-google commented 4 years ago

Could you run Dopamine/Recsim using Tensorflow 1.1.5? https://github.com/google/dopamine/blob/master/README.md#mac-os-x We will think about a long term solution. Thanks.

TobyGE commented 4 years ago

Could you run Dopamine/Recsim using Tensorflow 1.1.5? https://github.com/google/dopamine/blob/master/README.md#mac-os-x We will think about a long term solution. Thanks.

At first, I couldn't because of the wrong tf version. After replacing tf 2.0 with tf 1.15, I run the test again. There were some WARNINGs but I thought the test worked. Screen Shot 2019-12-22 at 9 48 05 PM

Then I imported full_slate_q_agent again, however, this time still failed. A new error existed, shown as below. Screen Shot 2019-12-22 at 9 52 03 PM

Amir-Abushanab commented 4 years ago

Didn't want to create a new issue as I believe it's the same problem.

Running the third cell in the overview notebook on Colab https://github.com/google-research/recsim/blob/master/recsim/colab/RecSim_Overview.ipynb gives the following error

ModuleNotFoundError: No module named 'tensorflow.contrib'


Update: changing the second line to %tensorflow_version 1.x provides a temporary fix, but the Colab environment will still give a warning for not using TF 2.0