Skip to content

Repository files navigation

MLops_practice_project

This project is one of the practice project to implement all the things we learn until learn. Also save it for future reference Complete AI software Deployment with CI/CD. Thank You!

STEPS:

  1. create requirements.txt (pip install -r requirements.txt)
  2. create setup.py
  3. before run setup.py '''create src package(by adding init.py) in a src folder for check'''
  4. run setup.py(python setup.py install)
components: components are the steps we follows in training pipeline(data source,data ingestion, data transformation,model trainer,model monitoring,CI/CD pipeline,model deployment)
  1. create template.py (responsible for creating the entire project structure)
  2. code in template.py # we have to things in our project [components & pipeline(training, testing)]
  3. run template.py (python template.py)
  4. we can also use cookiecutter(optional)
  5. Write code on logger.py
  6. Write code for exception.py
  7. create .env variable (store database connection )
  8. write code in utils.py read_sql_data(for database connection)
  9. Start data ingestion(open components/data_ingestion.py)
  10. write code for run data ingestion in app.py
  11. use DVC(data version control) for track data like git (for big data)
  12. DVC Commands

dvc init, dvc add artifacts/raw.csv,

  1. use jupyter for research for training(USE EDA,model_training)

now we done the notebook code in pipeline format

  1. write code in data_transformation.py(feature_engineering)
  2. create save_object def in utils
  3. write code for model_trainer.py
  4. update utils
  5. after complete components ( time to build pipeline)
  6. 1- Prediction_pipeline
  7. create new app.py
  8. create folder templates (index.html, home.html)
  9. write code in both
  10. write code in training_pipeline.py
  11. write code in app.py(flask)
  12. run app.py(python app.py)
  13. check on crome (127.0.0.1:5000)
  14. call(127.0.0.1:5000/predictdata)

Screenshot from 2025-02-11 01-12-01

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages