1What is a model in Computer Science?
A specification of a mathematical or probabilistic relationship between different variables in a dataset.
2What 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.
3What is supervised learning?
It involves models trained on labeled data to predict outcomes based on input variables.
4What is unsupervised learning?
It involves models that work on unlabeled data to find hidden patterns or groupings, such as clustering.
5What is reinforcement learning?
It is a type of machine learning where a model learns through trial and error, guided by rewards or penalties.
6What is over-fitting?
Producing a model that performs well on training data but poorly on new, unseen data.
7What is under-fitting?
Producing a model that does not perform well on training data and does not generalize well to new data.
8What 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.
9What is variance in machine learning?
The variability of model predictions for a given dataset, where high variance leads to poor performance on new data.
10What is feature selection?
The process of selecting a subset of relevant features from the original dataset to improve model efficiency and accuracy.
11What is feature extraction?
The process of deriving new features from the original data to enhance the model's performance.
12How is a balanced model achieved?
By minimizing bias and variance to reduce total prediction errors.
13What is a train dataset?
A dataset used to train and teach the model, typically 70% of the input dataset.
14What is a test dataset?
A dataset used to evaluate the model’s performance, typically 30% of the input dataset.
15What is the objective of machine learning?
To build a model that learns from historical data and makes accurate predictions or decisions on new data.
16What is the key benefit of feature extraction?
It reduces model complexity, enhances computational efficiency, and reduces generalization errors introduced by noise.
17What is a confusion matrix?
A confusion matrix is a method used to evaluate the performance of a classification model by measuring its correctness.
18What are the four variables in a confusion matrix?
True Positive (TP), True Negative (TN), False Positive (FP), and False Negative (FN).
19What 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.
20What 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.
21What 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.
22What 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).
23What is precision in the context of classification?
Precision is the proportion of true positives out of all predicted positives, calculated as TP / (TP + FP).
24What is sensitivity or recall?
Sensitivity (or recall) is the proportion of actual positives that were correctly predicted, calculated as TP / (TP + FN).
25What is the F1 score?
The F1 score is a balanced measure of accuracy, calculated as 2TP / (2TP + FP + FN), harmonizing precision and recall.
26What 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.
27What 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.
28What 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.
29What 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.
30What 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.
31What 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.
32What 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.
33What is Naïve Bayes used for?
To predict categorical outcomes based on conditional probability.
34What does Naïve Bayes assume about features?
It assumes that all features are independent of each other.
35What is Bayes' theorem based on?
It is based on conditional probability.
36What is a common application of Naïve Bayes?
Filtering junk email.
37What does Naïve Bayes use to classify text?
Word frequencies or word count.
38What is the main advantage of Naïve Bayes?
It processes very fast and can easily be trained on small datasets.
39What is the major disadvantage of Naïve Bayes?
It assumes all variables are independent, which can oversimplify relationships.
40What is conditional independence in Naïve Bayes?
It means that given random variables X, Y, and Z, X is independent of Y given Z.