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.

AlgorithmTime taken for training (s)Time taken for classification (s)

SVM493.8714340.154563
Naïve Bayes0.4536530.140434
Random forest with 2 trees0.69410160.081072
Random forest with 5 trees1.0563210.126287
Random forest with 10 trees1.5201230.186565
Random forest with 20 trees2.3124580.349988
Random forest with 50 trees4.9653230.788574
CNN6.3587890.047896
KNN with k = 200.065487
KNN with k = 300.210213