relayrl_algorithms 0.4.1

Independent / Multi-Agent Proximal Policy Optimization (PPO) Algorithms for the RelayRL framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// Errors from neural network construction, dimension validation, or device/dtype resolution.
#[derive(thiserror::Error, Debug, Clone)]
pub enum NeuralNetworkError {
    #[error("Unsupported device: {0}")]
    UnsupportedDevice(String),
    #[error("Unsupported DType: {0}")]
    UnsupportedDType(String),
    #[error("Unsupported output params: {0}")]
    UnsupportedOutputParams(String, String),
    #[error("Backend unavailable: {0}")]
    BackendUnavailable(String),
    #[error("Input dimension mismatch: {0} != {1}")]
    InputDimMismatch(usize, usize),
    #[error("Invalid distribution")]
    InvalidDistribution,
}