multi-class classification Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Unnamed: 0

A

Unnamed: 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  1. Definition of Multi-Class Classification
A

Multi-class classification is a type of machine learning problem where an instance can be classified into one of three or more classes. It extends the idea of binary classification which deals with only two classes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. Examples
A

An example of a multi-class classification problem is digit recognition, where the aim is to categorize images into one of the 10 classes (digits 0 to 9). Another example is predicting the species of iris flowers based on sepal and petal measurements, a classic dataset in machine learning, which has 3 classes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  1. Techniques
A

Various machine learning algorithms can handle multi-class classification out-of-the-box like K-nearest neighbors (KNN), decision trees, random forests, naive bayes, gradient boosting, and neural networks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  1. One-vs-Rest (OvR) or One-vs-All (OvA)
A

This strategy involves training a single classifier per class, with the samples of that class as positive samples and all other samples as negatives. During inference, we select the class which outputs the highest confidence score.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  1. One-vs-One (OvO)
A

In this approach, one classifier is trained per pair of classes. At the prediction stage, the class which received the most votes is selected. OvO requires to train N(N-1)/2 classifiers where N is the number of classes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  1. Softmax Function
A

In the context of multi-class classification, softmax function is often used in the output layer of a neural network. It converts a vector of scores into a probability distribution over the classes, which can be used to predict the most likely class, or to provide confidence scores for the possible classes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  1. Loss Functions
A

Multi-class classification problems often use the cross-entropy loss function, which measures the dissimilarity between the predicted probability distribution and the true distribution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
  1. Performance Measures
A

Accuracy, confusion matrix, precision, recall, and F1-score are commonly used to evaluate the performance of multi-class classification models. Some of these metrics can be calculated globally, or for each class individually.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
  1. Challenges
A

Some challenges include handling imbalanced datasets, where some classes have many more samples than others, and dealing with high-dimensional output spaces, where the number of classes is very large.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
  1. Extensions
A

Some problems might involve predicting multiple classes for each instance (multi-label classification), or the classes might be related in a hierarchical structure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly