ml Flashcards
How do neural networks work?
Input layer
1+ hidden layers
Output layer
all neurons in each layer connected to all neurons in the next layer “fully connected”
Each neuron adds up the inputs, puts the sum through an activation function
Each connection has a weight which multiplies the value by a certain amount
What are the 5 categories of neuron in CNNS?
Input - usually in 2d grid for image input
CONV -Layer that performs a convolution
RELU - activation function
POOL - sample down or average the inputs
Fully connected - usually at output stage
How does K-means work?
Assign feature vector to class based on the current means of each class (feature vector takes the closest class as it’s class)
Update the location of each class mean after all feature vectors have been assigned
Benefits/drawbacks k-means
Global optimum not guaranteed
Stochastic
but very fast to run
What is wisard?
Basic pattern recognition
Uses blocks of memory
Binary images
Choose random pixel patterns and set to 1 and 0 based on the pixel values
Testing: take the input and test over many different locations, gives a score
Highest score of all trained recognisers wins :P
What are SVMs?
Linear classifiers
Can be made to do non-linear using kernel tricks
finds the hyperplane that best separates the two classes
Deterministic