Introduction to AI Flashcards

(13 cards)

1
Q

What is the NEarest Neighbour Classifier?

A

New test data is classified by calculating the distance to the nearest neighbour, it then is classified the same as this neighbour

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

what is the formula for Euclidean Distance? (2,5) to (6,8)

A

sqrt((2-6)^2 + (5-8)^2) = sqrt(25) = 5

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

what is the formula for Manhattan Distance? (2,5) to (6,8)

A

2-6 + 5-8 = 4 + 3 = 7

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

What is K Nearest Neighbour Classifier?

A

Takes K - Nearest Points instead of only one and the majority label becomes the classifier of the training data

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

How do we calculate classification accuracy?

A

(No. of correction predictions / total tested patterns) x 100

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

Describe K Means Clustering Algorithm

A

Choose Centroids at random,
Assign each data point to its closest cluster(compute distance)
Calculate new cluster centre (mean position of points in cluster)
Repeat algorithm until centroids converge

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

What is an individual in the Genetic Algorithm

A

Representative of a candidate solution to the problem the algorithm is trying to solve

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

What is a fitness function?

A

Evaluates how useful or close to the solution the candidate solution is.

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

Describe the general structure/flow of a genetic algorithm

A

Create Population - Compute Fitness - Select Best Individuals - Modify best individuals - compute fitness of offspring - stop - return best individual

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

What are individuals in the Simple Genetic Algorithm

A

Binary Strings

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

What are the two operators involved in the Genetic Algorithm?

A

CrossOver - divide both bits in half and swap vertically
Mutation - Change one of the bits to 0 or 1

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

How is reproduction done in the genetic algorithm?

A

After fitness is calculated, percentages are used to construct a chance wheel. Then it is spun so the population remains the same, but new parents are created

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