1/26
Flashcards covering AI model evaluation metrics, confusion matrix elements, error calculations, ethical considerations, and real-world classification scenarios based on the lecture notes.
Model Evaluation
The process of using different evaluation metrics to understand a machine learning model's performance, strengths, weaknesses, and reliability by feeding a test dataset into the model and comparing predicted outputs with actual answers.
Prediction
The output or estimated value generated by an AI model when given an input.
Reality
The actual real-world scenario or ground-truth label corresponding to a data point against which an AI model's prediction is evaluated.
Confusion Matrix
A record or table used to store and visualize the results of the comparison between an AI model's prediction and reality, where the sum of values in each row represents the total instances of a given actual class.
Accuracy (Classification)
An evaluation metric measuring the total proportion of correct predictions out of all observations, calculated as Accuracy=TP+TN+FP+FNTP+TN. It is most suitable for balanced datasets where all errors are equally important.
True Positive (TP)
An evaluation outcome where the model correctly predicts the positive class, meaning the positive prediction matches the actual positive reality.
True Negative (TN)
An evaluation outcome where the model correctly predicts the negative class, meaning the negative prediction matches the actual negative reality.
False Positive (FP)
An evaluation outcome where the model incorrectly predicts a negative instance as belonging to the positive class.
False Negative (FN)
An evaluation outcome where the model incorrectly predicts a positive instance as belonging to the negative class.
Precision
The ratio of correctly classified positive examples to the total number of predicted positive examples, given by Precision=TP+FPTP. It is essential when the cost of False Positives must be minimized.
Recall (Sensitivity / True Positive Rate)
The fraction of actual positive cases that are correctly identified by the model, given by Recall=TP+FNTP. It is essential when the cost of False Negatives must be minimized.
F1 Score
The harmonic mean and measure of balance between precision and recall, calculated as F1 Score=2×Precision+RecallPrecision×Recall. It equals 1 (or 100%) when a model achieves perfect accuracy.
Absolute Error
The numerical magnitude of the difference between the actual value and the predicted value in continuous prediction models, defined as Absolute Error=∣Actual−Predicted∣.
Error Rate
The proportion of the error relative to the actual value, calculated as Error Rate=ActualError, or the fraction of incorrect predictions out of total exam questions.
Regression Accuracy Formula
The calculation used to assess numeric predictions, where Accuracy=1−Error Rate and Accuracy %=Accuracy×100.
Overfitting
A condition in which a model memorizes the training data perfectly and always predicts correct labels for training points, but fails to generalize or make accurate predictions on unseen data.
Train-Test Split
A validation technique for supervised machine learning where a sufficiently large dataset is divided into two separate subsets: one for training model parameters and one for testing model performance on unseen data.
Training Data
The dataset used to train and fit the parameters of a machine learning model.
Testing Data
Unseen data reserved exclusively to assess the generalization capability, performance, and reliability of a trained model.
AI Bias
Systematic and unfair prejudice in machine learning decisions, such as an Amazon recruiting engine penalizing resumes containing the word 'women' because it learned to favor male candidates.
Data Privacy
The ethical and legal protection of personal data from unauthorized access or improper handling, exemplified by the Indian Government banning applications whose hostile foreign servers mishandled user data.
Corpus
The term used to describe the entire collection of textual data gathered across all relevant documents.
Sentence Segmentation
The natural language processing step where a whole textual corpus is divided into individual sentences before tokenization.
Recommendation System
An AI application that suggests relevant items or media to users based on behavioral data, such as a music streaming platform recommending songs and playlists from listening history.
High-Precision Use Cases
Scenarios where False Positives are intolerable and must be heavily suppressed, such as Spam Email Filtering, Legal Cases ('innocent until proven guilty'), and Gold Mining exploration.
High-Recall Use Cases
Scenarios where False Negatives carry dangerous or life-threatening costs and must be eliminated, such as Cancer Diagnosis, Viral Outbreak detection, and Safe Content Filtering for children.
Ethical Concerns in Model Evaluation
Key principles that must be upheld when evaluating AI systems, specifically Transparency, Accountability, and the elimination of Bias.