adapt.utils.make_regression_da

adapt.utils.make_regression_da(n_samples=100, n_features=1, random_state=0)[source]

Generate a regression dataset for DA.

Parameters
n_samplesint (default=100)

Size of source and target samples.

n_featuresint (default=1)

Sample dimension.

random_state: int (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