Expand description
Feature scaling, splitting and expansion.
See the book entry Foundations.
Structs§
- MinMax
Scaler - Rescales each column linearly onto
[0, 1](constant columns map to 0). - Standard
Scaler - Standardises each column to zero mean and unit variance (constant columns are only centred).
Functions§
- polynomial_
features - Polynomial feature expansion of a single column up to
degree(columnsx, x², ..., x^degree). - select
- Selects entries of a vector.
- select_
labels - Selects entries of a label slice.
- select_
rows - Selects rows of a matrix.
- train_
test_ split - Shuffles sample indices and splits them into
(train, test)index lists, withtest_fractionof the samples (at least one, and leaving at least one) in the test set.