CS 325 T7 L1,2,3

40 flashcardsby ClementC → Cc
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

All cards

1
What is a model in Computer Science?
A specification of a mathematical or probabilistic relationship between different variables in a dataset.
2
What does a machine learning model do?
It builds algorithms that learn from data and make predictions or decisions based on new unseen data without human intervention.
3
What is supervised learning?
It involves models trained on labeled data to predict outcomes based on input variables.
4
What is unsupervised learning?
It involves models that work on unlabeled data to find hidden patterns or groupings, such as clustering.
5
What is reinforcement learning?
It is a type of machine learning where a model learns through trial and error, guided by rewards or penalties.
6
What is over-fitting?
Producing a model that performs well on training data but poorly on new, unseen data.
7
What is under-fitting?
Producing a model that does not perform well on training data and does not generalize well to new data.
8
What is bias in machine learning?
The difference between the average prediction of the model and the true value, leading to oversimplification and high prediction error.
9
What is variance in machine learning?
The variability of model predictions for a given dataset, where high variance leads to poor performance on new data.
10
What is feature selection?
The process of selecting a subset of relevant features from the original dataset to improve model efficiency and accuracy.
11
What is feature extraction?
The process of deriving new features from the original data to enhance the model's performance.
12
How is a balanced model achieved?
By minimizing bias and variance to reduce total prediction errors.
13
What is a train dataset?
A dataset used to train and teach the model, typically 70% of the input dataset.
14
What is a test dataset?
A dataset used to evaluate the model’s performance, typically 30% of the input dataset.
15
What is the objective of machine learning?
To build a model that learns from historical data and makes accurate predictions or decisions on new data.
16
What is the key benefit of feature extraction?
It reduces model complexity, enhances computational efficiency, and reduces generalization errors introduced by noise.
17
What is a confusion matrix?
A confusion matrix is a method used to evaluate the performance of a classification model by measuring its correctness.
18
What are the four variables in a confusion matrix?
True Positive (TP), True Negative (TN), False Positive (FP), and False Negative (FN).
19
What does a True Positive (TP) represent?
TP is when the model correctly predicts a positive class, like predicting a dog, and the actual outcome is also a dog.
20
What is a False Positive (FP)?
FP is when the model predicts a positive class incorrectly, like predicting a dog when the actual outcome is a cat. This is also called Type I error.
21
What is a False Negative (FN)?
FN is when the model fails to predict a positive class, like predicting not a dog when the actual outcome is a dog. This is also called Type II error.
22
What is accuracy in the context of a confusion matrix?
Accuracy is the proportion of correct predictions out of the total predictions, calculated as (TP + TN) / (TP + TN + FP + FN).
23
What is precision in the context of classification?
Precision is the proportion of true positives out of all predicted positives, calculated as TP / (TP + FP).
24
What is sensitivity or recall?
Sensitivity (or recall) is the proportion of actual positives that were correctly predicted, calculated as TP / (TP + FN).
25
What is the F1 score?
The F1 score is a balanced measure of accuracy, calculated as 2TP / (2TP + FP + FN), harmonizing precision and recall.
26
What is the k-NN algorithm based on?
The k-NN algorithm is based on the assumption that similar things exist in close proximity, classifying data based on its nearest neighbors.
27
What is the main disadvantage of the k-NN algorithm?
The main disadvantage of k-NN is its high computational cost, especially when calculating distances between all training data points.
28
What is the curse of dimensionality?
The curse of dimensionality refers to the exponential increase in modeling error as the number of features or dimensions in the data increases, making the model lose predictive power.
29
What technique helps reduce the curse of dimensionality?
Dimensionality reduction is a technique that helps minimize the curse of dimensionality by reducing the number of features used in modeling.
30
What happens if the value of "k" in k-NN is too low?
If "k" is too low (like k=1 or k=3), the model can be noisy due to the influence of outliers.
31
What happens when "k" in k-NN is too high?
If "k" is too high, it can lead to computational difficulties and loss of model effectiveness.
32
What is the preferred value for "k" in the k-NN algorithm?
The preferred value for "k" is usually 5, as it's a good balance between model accuracy and computational efficiency.
33
What is Naïve Bayes used for?
To predict categorical outcomes based on conditional probability.
34
What does Naïve Bayes assume about features?
It assumes that all features are independent of each other.
35
What is Bayes' theorem based on?
It is based on conditional probability.
36
What is a common application of Naïve Bayes?
Filtering junk email.
37
What does Naïve Bayes use to classify text?
Word frequencies or word count.
38
What is the main advantage of Naïve Bayes?
It processes very fast and can easily be trained on small datasets.
39
What is the major disadvantage of Naïve Bayes?
It assumes all variables are independent, which can oversimplify relationships.
40
What is conditional independence in Naïve Bayes?
It means that given random variables X, Y, and Z, X is independent of Y given Z.
Study all 40 cards for free