-
Notifications
You must be signed in to change notification settings - Fork 24
Update gradient interface, support AbstractDifferentiation #90
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
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
ea589ab
wip
lostella 7a32038
try with AbstractDifferentiation (wip)
lostella 4a2bbb8
fixes
lostella 9c15b0e
fixes
lostella 585e244
streamline
lostella 7cf1c12
Fixup
lostella fc700bb
Fix
lostella 05f8334
fix more tests
lostella c56cc08
remove test and unused code
lostella ea5be88
unused dependency
lostella 6b94ce8
update docs snippets
lostella 59686f4
updates
lostella aff22b0
update docs
lostella 7cdcc2e
Update docs
lostella b402024
Fixup
lostella e79ec2b
Update ProximalAlgorithms.jl
lostella 3f93199
Fix
lostella 4bf6f75
fix
lostella d407660
add justfile
lostella d046528
Update docs/src/guide/custom_objectives.jl
lostella 2e062c3
address comments
lostella 9ac83c0
update benchmark
lostella 2d8d611
just benchmark
lostella fd98409
update readme and docs
lostella 68a80a0
update readme
lostella 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 hidden or 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 |
|---|---|---|
| @@ -1,16 +1,16 @@ | ||
| name = "ProximalAlgorithms" | ||
| uuid = "140ffc9f-1907-541a-a177-7475e0a401e9" | ||
| version = "0.5.5" | ||
| version = "0.6.0" | ||
|
|
||
| [deps] | ||
| AbstractDifferentiation = "c29ec348-61ec-40c8-8164-b8c60e9d9f3d" | ||
| LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" | ||
| Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" | ||
| ProximalCore = "dc4f5ac2-75d1-4f31-931e-60435d74994b" | ||
| Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f" | ||
|
|
||
| [compat] | ||
| AbstractDifferentiation = "0.6" | ||
| LinearAlgebra = "1.2" | ||
| Printf = "1.2" | ||
| ProximalCore = "0.1" | ||
| Zygote = "0.6" | ||
| julia = "1.2" |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| julia: | ||
| julia --project=. | ||
|
|
||
| instantiate: | ||
| julia --project=. -e 'using Pkg; Pkg.instantiate()' | ||
|
|
||
| test: | ||
| julia --project=. -e 'using Pkg; Pkg.test()' | ||
|
|
||
| format: | ||
| julia --project=. -e 'using JuliaFormatter: format; format(".")' | ||
|
|
||
| docs: | ||
| julia --project=./docs docs/make.jl | ||
|
|
||
| benchmark: | ||
| julia --project=benchmark -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' | ||
| julia --project=benchmark benchmark/runbenchmarks.jl | ||
|
|
This file contains hidden or 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 hidden or 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.
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.
Striclty speaking this is not a pullback if it takes no input. The point of a pullback is to take a cotangent and pull it back into the input space.
In this case, the cotangent is a scalar, and taking this scalar to be 1 returns the gradient, so it's okay, but the terminology might confuse autodiff people
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.
Yeah right, I was unsure here, thanks for pointing that out. I guess I could call it simply “closure”
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.
value_and_gradient_closureother something like thatThere 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.
Addressed