MLP
Module: mlp.py
This module implements Multi-Layer Perceptron (MLP) neural network architecture.
Key Classes
MLP: Multi-Layer Perceptron
Key Features
- Built on top of base class getting all its functionalities
- Efficient neural networks implementation using equinox modules
Version Info
- 02/01/2025: Initial version
MLP
Bases: FCNN
Multi-Layer Perceptron
Source code in scirex/core/dl/mlp.py
__init__(in_size, out_size, hidden_size=0, depth=0, activation=jax.nn.relu, final_activation=lambda x: x, random_seed=0)
Constructor for Multi-Layer Perceptron
Parameters:
Name | Type | Description | Default |
---|---|---|---|
in_size
|
int
|
Input size |
required |
out_size
|
int
|
Output size |
required |
hidden_size
|
int
|
Hidden size |
0
|
depth
|
int
|
Depth of the network |
0
|
activation
|
Callable
|
Activation function |
relu
|
final_activation
|
Callable
|
Final activation function |
lambda x: x
|
random_seed
|
int
|
Random seed |
0
|