-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Change default derivative impl to reverse mode #170
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
f343c88
merge forward and reverse mode
sritchie 69ee50a
tape works
sritchie 3ece359
add tests
sritchie deedf55
remove deep-primal
sritchie 2617c36
new test
sritchie dd2ab01
check
sritchie b9fd0c2
Merge branch 'main' into sritchie/proto
sritchie 24e7656
reverse mode protocol
sritchie 665bc08
grad
sritchie 4e3e23b
first test fixes
sritchie 55ddc24
more test fixes
sritchie 481e62a
more test fixes
sritchie 9489e58
add id to cljs
sritchie 0ee0d6d
Merge branch 'main' into sritchie/proto
sritchie 17f24ec
Merge branch 'sritchie/proto' into sritchie/enable_gradient
sritchie eb804bd
Merge branch 'main' into sritchie/enable_gradient
sritchie 9285e78
merge
sritchie dd26d11
reverse default
sritchie df877ff
differential change
sritchie aaae64c
rehash
sritchie 9c74333
closer
sritchie 9ad363b
fix
sritchie cc2775a
changelog
sritchie 6a6a6fc
fix tests
sritchie 35202d5
fix
sritchie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -224,10 +224,9 @@ | |
(g/zero? | ||
(g/simplify | ||
(g/determinant M)))) | ||
(do (println "determinant" (g/determinant M)) | ||
(throw | ||
(ex-info "Legendre Transform Failure: determinant = 0" | ||
{:F F :w w}))) | ||
(throw | ||
(ex-info "Legendre Transform Failure: determinant = 0" | ||
{:F F :w w})) | ||
(let [v (g/solve-linear-left M (- w b))] | ||
(- (* w v) (F v))))))] | ||
(let [Dpg (D putative-G)] | ||
|
@@ -442,11 +441,12 @@ | |
"p.326" | ||
[C] | ||
(fn [s] | ||
((- J-func | ||
(f/compose (Phi ((D C) s)) | ||
J-func | ||
(Phi* ((D C) s)))) | ||
(s/compatible-shape s)))) | ||
(let [s-syms (s/compatible-shape s)] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this forces |
||
((- J-func | ||
(f/compose (Phi ((D C) s)) | ||
J-func | ||
(Phi* ((D C) s)))) | ||
s-syms)))) | ||
|
||
;; Time-Varying code | ||
;; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed extra println