OctonionNeuralNetwork<T>
Models & Types · AiDotNet.NeuralNetworks
Represents an Octonion-valued Neural Network for processing data in 8-dimensional hypercomplex space.
Inheritance: NeuralNetworkBase<T> → DeclaredModelLayoutBase<T> → VectorModelLayoutBase<T> → OctonionNeuralNetwork<T>
For Beginners
Octonions are 8-dimensional numbers that extend complex numbers and quaternions. While regular neural networks use simple numbers, octonion networks use these 8-dimensional numbers which can capture more complex relationships in data. This is particularly useful for:
- 3D graphics and physics simulations
- Signal processing with multiple channels
- Tasks requiring rich rotational representations
How It Works
An Octonion Neural Network uses octonion algebra (8-dimensional non-associative division algebra) for its computations. This provides richer representational capacity than real, complex, or quaternion-valued networks, making it suitable for tasks requiring high-dimensional rotations and transformations.
Example
var architecture = new NeuralNetworkArchitecture<float>(inputFeatures: 8, outputSize: 4);
var input = Tensor<float>.CreateRandom(new[] { 1, 8 });
var trainX = Tensor<float>.CreateRandom(4, 8);
var trainY = Tensor<float>.CreateRandom(4, 2);
var result = new AiModelBuilder<float, Tensor<float>, Tensor<float>>()
.ConfigureModel(new OctonionNeuralNetwork<float>(architecture))
.Build(trainX, trainY);
var output = result.Predict(input);
Constructors
| Constructor | Summary |
|---|---|
OctonionNeuralNetwork() |
Initializes a new instance of the OctonionNeuralNetwork class. |
OctonionNeuralNetwork(NeuralNetworkArchitecture<T> architecture, IGradientBasedOptimizer<T, Tensor<T>, Tensor<T>> optimizer, ILossFunction<T> lossFunction, OctonionNeuralNetworkOptions options) |
Properties
| Property | Summary |
|---|---|
bool SupportsTraining { get; } |
Indicates whether this network supports training. |
Methods
| Method | Summary |
|---|---|
ModelMetadata<T> GetModelMetadata() |
Retrieves metadata about the octonion neural network model. |
Tensor<T> Forward(Tensor<T> input) |
Performs a forward pass through the network with the given input tensor. |