Skip to content

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

@ZeyuanLee

Description

@ZeyuanLee

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions