adapt.utils.make_classification_da
- adapt.utils.make_classification_da(n_samples=100, n_features=2, random_state=2)[source]
Generate a classification dataset for DA.
- Parameters
- n_samplesint, optional (default=100)
Size of source and target samples.
- n_featuresint, optional (default=2)
Number of features.
- random_state: int, optional (default=0)
Random state number.
- Returns
- Xsnumpy array
Source input data
- ysnumpy array
Source output data
- Xtnumpy array
Target input data
- ytnumpy array
Target output data