yamle.methods.delta_uq module#
- class yamle.methods.delta_uq.DeltaUQMethod(**kwargs)[source]#
Bases:
MCSamplingMethodThis class is the extension of the base method for delta-UQ method.
The core of the method is in applying anchors during training and inference, the anchors are the samples themselves where the input of the network is: [x-anchor, anchor] where anchor is reshufled x.
Note that, this method requires a special treatment in case of data augmentation. The anchors during test should be from a training set and not from the test set. Hence we will cache some of the training samples.
- state_dict()[source]#
This method is used to get the state of the method.
- Return type:
Dict[str,Any]