skada.DensityReweight
- skada.DensityReweight(base_estimator=None, weight_estimator=None)[source]
Density re-weighting pipeline adapter and estimator.
- Parameters:
- base_estimatorsklearn estimator, default=None
estimator used for fitting and prediction
- weight_estimatorestimator object, optional
The estimator to use to estimate the densities of source and target observations. If None, a KernelDensity estimator is used.
- Returns:
- pipelinesklearn pipeline
Pipeline containing the DensityReweight adapter and the base estimator.
Examples using skada.DensityReweight
Comparison of DA classification methods
Comparison of DA classification methods
Reweighting method example on covariate shift dataset
Reweighting method example on covariate shift dataset