#1 India's Top IT Training Institute

×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →
Modelling

Model Evaluation in Machine Learning

Model evaluation measures how well a trained model performs, both on the data it was trained on and — more importantly — on new, unseen data.

Classification Metrics

MetricWhat It Measures
AccuracyOverall percentage of correct predictions
PrecisionOf predicted positives, how many were actually positive
RecallOf actual positives, how many were correctly identified
F1-ScoreHarmonic mean of precision and recall
ROC-AUCModel's ability to distinguish between classes across thresholds

Regression Metrics

  • MAE (Mean Absolute Error): Average absolute difference between predicted and actual values.
  • MSE / RMSE: Penalizes larger errors more heavily than MAE.
  • R-squared: Proportion of variance in the target explained by the model.

Validation Strategies

  • Train/Test Split: A simple one-time split to estimate generalization.
  • K-Fold Cross-Validation: Splits data into K folds, training and testing K times for a more robust estimate.
  • Stratified Sampling: Preserves class proportions across folds, important for imbalanced data.

Why Accuracy Alone Can Mislead

On an imbalanced dataset (e.g., 95% non-fraud, 5% fraud), a model that always predicts "non-fraud" would score 95% accuracy while being completely useless. This is why precision, recall, and F1-score matter — especially for imbalanced problems.

Key Takeaway: Choose evaluation metrics that reflect the actual cost of errors in your business problem — accuracy alone rarely tells the full story.

Ready to master Machine Learning?

Build real-world machine learning skills with hands-on projects, mentor-led sessions, and industry-relevant tools.

Explore Course