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

refactored unit test for conditioning #47

Merged

Conversation

psteinb
Copy link
Contributor

@psteinb psteinb commented Dec 9, 2020

  • replaced deprecated layer classes
  • made unit test CUDA/CPU aware (whatever is available)
  • refactored assertions
  • moved unit test input data into test case constructor
  • set manual seed to something != 0 to make tests reproducible
    • with seed=0, the test_jacobian gave errors sometimes and sometimes
    • I guess, randn calls yielded illconditioned jacobians

- replaced deprecated layer classes
- made unit test CUDA/CPU aware (whatever is available)
- refactored assertions
- moved unit test input data into test case constructor
- set manual seed to something != 0 to make tests reproducible
  + with seed=0, the test_jacobian gave errors sometimes and sometimes
  + I guess, randn calls yielded illconditioned jacobians
@psteinb
Copy link
Contributor Author

psteinb commented Dec 9, 2020

@wapu @ardizzone I am using this framework everyday, so I'd like to contribute back. When used in this fashion, this test could now also be run on github actions or other platforms for CI.

@ardizzone ardizzone merged commit 3ee59e6 into vislearn:master Feb 9, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants