How hudaa0412/mlops_prediction_model works
This repository is an incomplete predictive-maintenance ML workflow. Running main.py initiates dataset ingestion, then preprocessing that removes duplicates, separates features and target, splits the data, transforms features, and resamples training data; the resulting arrays are assigned in the entry point. Ingestion and preprocessing use a shared logger. Model-building, evaluation, and prediction files are empty in the provided excerpts, so they are not represented as working product stages. The dataset is represented by its checked-in DVC pointer; the ingestion code uses a hard-coded local CSV path. No model or serving workflow is evidenced.
Main entry points: main.py Workflow entry · data_ingestion.py Dataset ingestion · data_preprocessing.py Feature preprocessing · logger.py Shared logger
Components 7
Workflow
- Workflow entry
main.py
Data handling
- Dataset ingestion
src/data_ingestion.py - Maintenance dataset
data/raw/preventative_maintainance_dataset.csv.dvc - Feature preprocessing
src/data_preprocessing.py
Observability
- Shared logger
src/logger.py - Application log
logs
Other components
- Workflow runner
Connections 8
- Workflow runner → Workflow entry: runs
main.py - Workflow entry → Dataset ingestion: calls
main.py - Dataset ingestion → Maintenance dataset: reads
src/data_ingestion.py - Workflow entry → Feature preprocessing: passes data
main.py - Feature preprocessing → Workflow entry: returns arrays
main.py - Dataset ingestion → Shared logger: logs events
src/data_ingestion.py - Feature preprocessing → Shared logger: logs events
src/data_preprocessing.py - Shared logger → Application log: writes
src/logger.py