Views
No views yet
🎉 Status: Complete - All pipeline steps successfully deployed!
mlops/
├── data/ # Raw and processed data
│ ├── engine_data.csv # Original engine sensor dataset
│ └── processed/ # Train/test splits
│ ├── train.csv
│ └── test.csv
├── notebooks/ # EDA and experimentation notebooks
├── src/ # Main source code
│ ├── config.py # Central configuration
│ ├── data_register.py # Register raw data to HF Dataset
│ ├── data_prep.py # Data cleaning and splitting
│ ├── hf_data_utils.py # HF Dataset Hub utilities
│ ├── train.py # Model training with MLflow
│ ├── hf_model_utils.py # HF Model Hub utilities
│ ├── inference.py # Prediction utilities
│ ├── app.py # Streamlit web application
│ └── deploy_to_hf.py # Deploy to HF Space
├── .github/
│ └── workflows/
│ └── pipeline.yml # CI/CD pipeline
├── Dockerfile # Container definition for deployment
├── requirements.txt # Python dependencies
└── README.md # This filesrc/config.py – Central configuration (paths, Hugging Face repo names, MLflow config)src/data_register.py – Registers raw dataset to Hugging Face Dataset Hubsrc/data_prep.py – Loads data, cleans it, and creates train/test splitssrc/train.py – Model training, hyperparameter tuning, MLflow loggingsrc/app.py – Streamlit web application for interactive predictionssrc/deploy_to_hf.py – Deploys app to Hugging Face Space.github/workflows/pipeline.yml – Automated CI/CD pipelinesrc/data_register.pyananttripathiak/engine-maintenance-dataset with data/engine_data.csvsrc/eda.py (or use notebooks)src/data_prep.pydata/train.csv and data/test.csv in dataset reposrc/train.pyananttripathiak/engine-maintenance-model with trained modelsrc/app.py - Streamlit web applicationDockerfile - Container definitionsrc/deploy_to_hf.py - Deploys to Hugging Face Spaceananttripathiak/engine-maintenance-space.github/workflows/pipeline.ymlregister-dataset → runs src/data_register.pydata-prep → runs src/data_prep.pymodel-training → runs src/train.pydeploy-hosting → runs src/deploy_to_hf.py1git clone https://github.com/ananttripathi/engine-predictive-maintenance.git
2cd engine-predictive-maintenance1python -m venv .venv
2source .venv/bin/activate # On Windows: .venv\Scripts\activate
3pip install -r requirements.txt1# Register data
2python src/data_register.py
3
4# Prepare data
5python src/data_prep.py
6
7# Train model
8python src/train.py
9
10# Run app locally
11streamlit run src/app.pymain branch via GitHub Actions. View workflow runs at:
🔄 GitHub Actionsananttripathiakananttripathiananttripathiak/engine-maintenance-datasetananttripathiak/engine-maintenance-modelananttripathiak/engine-maintenance-spaceananttripathi/engine-predictive-maintenancesrc/config.py with your Hugging Face username:1HF_DATASET_REPO = os.getenv("HF_DATASET_REPO", "ananttripathiak/engine-maintenance-dataset")
2HF_MODEL_REPO = os.getenv("HF_MODEL_REPO", "ananttripathiak/engine-maintenance-model")
3HF_SPACE_REPO = os.getenv("HF_SPACE_REPO", "ananttripathiak/engine-maintenance-space")1export HF_TOKEN="hf_your_token_here"
2export HF_DATASET_REPO="ananttripathiak/engine-maintenance-dataset"
3export HF_MODEL_REPO="ananttripathiak/engine-maintenance-model"
4export HF_SPACE_REPO="ananttripathiak/engine-maintenance-space"engine-predictive-maintenance)mlops folder to it:
1git init
2git add .
3git commit -m "Initial commit: Predictive maintenance MLOps pipeline"
4git remote add origin https://github.com/your-username/engine-predictive-maintenance.git
5git push -u origin mainHF_TOKEN – Your Hugging Face access token (from https://huggingface.co/settings/tokens)HF_DATASET_REPO – e.g., ananttripathiak/engine-maintenance-datasetHF_MODEL_REPO – e.g., ananttripathiak/engine-maintenance-modelHF_SPACE_REPO – e.g., ananttripathiak/engine-maintenance-spaceCONFIGURATION_GUIDE.md