# An Improved CNN Model for Within-Project Software Defect Prediction
## 5 Results and Discussion
### Performance of the Improved CNN Model
The best F-measures for each row are highlighted in bold. \begin{table}
\begin{tabular}{c c c c c c c c c c} \hline \hline
**Project** & **Version** & **DT** & **RF** & **LR** & **NB** & **NET** & **FIX** & **RANDOM** & **Improved CNN** \\ \hline \multirow{4}{*}{Ant} & 1.3 & 0.50 & 0.39 & 0.50 & 0.63 & 0.18 & 0.00 & 0.49 & **0.67** \\ \cline{2-10}  & 1.4 & 0.56 & 0.29 & 0.29 & **0.58** & 0.05 & 0.00 & 0.51 & 0.51 \\ \cline{2-10}  & 1.5 & **0.51** & 0.44 & 0.47 & 0.69 & 0.17 & 0.00 & 0.50 & 0.28 \\ \cline{2-10}  & 1.6 & 0.66 & 0.66 & 0.64 & 0.67 & **0.69** & 0.00 & 0.48 & 0.53 \\ \cline{2-10}  & 1.7 & 0.65 & 0.60 & 0.55 & **0.68** & 0.50 & 0.00 & 0.51 & 0.46 \\ \hline \multirow{4}{*}{Camel} & 1.0 & 0.00 & 0.00 & 0.00 & **0.62** & 0.00 & 0.00 & 0.54 & 0.50 \\ \cline{2-10}  & 1.2 & 0.54 & 0.46 & 0.41 & 0.36 & 0.28 & 0.00 & 0.49 & **0.76** \\ \cline{2-10}  & 1.4 & 0.37 & 0.30 & 0.20 & 0.35 & 0.05 & 0.00 & 0.49 & **0.54** \\ \cline{2-10}  & 1.6 & 0.35 & 0.29 & 0.19 & 0.37 & 0.17 & 0.00 & 0.50 & **0.60** \\ \hline \multirow{4}{*}{Ivy} & 1.1 & 0.62 & 0.67 & 0.67 & 0.55 & **0.69** & 0.00 & 0.51 & 0.65 \\ \cline{2-10}  & 1.4 & 0.00 & 0.00 & 0.22 & 0.31 & 0.12 & 0.00 & 0.48 & **0.49** \\ \cline{2-10}  & 2.0 & 0.18 & 0.37 & 0.37 & **0.60** & 0.18 & 0.00 & 0.49 & 0.40 \\ \hline \multirow{4}{*}{Log4j} & 3.2 & 0.65 & 0.69 & **0.74** & 0.61 & 0.64 & 0.00 & 0.50 & 0.73 \\ \cline{2-10}  & 4.0 & 0.59 & 0.63 & 0.56 & 0.49 & 0.48 & 0.00 & 0.48 & **0.65** \\ \cline{2-10}  & 4.1 & 0.55 & 0.60 & **0.68** & 0.59 & 0.58 & 0.00 & 0.49 & 0.00 \\ \cline{2-10}  & 4.2 & 0.60 & 0.34 & 0.42 & 0.58 & 0.42 & 0.00 & 0.49 & **0.78** \\ \cline{2-10}  & 4.3 & 0.00 & 0.00 & 0.00 & **0.53** & 0.00 & 0.00 & 0.49 & 0.00 \\ \hline \multirow{4}{*}{Log4j} & 1.0 & 0.66 & 0.60 & 0.64 & 0.66 & 0.65 & 0.00 & 0.52 & **0.81** \\ \cline{2-10}  & 1.1 & 0.72 & 0.76 & 0.70 & 0.77 & **0.79** & 0.00 & 0.52 & 0.44 \\ \cline{2-10}  & 1.2 & 0.40 & 0.31 & 0.12 & **0.63** & 0.00 & 0.00 & 0.45 & 0.00 \\ \hline \multirow{4}{*}{Lucene} & 2.0 & 0.62 & 0.63 & 0.68 & 0.58 & 0.69 & 0.00 & 0.51 & **0.75** \\ \cline{2-10}  & 2.2 & 0.53 & **0.62** & 0.56 & 0.49 & 0.52 & 0.00 & 0.49 & **0.62** \\ \cline{2-10}  & 2.4 & 0.67 & 0.67 & **0.69** & 0.55 & 0.65 & 0.00 & 0.49 & 0.00 \\ \hline \multirow{4}{*}{Pbeans} & 1.0 & 0.75 & 0.77 & 0.60 & 0.71 & 0.28 & 0.00 & 0.53 & **0.89** \\ \cline{2-10}  & 2.0 & 0.32 & 0.45 & **0.68** & 0.33 & 0.18 & 0.00 & 0.50 & 0.67 \\ \hline \multirow{4}{*}{Poi} & 1.5 & **0.74** & 0.69 & 0.61 & 0.47 & 0.61 & 0.00 & 0.50 & 0.61 \\ \cline{2-10}  & 2.0 & 0.32 & 0.32 & 0.28 & 0.39 & 0.15 & 0.00 & **0.51** & 0.25 \\ \cline{2-10}  & 2.5 & 0.76 & 0.81 & 0.72 & 0.56 & 0.71 & 0.00 & 0.52 & **0.82** \\ \cline{2-10}  & 3.0 & 0.75 & **0.78** & 0.73 & 0.49 & 0.72 & 0.00 & 0.50 & 0.72 \\ \hline \multirow{4}{*}{Synapse} & 1.0 & 0.12 & 0.12 & 0.47 & **0.74** & 0.22 & 0.00 & 0.47 & 0.49 \\ \cline{2-10}  & 1.1 & 0.63 & 0.57 & 0.66 & 0.68 & 0.56 & 0.00 & 0.49 & **0.70** \\ \cline{2-10}  & 1.2 & 0.67 & 0.65 & 0.62 & 0.66 & 0.62 & 0.00 & 0.49 & **0.72** \\ \hline \multirow{4}{*}{Velocity} & 1.4 & 0.71 & **0.72** & 0.70 & 0.70 & 0.67 & 0.00 & 0.50 & 0.66 \\ \cline{2-10}  & 1.5 & 0.60 & **0.73** & 0.65 & 0.46 & 0.57 & 0.00 & 0.51 & 0.72 \\ \cline{2-10}  & 1.6 & 0.62 & 0.58 & 0.58 & 0.42 & 0.51 & 0.00 & 0.51 & **0.84** \\ \hline \multirow{4}{*}{Xalan} & 2.4 & 0.34 & 0.33 & 0.32 & **0.51** & 0.18 & 0.00 & 0.50 & 0.31 \\ \cline{2-10}  & 2.5 & 0.66 & 0.67 & 0.61 & 0.41 & 0.53 & 0.00 & 0.50 & **0.69** \\ \cline{2-10}  & 2.6 & 0.74 & 0.75 & 0.71 & 0.62 & 0.65 & 0.00 & 0.49 & **0.78** \\ \hline \multirow{4}{*}{Xerces} & Initial & **0.73** & 0.70 & 0.49 & 0.36 & 0.41 & 0.00 & 0.49 & 0.58 \\ \cline{2-10}  & 1.2 & 0.49 & 0.38 & **0.73** & 0.32 & 0.65 & 0.00 & 0.49 & 0.66 \\ \cline{2-10}  & 1.3 & 0.60 & 0.51 & 0.08 & 0.50 & 0.03 & 0.00 & 0.48 & **0.65** \\ \hline \multicolumn{2}{c}{average} & 0.52 & 0.51 & 0.50 & 0.54 & 0.41 & 0.00 & 0.50 & **0.56** \\ \hline \hline \end{tabular}
\end{table} 
Table 7: Performance comparison of different models on the PSC dataset.