arthurmensch / didyprog Goto Github PK
View Code? Open in Web Editor NEWDifferentiable Dynamic Programming
License: MIT License
Differentiable Dynamic Programming
License: MIT License
Instances occur in viterbi.py and local.py implementations. I'm not sure what the effect is supposed to be but if it is to enforce type then consider switching to x = float(y)
3 instances in setup.py than cause install failure.
could please tell me the relation to soft-DTW project "https://github.com/mblondel/soft-dtw", because I come here from that project? Thanks
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
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! :)
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.