Skip to content
pubscout

ml_preprocessing

7.0.2, released 5 years ago by ml-algo.com

Popular data preprocessing algorithms for machine learning in Dart.

$ flutter pub add ml_preprocessing
Source repository

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.

  • whisper_ggml

    On-device speech-to-text for Flutter powered by whisper.cpp

  • xybrid_flutter

    Run ML models on-device or in the cloud with hybrid routing and streaming inference.

  • mediapipe_core

    Shared layer for MediaPipe task packages providing runtime, model downloads, and browser support.

Works with

Packages commonly used together with ml_preprocessing: ones it builds on, ones built on it, and its own family.