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

API clean up #154

Merged
merged 5 commits into from
Nov 4, 2023
Merged

API clean up #154

merged 5 commits into from
Nov 4, 2023

Conversation

fsxbhyy
Copy link
Collaborator

@fsxbhyy fsxbhyy commented Nov 2, 2023

1.Polished API of taylor expansion.
2. Add api to extract necesaary information from DiagramTree object to perform taylor expansion AD. To do this the DiagramTree will first be converted to a Graph.

@fsxbhyy fsxbhyy added the enhancement New feature or request label Nov 2, 2023
@fsxbhyy fsxbhyy self-assigned this Nov 2, 2023
@codecov-commenter
Copy link

codecov-commenter commented Nov 2, 2023

Codecov Report

Attention: 19 lines in your changes are missing coverage. Please review.

Comparison is base (c773032) 63.59% compared to head (d5e3993) 63.75%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@               Coverage Diff               @@
##           computgraph     #154      +/-   ##
===============================================
+ Coverage        63.59%   63.75%   +0.15%     
===============================================
  Files               64       64              
  Lines             4423     4442      +19     
===============================================
+ Hits              2813     2832      +19     
  Misses            1610     1610              
Files Coverage Δ
src/frontend/diagtree.jl 96.29% <100.00%> (+96.29%) ⬆️
src/computational_graph/tree_properties.jl 48.68% <0.00%> (ø)
src/utility.jl 74.14% <30.76%> (-11.15%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@dcerkoney dcerkoney left a comment

Choose a reason for hiding this comment

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

Looks good to me (modulo typos)

example/taylor_expansion.jl Outdated Show resolved Hide resolved
example/taylor_expansion.jl Outdated Show resolved Hide resolved
src/frontend/diagtree.jl Outdated Show resolved Hide resolved
end

"""
function extract_var_dependence(map::Dict{Int,DiagTree.DiagramId}, ::Type{ID}, numvars::Int)
Copy link
Collaborator

Choose a reason for hiding this comment

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

add where {ID<:PropagatorId} to match function signature

src/utility.jl Outdated Show resolved Hide resolved
@fsxbhyy fsxbhyy merged commit 54136fe into computgraph Nov 4, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants