Git Product home page Git Product logo

Comments (6)

angeloskath avatar angeloskath commented on August 31, 2024

Hi, do you mind sharing the TF and keras versions that you are using? Also, you could try to use an older version from around the time that the library was released.

Cheers,
Angelos

from importance-sampling.

jaesunghwang avatar jaesunghwang commented on August 31, 2024

i use TF v2.3.1 and keras v2.4.3. could you share your version of these ?

from importance-sampling.

angeloskath avatar angeloskath commented on August 31, 2024

It has been a long time since I tested the code and in general tensorflow 2 is not supported. You can also see issue #25 for more details.

I would suggest TF 1.13.1 and keras 2.0.0 for testing purposes but you might even get it working with TF 2.1 and keras 2.3.1 .

from importance-sampling.

jaesunghwang avatar jaesunghwang commented on August 31, 2024

ok, thanks your answer and link. i tried to downgrade TF and others. i will reset all setting, restart on your suggestion version.
i will re-visit to write the result, soon.

from importance-sampling.

ibarrien avatar ibarrien commented on August 31, 2024

Hi, if useful, I got an mnist example to almost work with:
tensorflow==2.3.1
keras==2.3.1

Still get an error though:

score = model.evaluate(x_test, y_test, verbose=0)
tensorflow.python.framework.errors_impl.InvalidArgumentError: You must feed a value for placeholder tensor 'input_1' with dtype float and shape [?,10]

from importance-sampling.

ibarrien avatar ibarrien commented on August 31, 2024

Alright, I finally got it to work!
tensorflow==1.13.1
keras==2.2.4

Specifically, /examples/mnist_mlp.py with args.importance_training=True.

With tensorflow 1.3.1, was not able to install the above-suggested keras 2.0.0 since "seqeval 0.0.12 requires Keras>=2.2.4, but you have keras 2.0.0 which is incompatible."

from importance-sampling.

Related Issues (20)

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.