hyperas icon indicating copy to clipboard operation
hyperas copied to clipboard

What is compatible Keras and Tensorflow versions?

Open mrgloom opened this issue 8 years ago • 6 comments

What is compatible Keras and Tensorflow versions assuming hyperas is installed via pip install hyperas using anaconda3? Maybe it's better to include requirements.txt in repo?

mrgloom avatar Jul 04 '17 12:07 mrgloom

I am having problems with Keras 2.0.4 and tensorflow 1.1.0. After I pip install hyperas, when I import the library it gives NameError: global name 'exc' is not defined error. Hope there will be an update soon.

marcoleewow avatar Jul 11 '17 08:07 marcoleewow

still one week on vacation. will get back to this. thanks for understanding

maxpumperla avatar Jul 11 '17 11:07 maxpumperla

Seems it work for me on:

./pip show hyperas
Name: hyperas
Version: 0.4
./pip show keras
Name: Keras
Version: 2.0.5
./pip show tensorflow-gpu
Name: tensorflow-gpu
Version: 1.2.1

Can you consider upgrade?

mrgloom avatar Jul 11 '17 12:07 mrgloom

Sorry I figured out my problem now, I was using elephas docker and I noticed that I did not install hyperas properly. I will add a new issue in elephas instead, disregard my comment before.

marcoleewow avatar Jul 12 '17 03:07 marcoleewow

@mrgloom requirements.txt is generally meant for standalone applications only, not for imported packages e.g. hyperas. Note that setup.py already documents the version-agnostic requirements as is normal. Even so, if requirements.txt had to forcibly be used, setup.py would have to read from it - this doesn't benefit much.

As for keras and tensorflow version restrictions, defining them would restrict the usability of hyperas a bit too much. It's supposed to work with the latest stable versions. It may still make sense to define the minimum version requirements, but not the maximum.

impredicative avatar Feb 04 '18 15:02 impredicative

@mrgloom tensorflow==1.4.1 and keras==2.0.8 works for both cpu and gpu.

dineepthomas avatar Sep 13 '18 17:09 dineepthomas