A Review of Code Defect Likelihood Using ML Methods
Keywords:
Review, code defect, likelihood, methodAbstract
Abstract
Software begets defects and defects are inevitable in software design and coding. This paper focused on five machine learning analysis models (MLAM); Support Vector Machine, Random Forest, K-Nearest Neighbor, Classification and Regression Tree, and Linear Discriminant Analysis. These models are trained to detect software defects using the software defect dataset from Promise data repository. The collected dataset is preprocessed to reduce the amount of redundant features using a dimension reduction algorithm called Principal Component Analysis. The transformed dataset is then used in training the five MLAM to predict software defect as a classification task. Real life software packages are analyzed and code attribute values such as line of code, cyclomatic complexity, line of comment, number of operators, number of operands, and so on are extracted for use in testing the trained models. To ascertain the efficiency of the system and also select the best algorithm for prediction of software, the performance of the trained models is evaluated; using the metrics; accuracy, error rate, precision, and recall. These models are ranked with respect to their performance and the best model (model with the highest accuracy) is selected and recommended for the task of software defect prediction.
Downloads
Published
Issue
Section
License
Declaration and Copyright Transfer Form
(to be completed by authors)
I/ We, the undersigned author(s) of the submitted manuscript, hereby declare, that the above manuscript which is submitted for publication in the STM Journals(s), is not published already in part or whole (except in the form of abstract) in any journal or magazine for private or public circulation, and, is not under consideration of publication elsewhere.
- I/We will not withdraw the manuscript after 1 week of submission as I have read the Author Guidelines and will adhere to the guidelines.
- I/We Author(s ) have niether given nor will give this manuscript elsewhere for publishing after submitting in STM Journal(s).
- I/ We have read the original version of the manuscript and am/ are responsible for the thought contents embodied in it. The work dealt in the manuscript is my/ our own, and my/ our individual contribution to this work is significant enough to qualify for authorship.
- I/We also agree to the authorship of the article in the following order:
Author’s name
1. ________________
2. ________________
3. ________________
4. ________________
| We Author(s) tick this box and would request you to consider it as our signature as we agree to the terms of this Copyright Notice, which will apply to this submission if and when it is published by this journal. |