build_fully_connect_keras_head#
- ctlearn.core.keras.model.build_fully_connect_keras_head(inputs, layers, activation_function, tasks)[source]#
Build the fully connected head for the Keras-based CTLearn model.
Function to build the fully connected head of the Keras-based CTLearn model using the specified parameters.
Parameters#
- inputskeras.layers.Layer
Keras layer of the model.
- layersdict
Dictionary containing the number of neurons (as value) in the fully connected head for each task (as key).
- activation_functiondict
Dictionary containing the activation function (as value) for the fully connected head for each task (as key).
- taskslist
List of tasks to build the head for.
Returns#
- logitsdict
Dictionary containing the logits for each task.