Machine Learning Flashcards

(24 cards)

1
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Machine Learning?

A

Machine Learning allows computers to learn from data and make predictions or decisions without explicit programming.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are features in ML?

A

Features are the input variables (columns) used to make predictions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the label in ML?

A

The label is the target variable you want to predict.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are observations?

A

Observations are the rows or records in your dataset.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the three types of Machine Learning?

A

Supervised Learning, Unsupervised Learning, Reinforcement Learning.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Supervised Learning?

A

A type of ML where the label (output) is known and provided during training.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a Regression problem?

A

A supervised learning task where the label is continuous (e.g., price, temperature).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Give examples of regression algorithms.

A

Linear Regression, Support Vector Regressor, Decision Tree Regressor, Random Forest Regressor.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a Classification problem?

A

A supervised learning task where the label is categorical (e.g., spam or not, class A/B/C).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Give examples of classification algorithms.

A

Logistic Regression, Decision Tree Classifier, Random Forest, KNN, Naive Bayes, SVM.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is Unsupervised Learning?

A

A type of ML where the model learns patterns or structure from data without known labels.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Give examples of unsupervised algorithms.

A

K-Means, Hierarchical Clustering, Apriori Algorithm, Anomaly Detection.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is Reinforcement Learning?

A

A type of ML where the model learns through rewards and penalties via trial and error.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the first step in the ML pipeline?

A

Identify the problem type: supervised, unsupervised, or reinforcement.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How can you gather data for ML?

A

Via surveys, company databases, web scraping, interviews.

17
Q

What happens during data preprocessing?

A

Clean column names, remove nulls, handle outliers, fix duplicates.

18
Q

What tools are used in data preprocessing?

A

Pandas, Excel.

19
Q

What is the purpose of Exploratory Data Analysis (EDA)?

A

To understand data distribution, structure, and spot issues before modeling.

20
Q

What are common EDA methods?

A

df.head(), df.info(), df.describe(), df.shape, value_counts(), visualization.

21
Q

How do you split data for training and testing?

A

Use train_test_split() from sklearn.model_selection.

22
Q

How do you evaluate a regression model?

A

Using metrics like MAE, MSE, and RMSE.

23
Q

How do you evaluate a classification model?

A

Using accuracy, precision, recall, F1-score, and confusion matrix.

24
Q

What can you do if your model performs poorly?

A

Get more data, clean data better, try feature engineering, tune hyperparameters, or switch models.