Decision Trees: Entropy, Information Gain and Gini, With Python and C++
Grow a CART decision tree in Python, see Gini and entropy disagree, choose the depth honestly and run the trained tree in C++ at 16 ns per row.
Grow a CART decision tree in Python, see Gini and entropy disagree, choose the depth honestly and run the trained tree in C++ at 16 ns per row.
Build k-nearest neighbors in Python and C++, see why one unscaled feature ruins it, choose k honestly and compare five implementations for speed.
Build logistic regression two ways in NumPy, match scikit-learn, pick a decision threshold properly and see why separable data needs regularization.
Derive linear regression, build it in NumPy two ways, match scikit-learn to 1e-13 and see why gradient descent needs scaled features, with data.