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

Improve directory setup #23

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open

Improve directory setup #23

wants to merge 24 commits into from

Conversation

benedict-96
Copy link
Collaborator

@benedict-96 benedict-96 commented Dec 15, 2024

Improved readability of directory setup and moved tests from docstrings to separate files.

I also added another constructor for SymbolicNeuralNetwork, which should be used as the default:

snn = SymbolicNeuralNetwork(nn::NeuralNetwork)

That way we do not have to implement custom symbolicparameter functions for each new layer.

@benedict-96 benedict-96 marked this pull request as draft December 15, 2024 22:46
@benedict-96
Copy link
Collaborator Author

This is set to draft until all tests from the docstrings are moved to appropriate places.

Copy link

codecov bot commented Dec 15, 2024

Codecov Report

Attention: Patch coverage is 85.36585% with 6 lines in your changes missing coverage. Please review.

Project coverage is 80.39%. Comparing base (42aa39a) to head (94e9da1).

Files with missing lines Patch % Lines
src/derivatives/pullback.jl 75.00% 2 Missing ⚠️
src/build_function/build_function_double_input.jl 0.00% 1 Missing ⚠️
src/derivatives/gradient.jl 50.00% 1 Missing ⚠️
src/symbolic_neuralnet/symbolic_neuralnet.jl 90.90% 1 Missing ⚠️
src/symbolic_neuralnet/symbolize.jl 94.11% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #23      +/-   ##
==========================================
+ Coverage   72.30%   80.39%   +8.08%     
==========================================
  Files          16       11       -5     
  Lines         325      255      -70     
==========================================
- Hits          235      205      -30     
+ Misses         90       50      -40     

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

@benedict-96 benedict-96 force-pushed the improve-directory-setup branch 2 times, most recently from 206a914 to bbd5d70 Compare December 16, 2024 09:50
ps -> nn.params.

Vector can't be used on Tuple of Vectors (apparently).

[1., 2.] -> Vector(1:input_dim) (so that we can deal with flexible input dimensions.
@benedict-96 benedict-96 force-pushed the improve-directory-setup branch 3 times, most recently from 5ebf5f1 to 1b873e9 Compare December 16, 2024 10:52
Flipped order of functions.

Added _get_contents method for Tuple as argument.

Added another method to deal with Zygote idiosyncracies.

Fixed method for _get_params.
@benedict-96 benedict-96 force-pushed the improve-directory-setup branch from 1b873e9 to a260ae5 Compare December 16, 2024 11:58
@benedict-96 benedict-96 marked this pull request as ready for review December 16, 2024 12:28
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.

1 participant