AIML Flashcards
aiml
What is supervised learning, and why is it used?
Learning with labels attached. Trained to generalize new features in the dataset.
What is unsupervised learning, and why is it used?
Learning with features but no labels. Trained to predict future information, using a hypothesis of equation y = p1(x) + p0.
What is cost?
Poorness of fitted line to data.
What is the K-NN algorithm?
Supervised learning algorithm to classify new incoming data with low complexity
What are three advantages of the K-NN algorithm?
Simple to implement.
Flexible to all features and distance equations.
Easily handles multi-class data.
What are three disadvantages of the K-NN algorithm?
Large search problem to find nearest neighbors, can be intensive
Requires a large amount of stored data with many classes
Distance function should be meaningful
How does K-NN operate?
Choose some K as the number of neighbors to take.
Locate K nearest neighbors for unclassified example. Should not be multiple of K. Optimize K on observation.
Most votes wins.
What is the K-means Clustering algorithm?
Unsupervised learner for classification or regression
Finds K groups in the set, defined by centroids.
Guaranteed to converge on a result, though it may not be local optimum
What are three advantages of the K-means clustering algorithm?
Can be used for any kind of grouping
Thanks to the simple layout of data, new data can easily be applied to a cluster
Clustering allows finding groups that have formed organically without definition
What are three disadvantages of the K-means clustering algorithm?
Cannot handle outliers
Cannot handle complicated cluster types
Cluster assignments change with each run
How does K-means clustering work?
Randomly generates K centroid locations in result space
Each point assigned to nearest centroid
Centroid relocated to mean of all assigned points
Iterates until stopping, due to no change or sum of distances minimized, iteration cap etc.
What is the search space?
Graph representing how good each solution is, attempting to find the global optimum (vs. the local optimum)
What are the components of a neuron?
Synapses, receiving numerical input
Summation sub-unit sums weighted inputs to single value
Activation sub-unit maps to new output
Output through axon to all connected neurons
What is a hidden layer?
Layers between the input and output.
What is feed-forward?
The input is fed through all connections, weighted and passed forward. An output is produced.