Jupyter Notebook 1.2 - Intro to ML Flashcards

1
Q

What are error functions used for?

A

They compute the cost of using the current parameters of the model

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

What is a hyperparameter in machine learning?

A

A hyperparameter is a configuration that is set before the learning process begins and controls the behavior of a machine learning algorithm. Unlike model parameters, which are learned from the data, hyperparameters need to be manually set or tuned.

Examples:
* n_estimators in Random Forest (number of trees)
* learning_rate in gradient descent algorithms
* max_depth in Decision Trees

Tune hyperparameters:
* Grid search
* Random search
* Bayesian optimization

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

What is regularization in machine learning?

A

Regularization is a technique used to prevent overfitting by adding a penalty term to the loss function. It discourages the model from becoming overly complex by limiting the size of the model’s parameters (weights).

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