tabensemb.model.AbstractWrapper#
- class tabensemb.model.AbstractWrapper(model: AbstractModel)[source]#
Bases:
objectFor those required deep learning models, this is a wrapper to make them have hidden information like
hidden_representationor something else extracted from the forward process.- Attributes:
hidden_rep_dimThe dimension of
hidden_representation().hidden_representationThe extracted information of a deep learning model when forward-passing a batch.
Methods
- __init__(model: AbstractModel)[source]#
eval()Reset the overridden forward method of the torch.nn.Module to ensure pickling compatibility.
Override the forward method of a torch.nn.Module to record hidden representations.