Expand description
Auto-generated module structure
Modules§
- feedforwardnet_
traits - FeedForwardNet - Trait Implementations
- inferencepipeline_
traits - InferencePipeline - Trait Implementations
- messagepassingnet_
traits - MessagePassingNet - Trait Implementations
Structs§
- Adam
Optimizer - Adam optimizer for a flat parameter vector.
- Atomic
Neural Network - Atomic neural network potential (NNP) with one sub-network per element.
- Attention
Readout - Attention-based graph readout that computes a weighted sum of node features.
- Batch
Norm Layer - Batch normalization layer (inference mode).
- Behler
Parrinello Descriptor - Behler-Parrinello symmetry functions for constructing atomic descriptors.
- Conv1D
Layer - A 1-D convolutional layer operating on a sequence of feature vectors.
- Data
Normalizer - Feature-wise Z-score normalizer.
- Dense
Layer - A single fully-connected (dense) layer with an activation function.
- Dense
Layer64 - A fully-connected layer with f64 weights supporting forward pass and gradient computation for backpropagation.
- Dropout
Layer - Dropout regularisation layer.
- Feed
Forward Net - A sequential feed-forward neural network.
- GnnLayer
- A single graph neural network layer implementing the sum-aggregation message passing update:
- GpuNeural
Buffer - A mock GPU buffer for batched neural network inference.
- Grad
Accumulator - Accumulates gradients from multiple backward passes for mini-batch training.
- Inference
Pipeline - An inference pipeline that chains DenseLayer and BatchNormLayer operations.
- Layer
Norm - Layer normalisation applied to each time step independently.
- Layer
Norm Layer - Layer normalisation (Ba et al., 2016).
- Message
Passing Net - A multi-layer message passing neural network stacking
GnnLayers. - Multi
Head Attention - Multi-head attention module.
- Network
Builder - Convenience builder for standard AANN architectures.
- Neural
Layer - A single fully-connected layer with f64 weights.
- Neural
Network - A sequential feed-forward neural network using f64 precision.
- Positional
Encoding - Sinusoidal positional encoding (Vaswani et al., 2017).
- RnnCell
- A single-step Elman RNN cell:
h_t = activation(W_x * x_t + W_h * h_{t-1} + b). - Transformer
Block - A single transformer encoder block: x → MHA(LayerNorm(x)) + x → FFN(LayerNorm(·)) + ·
- Transformer
Ffn - Position-wise feed-forward network used inside a transformer block.
Enums§
- Activation
Fn - Activation functions for neural network layers.
- Activation
Fn64 - Activation function for f64-precision neural network layers.
- ExtActivation
- Extended activation functions with additional variants for f64 paths.
- Inference
Op - A single operation in the inference pipeline.
Functions§
- batch_
atomic_ energies - Predict atomic energies for a batch of (descriptor, atomic_number) pairs.
- batch_
forward - Run a forward pass for every sample in
batch. - clip_
gradients_ by_ norm - Clip a collection of gradient slices in-place so that their combined L2
norm does not exceed
max_norm. - compute_
forces_ batch - Run the network on every position and return a force vector per atom.
- compute_
gradient_ norm - Compute the L2 norm (Frobenius norm) of a concatenated gradient vector.
- cross_
entropy_ loss - Compute cross-entropy loss between predictions and one-hot target.
- huber_
loss - Huber loss between prediction and target.
- huber_
loss_ grad - Gradient of Huber loss w.r.t. predictions.
- l2_
regularisation - Compute L2 regularisation loss contribution.
- l2_
regularisation_ grad - Compute L2 regularisation gradient contribution (adds
lambda * wto each element). - load_
weights_ from_ buffer - Load weights from a flat f32 buffer into a network, partitioning by layer sizes.
- mean_
huber_ loss - Mean Huber loss over a batch.
- mse_
loss - Mean squared error loss between predictions and targets.
- neural_
potential_ energy - Compute a scalar potential energy by summing the first network output over all atoms.
- save_
weights_ to_ buffer - Serialize network weights to a flat f32 buffer.
- scaled_
dot_ product_ attention - Compute scaled dot-product attention.
- softmax
- Compute softmax of a vector.