skada.utils.extract_source_indices
- skada.utils.extract_source_indices(sample_domain)[source]
Extract the indices of the source samples.
- Parameters:
- sample_domainarray-like of shape (n_samples,)
Array specifying the domain labels for each sample.
- Returns:
- source_idxarray
Boolean array indicating source indices.
Examples using skada.utils.extract_source_indices

Reweighting method example on covariate shift dataset
Reweighting method example on covariate shift dataset