Skip to content

use ML to predict whether software code is likely to contain bugs using historical metrics like code complexity, revisions, and authorship.

License

Notifications You must be signed in to change notification settings

veydantkatyal/software-bug-prediction

Repository files navigation

Software Bug Prediction

Predicting software bugs before they occur can save time, money, and effort in the software development life cycle. This project uses machine learning techniques to predict the likelihood of bugs based on historical code and commit metrics.

Problem Statement

Software bugs are costly and time-consuming. Early prediction of bugs can help in proactive debugging and testing. This project aims to use machine learning models to predict whether a piece of code or commit is likely to contain a bug based on historical features.

Tech Stack

  • Language: Python
  • ML Libraries: scikit-learn, pandas, numpy, matplotlib, seaborn
  • Modeling: Logistic Regression, Random Forest, XGBoost
  • Evaluation: Accuracy, Precision, Recall, F1-Score, ROC AUC

How to Run

  1. Clone the repo:

    git clone https://github.com/veydantkatyal/software-bug-prediction.git
    cd software-bug-prediction
  2. Install dependencies:

    pip install -r requirements.txt
  3. Run the hupyter notebook:

    jupyter notebook bug_prediction_.ipynb.ipynb

License

This project is open-source licensed under MIT License.

About

use ML to predict whether software code is likely to contain bugs using historical metrics like code complexity, revisions, and authorship.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published