ml-engine-pipeline

Generate a sklearn Pipeline with predict_proba and a matching _config.json for MLInferenceEngine.

1|Updated Apr 27, 2026
One-click install
npx skills add https://github.com/dwaynimay/IoTProject --skill ml-engine-pipeline
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ml-engine-pipeline
Source: https://github.com/dwaynimay/IoTProject/tree/main/server/apps/ml_inference/docs
Command: npx skills add https://github.com/dwaynimay/IoTProject --skill ml-engine-pipeline

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Skill ini membantu user membuat model ML yang kompatibel dengan MLInferenceEngine dengan cara menyiapkan proses training end-to-end, fitur, label, dan verifikasi kontrak engine agar tidak terjadi mismatch saat deploy.

Core Features & Use Cases

  • Membangun sklearn Pipeline lengkap: melatih classifier hingga siap disimpan sebagai .pkl dengan predict_proba(X).
  • Menghasilkan _config.json otomatis dari FEATURE_SCHEMA yang sama persis dengan urutan fitur saat training.
  • Verifikasi kompatibilitas engine sebelum model disimpan (cek predict_proba, shape output, sum probabilitas, urutan kelas, dan jumlah fitur).
  • Cocok untuk skenario training IMU/PPG/fusion: mendukung pembuatan FEATURE_SCHEMA untuk stat, derived (SMV), cross-signal, dan meta, lalu menghasilkan notebook Colab yang siap jalan.
  • Use case contoh: melatih classifier aktivitas (mis. duduk/jalan/jatuh/tidur) dari dataset IMU/PPG lalu deploy model agar engine dapat melakukan inference per window menggunakan fitur yang konsisten.

Quick Start

Gunakan skill ini untuk membuat notebook Colab yang melatih classifier dari dataset Anda, menyimpan pipeline.pkl, dan meng-generate _config.json yang langsung compatible dengan MLInferenceEngine.

Frequently Asked Questions about ml-engine-pipeline

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate an sklearn pipeline compatible with an inference engine for deployment?

You generate an sklearn training pipeline by building a classifier with a predict_proba interface and a matching _config.json file. This Skill ensures engine compatibility by validating probability shape, sum constraints, and LabelEncoder class ordering before deployment.

How do I ensure consistent feature ordering when training and deploying an sklearn classifier?

You ensure consistent feature ordering by defining a FEATURE_SCHEMA as the single source of truth. This schema enforces identical feature sequences across the sklearn training pipeline and the inference engine during deployment.

Can I train an ML classifier for IMU and PPG sensor datasets in Google Colab?

Yes, you can train an ML classifier for IMU and PPG windowed sensor datasets in Google Colab. This Skill generates ready-to-run notebooks that build pipelines supporting stat, derived, cross-signal, and meta features for activity classification.

Why does my ML model fail deployment due to a probability shape or class ordering mismatch?

Your ML model fails deployment due to a mismatch between the sklearn LabelEncoder class ordering and the inference engine's expected probability shape. This Skill performs pre-save compatibility checks to verify probability sums and prevent these deployment contract errors.

What is the best way to validate an sklearn model before saving it for production inference?

The best way to validate an sklearn model before production inference is to run pre-save engine compatibility checks. This verifies the predict_proba interface, output shape, probability sum constraints, and feature count against the inference engine's requirements.