Skip to content

neural-tangjie/NTJ-Python_Model_Evaluation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 

Repository files navigation

NTJ-Python_Model_Evaluation

:octocat: This repository introduces and summarizes common model evaluation indicators and methods.

The notes contain the modules outlined below:

No. Module Gist
1 Overview
  • 1.1 What is Model Evaluation
  • 1.2 Type of Model Evaluation
  • 1.3 Over Fitting and Under Fitting
  • 1.4 Model Generalization Ability
  • 2 Classification Model
  • 2.1 Confusion Matrix
  • 2.2 Accuracy, Recall, Precision, etc.
  • 2.3 F1 Score
  • 2.4 AUC and its Index
  • 2.5 PR Curve
  • 3 Regression Model
  • 3.1 Vector Distance
  • 3.2 Mean Absolute Error (MAE)
  • 3.3 Mean Square Error (MSE)
  • 3.4 Root Mean Square Error (RMSE)
  • 3.5 Explain Variation
  • 3.6 Determination Coefficient
  • 4 Clustering Model
  • 4.1 Rand Index
  • 4.2 Mutual Information
  • 4.3 Profile Coefficient
  • Overview

    1.1 What's mdoel evaluation

    Classification Model

    2.1 Confusion matrix

    predicted actual values
    ⬇️ βž• βž–
    βž• TP (1βˆ’Ξ²) FP (Ξ±)
    type I error
    βž– FN (Ξ²)
    type II error
    TN (1βˆ’Ξ±)
  • A type I error corresponds to convicting an innocent defendant; misdiagnosis
  • A type II error corresponds to acquitting a criminal; missed diagnosis

  • Table of error types

    In inferential statistics, the null hypothesis (often denoted $H_0$)is that two (possibilities) are the same.
    ☝🏿 Hypothesis: "The patient has pneumonia."
    πŸ‘ŒπŸΏ Null hypothesis $H_0$ βœ…: "The patient is healthy."

    error types $H_0$ βœ… $H_0$❌
    πŸ™‡πŸ»β€β™€οΈ TN(1βˆ’Ξ±) FN (Ξ²)
    type II error
    πŸ™…β€β™€οΈ FP (Ξ±)
    type I error
    TP (1βˆ’Ξ²)

    $H_0$ βœ…

  • 😁 The people is healthy, but the physician judges the patient was ill.
  • πŸ™…β€β™€οΈ A type I error is the mistaken rejection of a null hypothesis as the result of a test procedure.

  • $H_0$ ❌

  • 🀧 The patient has symptoms of fever, cough, expectoration and chest pain, but the physician judges the patient was ok.
  • πŸ™‡πŸ»β€β™€οΈ A type II error is the mistaken failure to reject the null hypothesis as the result of a test procedure.

  • 2.2 Accuracy, Recall, Precision

    term formula definition
    accuracy
    recall
    precision

    About

    :octocat: This repository introduces and summarizes common model evaluation indicators and methods.

    Topics

    Resources

    License

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published