Code Monkey home page Code Monkey logo

didyprog's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar

didyprog's Issues

Unittests are failing

The following unittests fail

========================================================================================= short test summary info ==========================================================================================
FAILED test_viterbi.py::test_viterbi_two_lengths[hardmax] - ValueError: too many values to unpack (expected 2)
FAILED test_viterbi.py::test_viterbi_two_lengths[softmax] - ValueError: too many values to unpack (expected 2)
FAILED test_viterbi.py::test_viterbi_two_lengths[sparsemax] - ValueError: too many values to unpack (expected 2)
FAILED test_viterbi.py::test_grad_hessian_viterbi_two_samples[hardmax] - ValueError: too many values to unpack (expected 2)
FAILED test_viterbi.py::test_grad_hessian_viterbi_two_samples[softmax] - ValueError: too many values to unpack (expected 2)
FAILED test_viterbi.py::test_grad_hessian_viterbi_two_samples[sparsemax] - ValueError: too many values to unpack (expected 2)

The culprit is this line of code (the type signature doesn't quite match).
https://github.com/arthurmensch/didyprog/blob/master/didyprog/ner/viterbi.py#L276

install issue

how do i install this without sudo, in user mode (similar to pip install --user)?

tried installing this using python setup.py install --user --prefix= reference: [here], but got the following stack trace:

Traceback (most recent call last):
  File "setup.py", line 63, in <module>
    'Operating System :: MacOS'
  File "/home/x86_64-unknown-linux_ol7-gnu/anaconda-5.2.0/envs/pytorch/lib/python3.6/site-packages/numpy/distutils/core.py", line 135, in setup
    config = configuration()
  File "setup.py", line 29, in configuration
    config.add_subpackage('didypro')
  File "/home/x86_64-unknown-linux_ol7-gnu/anaconda-5.2.0/envs/pytorch/lib/python3.6/site-packages/numpy/distutils/misc_util.py", line 1024, in add_subpackage
    caller_level = 2)
  File "/home/x86_64-unknown-linux_ol7-gnu/anaconda-5.2.0/envs/pytorch/lib/python3.6/site-packages/numpy/distutils/misc_util.py", line 986, in get_subpackage
    caller_level = caller_level+1)
  File "/home/x86_64-unknown-linux_ol7-gnu/anaconda-5.2.0/envs/pytorch/lib/python3.6/site-packages/numpy/distutils/misc_util.py", line 768, in __init__
    raise ValueError("%r is not a directory" % (package_path,))
ValueError: 'didypro' is not a directory

can someone please help me with this? @arthurmensch @lyprince
thanks! :)

Custom backward implementation

Hello, thank you for great paper and for sharing the code!
I'm not sure to understand well in the paper (§3.4) why it is so fast compared to the autodiff implementation. Could you give some additionnal insight or references to help understand the improve of custom backward? Thank you

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.