Skip to main content
. 2020 May 15;20(10):2809. doi: 10.3390/s20102809

Table 26.

Time and Space Complexities of Machine Learning Algorithms.

Model Name Time Complexity Space Complexity
KNN O(knd) O(nd)
Logistic Regression O(nd) O(d)
SVM O() O(kd)
Naive Bayes O(nd) O(cd)
Random Forest O(nlog(n)dk) O(depth of tree ∗ k)