qxmt.datasets.raw_preprocess.filter module#
- qxmt.datasets.raw_preprocess.filter.filter_by_categorical(X, y, drop_na=True)#
Filter the dataset by categorical features.
- Parameters:
X (np.ndarray) – input data
y (np.ndarray) – label of input data
drop_na (bool, optional) – drop NaN values. Defaults to True.
- Returns:
filtered data
- Return type:
RAW_DATASET_TYPE