fusilli.fusionmodels.tabularfusion.decisionο
Decision fusion of two types of tabular data.
Classes
|
This class implements a model that fuses the two types of tabular data using a decision fusion |
- class TabularDecision(prediction_task, data_dims, multiclass_dimensions)[source]ο
Bases:
ParentFusionModel
,Module
- This class implements a model that fuses the two types of tabular data using a decision fusion
approach.
- mod1_layersο
Dictionary containing the layers of the 1st type of tabular data.
- Type:
nn.ModuleDict
- mod2_layersο
Dictionary containing the layers of the 2nd type of tabular data.
- Type:
nn.ModuleDict
- fused_layersο
Sequential layer containing the fused layers.
- Type:
nn.Sequential
- final_prediction_tab1ο
Sequential layer containing the final prediction layers for the first tabular data.
- Type:
nn.Sequential
- final_prediction_tab2ο
Sequential layer containing the final prediction layers for the second tabular data.
- Type:
nn.Sequential
- fusion_operationο
Function that performs the fusion operation. Default is torch.mean(torch.stack([x, y]), dim=0).
- Type:
function
- __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 (tuple) β Tuple containing the two types of tabular data. (tab1, tab2)
- Returns:
List containing the fused prediction.
- Return type:
list
- fusion_type = 'operation'ο
Type of fusion.
- Type:
str
- method_name = 'Tabular decision'ο
Name of the method.
- Type:
str
- modality_type = 'tabular_tabular'ο
Type of modality.
- Type:
str