How luispv05/predictive-maintenance works
This repository implements C-MAPSS remaining-useful-life prediction. The baseline and LightGBM workflows load train/test sensor data and RUL truth, build shared features, train and evaluate regressors; the advanced workflow additionally selects parameters with unit-grouped cross-validation. Feature construction covers sensor selection, scaling, rolling means/slopes, and clipped RUL labels. Edges reflect calls visible in the excerpts; the README only names the project, so it does not establish additional product capabilities or entry-point wiring.
Main entry points: build.py Feature builder · advanced.py LightGBM workflow · baseline.py Baseline workflow · cv.py Unit-grouped CV
Components 12
Data loading
- C-MAPSS loader
src/data/load.py
Feature engineering
- Feature builder
src/features/build.py - Sensor selection
src/features/rolling.py - Sensor scaling
src/features/scaling.py - Rolling means
src/features/rolling.py - Rolling slopes
src/features/slopes.py - RUL labels
src/features/rul.py
Modeling and evaluation
- Baseline workflow
src/models/baseline.py - LightGBM workflow
src/models/advanced.py - Prediction helpers
src/models/baseline.py - Prediction metrics
src/models/metrics.py - Unit-grouped CV
src/models/cv.py
Connections 14
- Baseline workflow → C-MAPSS loader: loads data
src/models/baseline.py - Baseline workflow → Feature builder: builds features
src/models/baseline.py - Baseline workflow → Prediction helpers: uses helpers
src/models/baseline.py - LightGBM workflow → C-MAPSS loader: loads data
src/models/advanced.py - LightGBM workflow → Feature builder: builds features
src/models/advanced.py - LightGBM workflow → Prediction helpers: uses helpers
src/models/advanced.py - LightGBM workflow → Unit-grouped CV: selects parameters
src/models/advanced.py - Feature builder → Sensor selection: selects sensors
src/features/build.py - Feature builder → Sensor scaling: scales sensors
src/features/build.py - Feature builder → Rolling means: adds means
src/features/build.py - Feature builder → Rolling slopes: adds slopes
src/features/build.py - Feature builder → RUL labels: adds labels
src/features/build.py - Prediction helpers → Prediction metrics: computes scores
src/models/baseline.py - Unit-grouped CV → Prediction metrics: computes RMSE
src/models/cv.py