![]() |
Belle II Software light-2609-luna
|


Public Member Functions | |
| __init__ (self, input_size, num_labels=3) | |
| forward (self, x) | |
Public Attributes | |
| activation = nn.ReLU() | |
| Activation function applied between all linear layers. | |
| network | |
| Fully connected network layers. | |
Protected Member Functions | |
| _init_weights (self) | |
Multi-class classification network with fully connected layers. Two architectures selected automatically by num_labels: - Deep (num_labels <= 10, e.g. category network with 3 classes): 256 -> 128 (dropout 0.2) -> 64 (dropout 0.15) -> 32 (dropout 0.1) -> 16 -> num_labels - Shallow (num_labels > 10, e.g. main network with 139 classes): 256 -> 128 (dropout 0.1) -> 128 (dropout 0.1) -> 64 (dropout 0.05) -> num_labels - ReLU activation, Xavier initialization (gain=0.5, bias=0.01)
| __init__ | ( | self, | |
| input_size, | |||
| num_labels = 3 ) |
Build the network graph for the given input size and number of output classes.
Definition at line 721 of file train.py.
|
protected |
Initialize weights with Xavier uniform (gain=0.5) and bias=0.01.
Definition at line 764 of file train.py.
| forward | ( | self, | |
| x ) |
| activation = nn.ReLU() |
| network |
Fully connected network layers.