build_fully_connect_pytorch_head#

ctlearn.core.build_fully_connect_pytorch_head(in_features, layers, activation_function, tasks)[source]#

Build the fully connected head for the PyTorch-based CTLearn model.

Parameters#

in_featuresint

Number of input features entering the fully connected head.

layersdict of list of int

Dictionary specifying the hidden unit sizes for each task head.

activation_functiondict of str

Dictionary specifying the activation function for each task head.

taskslist of str

List of active prediction tasks (e.g., [‘type’], [‘energy’]).

Returns#

headMultiFullyConnectedHead

Constructed PyTorch multi-task head module.