The physlearn.supervised.utils._data_checks module provides basic
utilities for automated data checking.
Checks if the design matrix uses a pandas data representation.
X (array-like of shape = [n_samples, n_features]) – The design matrix, where each row corresponds to an example and the column(s) correspond to the feature(s).
X
pd.Series or pd.DataFrame
Checks if the target matrix uses a pandas data representation.
y (array-like of shape = [n_samples] or shape = [n_samples, n_targets]) – The target matrix, where each row corresponds to an example and the column(s) correspond to the single-target(s).
y
pd.Series or pd.DataFrame
Checks if the design and target matrices use a pandas data representations.
X (array-like of shape = [n_samples, n_features]) – The design matrix, where each row corresponds to an example and the column(s) correspond to the feature(s).
y (array-like of shape = [n_samples] or shape = [n_samples, n_targets]) – The target matrix, where each row corresponds to an example and the column(s) correspond to the single-target(s).
data
tuple
Bundles the pandas data checks together.
X (array-like of shape = [n_samples, n_features] or None, optional (default=None)) – The design matrix, where each row corresponds to an example and the column(s) correspond to the feature(s).
y (array-like of shape = [n_samples] or shape = [n_samples, n_targets] or None, optional (default=None)) – The target matrix, where each row corresponds to an example and the column(s) correspond to the single-target(s).
data
tuple, pd.Series, or pd.DataFrame
Counts the number of features in the design matrix.
X (array-like of shape = [n_samples, n_features] or None, optional (default=None)) – The design matrix, where each row corresponds to an example and the column(s) correspond to the feature(s).
dim
int
Counts the number of targets in the target matrix.
y (array-like of shape = [n_samples] or shape = [n_samples, n_targets] or None, optional (default=None)) – The target matrix, where each row corresponds to an example and the column(s) correspond to the single-target(s).
dim
int
Counts the number of observations in the target matrix.
y (array-like of shape = [n_samples] or shape = [n_samples, n_targets] or None, optional (default=None)) – The target matrix, where each row corresponds to an example and the column(s) correspond to the single-target(s).
samples
int