skada.DiscriminatorReweight

skada.DiscriminatorReweight(base_estimator=None, domain_classifier=None)[source]

Discriminator re-weighting pipeline adapter and estimator.

see [1] for details.

Parameters:
base_estimatorsklearn estimator, default=None

estimator used for fitting and prediction

domain_classifiersklearn classifier, optional

Classifier used to predict the domains. If None, a LogisticRegression is used.

Returns:
pipelinesklearn pipeline

Pipeline containing the DiscriminatorReweight adapter and the base estimator.

References

[1]

Hidetoshi Shimodaira. Improving predictive inference under covariate shift by weighting the log-likelihood function. In Journal of Statistical Planning and Inference, 2000.

Examples using skada.DiscriminatorReweight

Comparison of DA classification methods

Comparison of DA classification methods

Reweighting method example on covariate shift dataset

Reweighting method example on covariate shift dataset