Git Product home page Git Product logo

keras-hypetune's Issues

Multi-input functional model: ValueError inconsistent number of samples

Hi Marco,

This is a really great package, but I'm having trouble getting it to work. I have a model which takes text and audio features (numpy arrays) which I am passing to search, as with the Keras fit() method:

print(tf_train.shape, af_train.shape, y_train.shape)
kgs.search({'text_inputs': tf_train, 'audio_inputs': af_train}, {'labels': y_train})

I am getting the output and error below:

(61, 400) (61, 400, 13) (61, 3)
...
ValueError: Found input variables with inconsistent numbers of samples: [2, 1]

I have tried passing the features in a list and the labels as-is (this resembles your notebook example), but with the same error:

print(tf_train.shape, af_train.shape, y_train.shape)
kgs.search([tf_train, af_train], y_train)

ValueError: Found input variables with inconsistent numbers of samples: [2, 61]

Any ideas?

Thanks!

André

Sample weights

Hi, maybe this is not an issue but something I am missing. Is there a way to enter sample weights in the search? Any help would be appreciated. Thanks,

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.