Research Article
The Application of Differing Machine Learning Algorithms and Their Related Performance in Detecting Skin Cancers and Melanomas
Table 6
Execution time comparison for machine learning algorithms.
| Algorithm | Time taken for training (s) | Time taken for classification (s) |
| SVM | 493.871434 | 0.154563 | Naïve Bayes | 0.453653 | 0.140434 | Random forest with 2 trees | 0.6941016 | 0.081072 | Random forest with 5 trees | 1.056321 | 0.126287 | Random forest with 10 trees | 1.520123 | 0.186565 | Random forest with 20 trees | 2.312458 | 0.349988 | Random forest with 50 trees | 4.965323 | 0.788574 | CNN | 6.358789 | 0.047896 | KNN with k = 2 | 0 | 0.065487 | KNN with k = 3 | 0 | 0.210213 |
|
|