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

Flatten/Destruct/Reconstruct functions in the package. #21

Open
ZeyuanLee opened this issue Dec 11, 2024 · 1 comment
Open

Flatten/Destruct/Reconstruct functions in the package. #21

ZeyuanLee opened this issue Dec 11, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ZeyuanLee
Copy link
Collaborator

In order to solve the system for nonlinear integrator, a destruct function and reconstruct function would be quite useful. The destruct should have two return values : the flattened parameters in the network, (NamedTuple{...} into a 1d vector), and a destruct function to refill the vector into network.

A generalized idea is to specify the degree of freedoms in a nonlinear expression (not just neural network), and flatten them into a vector, and meanwhile a reconstruct function.

Not quite sure whether these functions should be in SymbolicNeuralNetworks.jl or AbstractNeuralNetworks.jl

@ZeyuanLee ZeyuanLee added the enhancement New feature or request label Dec 11, 2024
@michakraus
Copy link
Member

This is a recurring issue. It should be implemented in AbstractNeuralNetworks.jl for NeuralNetworkParameters, possibly using ParameterHandling.jl.

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

No branches or pull requests

2 participants