Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run tests #1

Open
loretoparisi opened this issue Nov 7, 2017 · 3 comments
Open

How to run tests #1

loretoparisi opened this issue Nov 7, 2017 · 3 comments

Comments

@loretoparisi
Copy link

Please add some docs about how to run the tests presented in the paper.
Thank you!

@vene
Copy link
Owner

vene commented Nov 7, 2017

Do you mean the experiments from the NIPS paper?

Unfortunately those are not implemented in this repository, this just implements the fundamental building blocks usable from pytorch. In general you can take any existing pytorch code (e.g. OpenNMT-py) and replace softmax with fusedmax, oscarmax or sparsemax from this repository, with minor work for adapting the API (notably, passing sequence lengths if needed.)

@loretoparisi
Copy link
Author

@vene yes the experiments. Thanks for the clarification, but how did you tested these ones :)?

@vene
Copy link
Owner

vene commented Nov 7, 2017

there are unit tests in this repository that check that the implementation is correct. You can look at the test_*.py files, or run them using pytest.

Maybe in a future version I will add some toy examples and plots. Contributions always welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants