Description
Introduce a trueml.preprocessing module that provides essential data preprocessing utilities for machine learning workflows. The module should be internally modular while exposing a simple, unified public API through trueml.preprocessing.
The goal is to provide lightweight, educational implementations that integrate naturally with the rest of TrueML.
Goals
Proposed Package Structure
trueml/
└── preprocessing/
├── __init__.py
├── scaling/
│ ├── __init__.py
│ ├── standard.py
│ ├── minmax.py
│ ├── robust.py
│ ├── maxabs.py
│ └── normalizer.py
├── encoding/
│ ├── __init__.py
│ ├── label.py
│ ├── onehot.py
│ └── ordinal.py
├── imputation/
│ ├── __init__.py
│ ├── mean.py
│ ├── median.py
│ ├── most_frequent.py
│ └── constant.py
├── transformation/
│ ├── __init__.py
│ ├── log.py
│ ├── polynomial.py
│ └── power.py
├── feature_selection/
│ ├── __init__.py
│ ├── variance_threshold.py
│ ├── correlation.py
│ └── select_k_best.py
├── decomposition/
│ ├── __init__.py
│ └── pca.py
├── sampling/
│ ├── __init__.py
│ ├── oversampling.py
│ └── undersampling.py
└── splitting.py
Public API
from trueml.preprocessing import (
StandardScaler,
MinMaxScaler,
RobustScaler,
LabelEncoder,
OneHotEncoder,
MeanImputer,
train_test_split,
)
Tasks
Scaling
Encoding
Missing Value Imputation
Data Splitting
Feature Transformation
Feature Selection
Dimensionality Reduction
Sampling
Future Enhancements
Acceptance Criteria
Description
Introduce a
trueml.preprocessingmodule that provides essential data preprocessing utilities for machine learning workflows. The module should be internally modular while exposing a simple, unified public API throughtrueml.preprocessing.The goal is to provide lightweight, educational implementations that integrate naturally with the rest of TrueML.
Goals
trueml.preprocessingpackage.trueml.preprocessing.Proposed Package Structure
Public API
Tasks
Scaling
Encoding
Missing Value Imputation
Data Splitting
Feature Transformation
Feature Selection
Dimensionality Reduction
Sampling
Future Enhancements
Acceptance Criteria
trueml.preprocessing.