Networks¶
Classes and associated functionality to define neural networks.
Neural networks are used throughout the codebase as functional approximators.
- class coreax.networks.ScoreNetwork(hidden_dims, output_dim, parent=<flax.linen.module._Sentinel object>, name=None)[source]¶
Bases:
ModuleA feed-forward neural network for use in sliced score matching.
See
SlicedScoreMatchingfor an example usage of this class.- Parameters:
- coreax.networks.create_train_state(random_key, module, learning_rate, data_dimension, optimiser)[source]¶
Create a flax
TrainStatefor learning with.- Parameters:
- Return type:
- Returns:
TrainStateobject