skada.deep.DeepCoralLoss

class skada.deep.DeepCoralLoss(assume_centered=False)[source]

Loss DeepCORAL

This loss reduces the distance between covariances of the source features and the target features. See [12].

Parameters:
assume_centered: bool, default=False

If True, data are not centered before computation.

References

[12]

Baochen Sun and Kate Saenko. Deep coral: Correlation alignment for deep domain adaptation. In ECCV Workshops, 2016.

forward(y_s, y_pred_s, y_pred_t, domain_pred_s, domain_pred_t, features_s, features_t)[source]

Compute the domain adaptation loss

Examples using skada.deep.DeepCoralLoss

Training setup for deep DA method.

Training setup for deep DA method.