pyqrack.stats¶
Submodules¶
Functions¶
|
Discretize selected features of a dataset into binary variables using numpy.linspace binning. |
Package Contents¶
- pyqrack.stats.quantize_by_range(data, feature_indices, bits)¶
Discretize selected features of a dataset into binary variables using numpy.linspace binning.
- Parameters:
data (np.ndarray) – Input data of shape (n_samples, n_features).
feature_indices (list[int]) – Indices of features to discretize.
bits (int) – Number of bits to represent each discretized feature (e.g., 2 bits = 4 quantiles).
- Returns:
Transformed data with selected features replaced by binary bit columns.
- Return type:
np.ndarray