kosmos.ml.models.neural_network¶
Classes¶
- class NeuralNetwork(input_dim: int, output_dim: int, hidden_layers: list[int])¶
Bases:
kosmos.ml.models.model.ModelFeedforward neural network.
Initialize the neural network.
- Parameters:
Methods
- forward(x: torch.Tensor) torch.Tensor¶
Perform a forward pass.
- Parameters:
x (torch.Tensor) – Input tensor.
- Returns:
Output tensor.
- Return type: