fusilli.fusionmodels.unimodal.tabular2ο
Tabular2 uni-modal model.
Classes
|
Tabular2 uni-modal model. |
- class Tabular2Unimodal(prediction_task, data_dims, multiclass_dimensions)[source]ο
Bases:
ParentFusionModel
,Module
Tabular2 uni-modal model.
This class implements a uni-modal model using only the 2nd type of tabular data.
- mod2_layersο
Dictionary containing the layers of the 2nd type of tabular data.
- Type:
nn.ModuleDict
- fused_dimο
Dimension of the fused layer.
- Type:
int
- fused_layersο
Sequential layer containing the fused layers.
- Type:
nn.Sequential
- final_predictionο
Sequential layer containing the final prediction layers.
- Type:
nn.Sequential
- fused_dimο
Dimension of the fused layer.
- Type:
int
- __init__(prediction_task, data_dims, multiclass_dimensions)[source]ο
- Parameters:
prediction_task (str) β Type of prediction to be performed.
data_dims (list) β List containing the dimensions of the data.
multiclass_dimensions (int) β Number of classes in the multiclass classification task.
- forward(x)[source]ο
Forward pass of the model.
- Parameters:
x (torch.Tensor) β Input tensor.
- Returns:
List containing the output of the model.
- Return type:
list
- fusion_type = 'unimodal'ο
Fusion type.
- Type:
str
- method_name = 'Tabular2 uni-modal'ο
Name of the method.
- Type:
str
- modality_type = 'tabular2'ο
Modality type.
- Type:
str