adapt.utils.check_sample_weight

adapt.utils.check_sample_weight(sample_weight, X)[source]

Check sample weights.

Parameters
sample_weightarray

Sample weights.

Xarray

Input array

Returns
sample_weightarray