L7 - Classifiers, Perceptrons, MLP Flashcards

1
Q

What is the difference between linear regression and logisitic regression?

A

Linear deals with predicting a continuous value. Logistic is a classification
process that classifies data into a category via binary classification.

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

In image classification, what training data issue might cause poor classification correctness?

A

Narrow training data. I.e training data where each data looks very similar

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

What type of learning is classification?

A

Supervised.

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

What is Logistic Regression? What does X and Y represent?

A

A binary classification algorithm whereby the model generates a probability of a data being either 1 or 0.
X represents continuous data, Y represents binary classification 1 or 0.

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

Explain how image classification using logisic regression would work to identify a start? Luminosity***

A

X is luminosity, Y is the classification. Depending on the luminosity, the model would predit whether the image
is a star.

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

What is the probability theshold in classification models?

A

A probability threshold hyperparameter we set that determines the certainty with which predictions are made. For example,
if we choose a threshold of 0.8, every data above 0.8 will be assigned 1, and all below will be 0.

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

Give examples of when we would specifically set a high or low probability threshold in logistic regression?

A
  • High if we need high certainty, for example, detecting if cells are cancerous.
  • Low if we can deal with less certainty.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Why do we tune the cost function in logistic regression?

A

Because we want to minimise the model error, resulting in greater classifcation capabilities.

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

How do we score the logistic regresion models accuracy?

A

Through a confusion matrix we can find the accuracy.

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

What is the equation for accuracy in a classification model?

A

TP + TN / TP + TN + FP + FN

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

If we have a graph area populated with data points, what is the ideal scenario for effective classification?

A

That the data points are linearly separable, enabling accurate classification.

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

What is the Perceptron? What is the inspiration for it?

A

It’s an algorithm used for classification.
Inspired by the way in which neurons operate.

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

How does the Perceptron algorithm work?

A

Takes K X data points as input. Multiplies each X by an associated weight and feeds into a threshold function.
Threshold function operates on the inputs. E.g Sum or product etc.
Outputs 1 or 0 based on whether the threshold function outputs a Y above or below the chosen threshold hyperparameter.

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

What does learning the weights in the Perceptron algorithm enable us to do?

A

Find the best classification line that separates the data.

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

What is the weakness of the Perceptron? What is the solution to this?

A

Doesn’t perform well on data that can’t be linearly separated.
Solution is the Multi-layer Perceptron.

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

Explain the MLP…

A

A solution to the non-linearity issues that the Perceptron faces.
MLP’s have an input layer, hidden layers, and an output layer with a single classification.
Works like the perceptron but propagates through many hidden layers to accomodate non-linearity.

17
Q

MLP enables non-linear classifications to be made. But at what cost?

A

Far greater complexity and cost due to high number of combinations of perceptron connections throughout the layers.

18
Q

What type of network is the MLP?

A

A neural network.

19
Q

In Neural Networks, what does depth refer to?

A

The number of hidden layers.