GBM Returns the Best Prediction Performance among Regression Approaches: A Case Study of Stack Overflow Code Quality

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Licorish, Sherlock A., Woodford, Brendon, Vithanage, Lakmal Kiyaduwa, Omondiagbe, Osayande Pascal
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866912376634212352
author Licorish, Sherlock A.
Woodford, Brendon
Vithanage, Lakmal Kiyaduwa
Omondiagbe, Osayande Pascal
author_facet Licorish, Sherlock A.
Woodford, Brendon
Vithanage, Lakmal Kiyaduwa
Omondiagbe, Osayande Pascal
contents Practitioners are increasingly dependent on publicly available resources for supporting their knowledge needs during software development. This has thus caused a spotlight to be paced on these resources, where researchers have reported mixed outcomes around the quality of these resources. Stack Overflow, in particular, has been studied extensively, with evidence showing that code resources on this platform can be of poor quality at times. Limited research has explored the variables or factors that predict code quality on Stack Overflow, but instead has focused on ranking content, identifying defects and predicting future content. In many instances approaches used for prediction are not evaluated to identify the best techniques. Contextualizing the Stack Overflow code quality problem as regression-based, we examined the variables that predict Stack Overflow (Java) code quality, and the regression approach that provides the best predictive power. Six approaches were considered in our evaluation, where Gradient Boosting Machine (GBM) stood out. In addition, longer Stack Overflow code tended to have more code violations, questions that were scored higher also attracted more views and the more answers that are added to questions on Stack Overflow the more errors were typically observed in the code that was provided. Outcomes here point to the value of the GBM ensemble learning mechanism, and the need for the practitioner community to be prudent when contributing and reusing Stack Overflow Java coding resource.
format Preprint
id arxiv_https___arxiv_org_abs_2505_10019
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle GBM Returns the Best Prediction Performance among Regression Approaches: A Case Study of Stack Overflow Code Quality
Licorish, Sherlock A.
Woodford, Brendon
Vithanage, Lakmal Kiyaduwa
Omondiagbe, Osayande Pascal
Software Engineering
D.2.5; D.2.8; D.2.13; D.2.4
Practitioners are increasingly dependent on publicly available resources for supporting their knowledge needs during software development. This has thus caused a spotlight to be paced on these resources, where researchers have reported mixed outcomes around the quality of these resources. Stack Overflow, in particular, has been studied extensively, with evidence showing that code resources on this platform can be of poor quality at times. Limited research has explored the variables or factors that predict code quality on Stack Overflow, but instead has focused on ranking content, identifying defects and predicting future content. In many instances approaches used for prediction are not evaluated to identify the best techniques. Contextualizing the Stack Overflow code quality problem as regression-based, we examined the variables that predict Stack Overflow (Java) code quality, and the regression approach that provides the best predictive power. Six approaches were considered in our evaluation, where Gradient Boosting Machine (GBM) stood out. In addition, longer Stack Overflow code tended to have more code violations, questions that were scored higher also attracted more views and the more answers that are added to questions on Stack Overflow the more errors were typically observed in the code that was provided. Outcomes here point to the value of the GBM ensemble learning mechanism, and the need for the practitioner community to be prudent when contributing and reusing Stack Overflow Java coding resource.
title GBM Returns the Best Prediction Performance among Regression Approaches: A Case Study of Stack Overflow Code Quality
topic Software Engineering
D.2.5; D.2.8; D.2.13; D.2.4
url https://arxiv.org/abs/2505.10019