ROC curve and AUC explained with tested scikit-learn code: TPR, FPR, comparing models, interpreting AUC and precision-recall for imbalanced data.
Read More »Confusion Matrix in Machine Learning (with Python Example)
Confusion matrix explained with a tested scikit-learn example: TP, TN, FP, FN, classification report, metrics formulas and the effect of thresholds.
Read More »Regularization in Machine Learning: Ridge, Lasso and Elastic Net
Ridge (L2), Lasso (L1) and Elastic Net regularization compared on real data with tested scikit-learn code, alpha tuning and feature selection.
Read More »F1 Score
Updated: 28 November 2026Level: BeginnerReading time: about 7 minutesscikit-learn 1.x · tested The F1 score combines precision and recall into a single number. It is high only when both are high, which makes it a good single metric for imbalanced classification. Prerequisites Precision and Recall. Formula F1 = 2 × …
Read More »Precision Score
Updated: 28 November 2026Level: BeginnerReading time: about 7 minutesscikit-learn 1.x · tested Precision answers: when the model predicts positive, how often is it correct? High precision means few false alarms. Prerequisites Accuracy, Precision, Recall and F1 overview. Formula Precision = TP / (TP + FP)The denominator is every case the …
Read More »Recall Score
Updated: 28 November 2026Level: BeginnerReading time: about 7 minutesscikit-learn 1.x · tested Recall (also called sensitivity or true positive rate) answers: of all the actual positives, how many did the model find? High recall means few missed cases. Prerequisites Accuracy, Precision, Recall and F1 overview. Formula Recall = TP / …
Read More »Accuracy, Precision, Recall, and F1-Score
Updated: 28 November 2026Level: BeginnerReading time: about 12 minutesscikit-learn 1.x · tested Accuracy alone can be misleading. To judge a classifier properly you need the confusion matrix and three more metrics: precision, recall and F1 score. This overview explains all four with one simple medical example. What You Will Learn …
Read More »Support Vector Classification
Updated: 28 November 2026Level: IntermediateReading time: about 12 minutesscikit-learn 1.x · tested A Support Vector Machine (SVM) classifier finds the boundary that separates classes with the widest possible margin. With kernels it can draw curved boundaries, and it is very effective on small and medium datasets with many features. What …
Read More »K Nearest Neighbor Classification – KNN
Updated: 28 November 2026Level: IntermediateReading time: about 10 minutesscikit-learn 1.x · tested K-Nearest Neighbors (KNN) classifies a new example by looking at the K most similar examples in the training data and taking a majority vote. There is no real “training”: the model simply remembers the data. What You Will …
Read More »Naive Bayes Classification
Updated: 28 November 2026Level: IntermediateReading time: about 10 minutesscikit-learn 1.x · tested Naive Bayes classifiers use probability and Bayes’ theorem. They are extremely fast, need little data, and are a strong baseline for text classification such as spam filtering. What You Will Learn Bayes’ theorem The “naive” independence assumption Gaussian, …
Read More »
Machine Learning Tutorials, Courses and Certifications