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

chol, qr, lq gradients #55

Merged
merged 2 commits into from
Mar 18, 2018
Merged

chol, qr, lq gradients #55

merged 2 commits into from
Mar 18, 2018

Conversation

CarloLucibello
Copy link
Collaborator

@CarloLucibello CarloLucibello commented Feb 20, 2018

x-ref #45

@CarloLucibello CarloLucibello changed the title chol gradient chol, qr, lq gradients Feb 20, 2018
S = iL * Symmetric(L*dL',:L) * iL'
S/2
end

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CarloLucibello let's not break the AutoGrad's regular testing pipeline. Could you pls. add

  1. addtest(:chol, rand(3,3))
  2. I think we need to find a way to write similar tests for qr and lq and remove them from the test/primitives.jl

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to keep tests this way. It is kind of atypical in the julia ecosystem to add tests into the src/ folder, and I don't want to scratch my head to figure out how to add tests for qr in the non-standard way while the easy way is also the standard way

@denizyuret
Copy link
Owner

@CarloLucibello AutoGrad is not like any regular package in the Julia ecosystem in that it touches and overloads hundreds of functions. I found keeping separate src / test files in sync impractical. The current method allows you to define a number of functions and their tests together in the same for loop. I am open to suggestions of improving the system, but I don't think doing the standard thing is a realistic suggestion. I will fix tests in this PR after merge.

@denizyuret denizyuret merged commit dbef756 into denizyuret:master Mar 18, 2018
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.

3 participants