#include <Encoder.h>
◆ OneHotEncoder()
OneHotEncoder::OneHotEncoder |
( |
| ) |
|
|
inline |
◆ fit()
void OneHotEncoder::fit |
( |
const Matrix< double > & |
X, |
|
|
const Matrix< double > & |
y |
|
) |
| |
|
inlineoverridevirtual |
Implements training algorithm
- Parameters
-
X | array-like with the shape: [n_samples, n_features] |
y | array-like with shape: [n_samples, 1] |
- Returns
- this
Implements Predictor.
◆ transform()
Matrix< double > OneHotEncoder::transform |
( |
const Matrix< double > & |
in | ) |
|
|
inlineoverridevirtual |
◆ unique_values
Matrix<int> OneHotEncoder::unique_values |
|
private |
The documentation for this class was generated from the following file: