FlashKeepers

Machine Learning · College · College and University

ML II: Regression and Classification

Linear and logistic regression, loss functions, kNN, naive Bayes, SVMs and decision boundaries.

About this set

39 basic cards for College Machine Learning. It opens with "What loss function does linear regression minimize?" and "Linear regression output: y = ?". Study it alongside the other College sets below.

39 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What loss function does linear regression minimize?
Show answerMean squared error (MSE), the average of squared differences between predicted and actual values.
Linear regression output: y = ?
Show answerw0 + w1*x1 + w2*x2 + ... + wn*xn (or w_T * x, a linear combination of features)
Gradient descent does what in each iteration?
Show answerUpdates parameters in the direction that reduces the loss.
What is cross-entropy loss used for?
Show answerMeasuring error in classification problems, especially with probabilities.
Hinge loss is used by which classifier?
Show answerSupport Vector Machines (SVMs).
Logistic regression uses which function to output probabilities?
Show answerThe sigmoid function: 1 / (1 + e^(-z))
What is the output range of sigmoid function?
Show answer(0, 1), representing probability of the positive class.
kNN predicts by doing what?
Show answerTaking the majority vote (or mean for regression) of its k nearest neighbors.
What happens to the decision boundary when k increases in kNN?
Show answerIt becomes smoother and less sensitive to individual noisy points.
The core assumption in Naive Bayes is that features are what, given the class?
Show answerConditionally independent: each feature contributes independently to the class probability.
Naive Bayes applies which theorem to compute P(class | features)?
Show answerBayes theorem: P(C|X) = P(X|C) * P(C) / P(X)
SVMs maximize what between the classes?
Show answerThe margin, the distance between the decision boundary and the nearest training points.
Support vectors in SVM are which training points?
Show answerThe points closest to the decision boundary, which define the margin.
What does the kernel trick do in SVMs?
Show answerMaps data to a higher-dimensional space for non-linear separation without explicitly computing the coordinates.
RBF (Radial Basis Function) kernel is good for what type of data?
Show answerData that requires non-linear decision boundaries.

24 more cards in the app

Study this set free