Git Product home page Git Product logo

har's People

Contributors

mingzhu0527 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

har's Issues

the list of Numpy arrays that you are passing to your model is not the size the model expected

Hello !

I am getting the following error:

[09-12-2019 15:10:09]   [Train:train] Traceback (most recent call last):
  File "/home/dpappas/HAR/matchzoo/main.py", line 359, in <module>
    main(sys.argv)
  File "/home/dpappas/HAR/matchzoo/main.py", line 351, in main
    train(config)
  File "/home/dpappas/HAR/matchzoo/main.py", line 159, in train
    verbose = 0
  File "/usr/lib64/python2.7/site-packages/keras/legacy/interfaces.py", line 91, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/keras/engine/training.py", line 1426, in fit_generator
    initial_epoch=initial_epoch)
  File "/usr/lib64/python2.7/site-packages/keras/engine/training_generator.py", line 191, in fit_generator
    class_weight=class_weight)
  File "/usr/lib64/python2.7/site-packages/keras/engine/training.py", line 1214, in train_on_batch
    class_weight=class_weight)
  File "/usr/lib64/python2.7/site-packages/keras/engine/training.py", line 792, in _standardize_user_data
    exception_prefix='target')
  File "/usr/lib64/python2.7/site-packages/keras/engine/training_utils.py", line 100, in standardize_input_data
    str(len(data)) + ' arrays: ' + str(data)[:200] + '...')
ValueError: Error when checking model target: the list of Numpy arrays that you are passing to your model is not the size the model expected. Expected to see 1 array(s), but instead got the following list of 2 arrays: [array([[1],
       [0],
       [1],
       [0],
       [1],
       [0],
       [1],
       [0],
       [1],
       [0],
       [1],
       [0],
       [1],
       [0],
       [1],
       [0],
       ...

Could you please help me to fix it ?
Thank you

ANMM DRMM feature error

To run the model ANMM and DRMM , we need to generate hist and binsum txt file.
But I found in the process.py, the function cal_hist and cal_binsum have some errors. The question and answer matching matrix should be calculated as the cosine similarity value instead of the dot product directly.

missing python script

Hello

I get the following error:
python: can't open file 'norm_embed.py': [Errno 2] No such file or directory

Error after starting training

Shortly after starting the training the process crashes with the following error:

Traceback (most recent call last): File "matchzoo/main.py", line 359, in <module> main(sys.argv) File "matchzoo/main.py", line 351, in main train(config) File "matchzoo/main.py", line 159, in train verbose = 1 File "/usr/lib/python3.7/site-packages/keras/legacy/interfaces.py", line 91, in wrapper return func(*args, **kwargs) File "/usr/lib/python3.7/site-packages/keras/engine/training.py", line 1658, in fit_generator initial_epoch=initial_epoch) File "/usr/lib/python3.7/site-packages/keras/engine/training_generator.py", line 215, in fit_generator class_weight=class_weight) File "/usr/lib/python3.7/site-packages/keras/engine/training.py", line 1443, in train_on_batch class_weight=class_weight) File "/usr/lib/python3.7/site-packages/keras/engine/training.py", line 795, in _standardize_user_data exception_prefix='target') File "/usr/lib/python3.7/site-packages/keras/engine/training_utils.py", line 105, in standardize_input_data str(len(data)) + ' arrays: ' + str(data)[:200] + '...') ValueError: Error when checking model target: the list of Numpy arrays that you are passing to your model is not the size the model expected. Expected to see 1 array(s), but instead got the following list of 2 arrays: [array([[1], [0], [1], [0], [1], [0], [1], [0], [1], [0], [1], [0], [1], [0], [1], [0], ...
I tried to train the model with the HealthQA-dataset and adjusted my config so the paths point to the prepared HealthQA-dataset-directory.

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.