ml_preprocessing
7.0.2, released 5 years ago by ml-algo.com
Popular data preprocessing algorithms for machine learning in Dart.
What it does
Provides data preprocessing algorithms like one-hot encoding, label encoding, numerical normalization, and standardization for machine learning workflows. It uses DataFrame structures to manipulate tabular datasets before model training.
AI-written summary of version 7.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building machine learning pipelines in Dart and need to encode categorical features.
- You need to normalize or standardize numerical datasets prior to training models.
Skip it when
- You are working on non-ML application tasks such as standard CRUD or UI state management.
- You need heavy deep learning frameworks that handle full tensor operations.
Strengths
- Provides a coherent Pipeline entity to chain multiple preprocessing steps.
- Supports common preprocessing algorithms like one-hot encoding, label encoding, normalization, and standardization.
Weaknesses
- Requires manual data preparation and DataFrame packaging.
- Limited to the algorithms implemented within the package.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Requires adding ml_dataframe as a dependency alongside ml_preprocessing.
final pipeline = Pipeline(dataFrame, [
toOneHotLabels(columnNames: ['Gender', 'Age', 'City_Category']),
toIntegerLabels(columnNames: ['Stay_In_Current_City_Years', 'Marital_Status']),
normalize(),
standardize(),
]);
final processed = pipeline.process(dataFrame);Alternatives
Packages that do the same job and could replace ml_preprocessing.
- flutter_litert
LiteRT (formerly TensorFlow Lite) Flutter plugin. Drop-in on-device ML inference with bundled native libraries for supported native platforms and web runtimes.
86Compare - whisper_ggml
On-device speech-to-text for Flutter powered by whisper.cpp
85Compare - xybrid_flutter
Run ML models on-device or in the cloud with hybrid routing and streaming inference.
80Compare - mediapipe_core
Shared layer for MediaPipe task packages providing runtime, model downloads, and browser support.
80Compare
Works with
Packages commonly used together with ml_preprocessing: ones it builds on, ones built on it, and its own family.
- quiverml_preprocessing depends on itA set of utility libraries for Dart containing collections, async tools, and testing helpers.
- ml_linalgml_preprocessing depends on itSIMD-based linear algebra and statistics library for Dart.
- ml_dataframeml_preprocessing depends on itAn in-memory untyped data storage with querying and modification capabilities.
- ml_algoBuilt on ml_preprocessingNative Dart implementation of machine learning algorithms and performance evaluation tools.