Optimization Algorithms
Core optimization techniques used in machine learning, including gradient descent variants, evolutionary algorithms, and constrained optimization methods
- Category
- Data Science
- Level
- advanced
- Languages
- en → en
- Cards
- 45
- Markdown
- Optimization Algorithms (.md)
Flashcards (45)
| # | Front (Term / Question) | Back (Definition / Answer) | Example | Multiple-Choice Options |
|---|---|---|---|---|
| 1 | What is a local minimum? | A local minimum is a point in the objective function where the function value is lower than at neighboring points, but not necessarily the lowest overall. | ||
| 2 | What is stochastic gradient descent (SGD)? | Stochastic gradient descent is a variant of gradient descent where the parameters are updated using only one training example at a time. | ||
| 3 | What is an optimization algorithm? | An optimization algorithm is a method used to find the best solution or outcome from a set of possible choices, often by minimizing or maximizing a function. | ||
| 4 | What is random search in hyperparameter tuning? | Random search is a hyperparameter tuning method that randomly samples combinations of hyperparameters from a specified distribution to find the best configuration. | ||
| 5 | What is transfer learning in the context of optimization? | Transfer learning is a technique where a model trained on one task is adapted to a different but related task, often requiring less optimization effort. | ||
| 6 | What is mini-batch gradient descent? | Mini-batch gradient descent is a compromise between batch and stochastic gradient descent, where the parameters are updated using a small batch of training examples. | ||
| 7 | What is a global minimum? | A global minimum is the lowest point in the entire domain of the objective function. | ||
| 8 | What is the purpose of hyperparameter tuning? | Hyperparameter tuning is the process of optimizing the hyperparameters of a model to improve its performance on a given task. | ||
| 9 | What is simulated annealing? | Simulated annealing is a probabilistic optimization technique that mimics the cooling process of metals, allowing for exploration of the solution space to escape local minima. | ||
| 10 | What is grid search in hyperparameter tuning? | Grid search is a method of hyperparameter tuning that exhaustively searches through a specified subset of hyperparameters to find the best combination. | ||
| 11 | What is mutation in genetic algorithms? | Mutation is a genetic operator that introduces random changes to individual solutions to maintain genetic diversity within the population. | ||
| 12 | What is the Hessian matrix? | The Hessian matrix is a square matrix of second-order partial derivatives of a scalar-valued function, used in optimization to analyze curvature. | ||
| 13 | What is the purpose of dropout in neural networks? | Dropout is a regularization technique that randomly sets a fraction of the neurons to zero during training to prevent overfitting. | ||
| 14 | What is momentum in optimization? | Momentum is a technique that helps accelerate gradient descent by adding a fraction of the previous update to the current update, smoothing out the optimization path. | ||
| 15 | What is the difference between exact and approximate line search? | Exact line search finds the optimal step size that minimizes the objective function along a direction, while approximate line search uses heuristics to find a satisfactory step size. | ||
| 16 | What is the purpose of the learning rate schedule? | A learning rate schedule adjusts the learning rate during training to improve convergence and performance, often decreasing it over time. | ||
| 17 | What is the purpose of line search in optimization? | Line search is a technique used to find an appropriate step size along a given direction to ensure sufficient decrease in the objective function. | ||
| 18 | What is the role of feature scaling in optimization? | Feature scaling is the process of normalizing or standardizing input features to ensure that they contribute equally to the optimization process. | ||
| 19 | What is a genetic algorithm? | A genetic algorithm is a type of evolutionary algorithm that uses techniques inspired by natural evolution, such as selection, crossover, and mutation to optimize solutions. | ||
| 20 | What is L1 regularization? | L1 regularization, also known as Lasso, adds the absolute value of the coefficients as a penalty to the objective function, promoting sparsity in the model. | ||
| 21 | What is the difference between convex and non-convex optimization? | Convex optimization problems have a single global minimum, while non-convex problems may have multiple local minima and global minima. | ||
| 22 | What is overfitting in the context of optimization? | Overfitting occurs when a model learns the training data too well, capturing noise and outliers, leading to poor generalization on unseen data. | ||
| 23 | What is the purpose of the Adam optimizer? | Adam (Adaptive Moment Estimation) is an optimization algorithm that combines the advantages of AdaGrad and RMSProp, adapting the learning rate based on first and second moments of gradients. | ||
| 24 | What is the learning rate in gradient descent? | The learning rate is a hyperparameter that determines the size of the steps taken towards the minimum of the objective function during optimization. | ||
| 25 | What is L2 regularization? | L2 regularization, also known as Ridge, adds the squared value of the coefficients as a penalty to the objective function, discouraging large coefficients. | ||
| 26 | What is constrained optimization? | Constrained optimization involves optimizing an objective function subject to certain constraints or limitations on the variables. | ||
| 27 | What is a saddle point? | A saddle point is a point in the optimization landscape that is neither a local minimum nor a local maximum, often leading to challenges in optimization. | ||
| 28 | What is Bayesian optimization? | Bayesian optimization is a probabilistic model-based optimization technique that uses a surrogate model to find the minimum of expensive-to-evaluate functions. | ||
| 29 | What is the objective function in optimization? | The objective function is the function that needs to be optimized, either minimized or maximized, based on the problem at hand. | ||
| 30 | What is gradient descent? | Gradient descent is an iterative optimization algorithm used to minimize the objective function by updating parameters in the opposite direction of the gradient. | ||
| 31 | What is regularization in optimization? | Regularization is a technique used to prevent overfitting by adding a penalty term to the objective function, discouraging overly complex models. | ||
| 32 | What is a feasible solution? | A feasible solution is a solution that satisfies all the constraints of an optimization problem. | ||
| 33 | What is the difference between deterministic and stochastic optimization? | Deterministic optimization assumes that all parameters are known and fixed, while stochastic optimization incorporates randomness and uncertainty in the parameters. | ||
| 34 | What is the difference between first-order and second-order optimization methods? | First-order methods use gradient information, while second-order methods use both gradient and Hessian (second derivative) information for optimization. | ||
| 35 | What is the role of selection in genetic algorithms? | Selection is the process of choosing the best individuals from a population to create offspring for the next generation, based on their fitness. | ||
| 36 | What is the role of batch normalization in optimization? | Batch normalization is a technique that normalizes the inputs of each layer in a neural network, improving convergence speed and stability during training. | ||
| 37 | What are evolutionary algorithms? | Evolutionary algorithms are optimization algorithms inspired by the process of natural selection, using mechanisms such as mutation, crossover, and selection to evolve solutions. | ||
| 38 | What is the difference between supervised and unsupervised optimization? | Supervised optimization involves labeled data to guide the optimization process, while unsupervised optimization deals with unlabeled data without explicit guidance. | ||
| 39 | What is the role of convergence criteria in optimization? | Convergence criteria are conditions that determine when an optimization algorithm should stop, often based on changes in the objective function or parameter values. | ||
| 40 | What is a non-linear optimization problem? | A non-linear optimization problem is one where the objective function or any of the constraints are non-linear functions of the decision variables. | ||
| 41 | What is the Karush-Kuhn-Tucker (KKT) conditions? | The KKT conditions are a set of conditions that must be satisfied for a solution to be optimal in constrained optimization problems. | ||
| 42 | What are the main types of gradient descent? | The main types of gradient descent are batch gradient descent, stochastic gradient descent (SGD), and mini-batch gradient descent. | ||
| 43 | What is Newton's method? | Newton's method is a second-order optimization algorithm that uses the Hessian matrix to find the roots of the derivative, converging faster than first-order methods. | ||
| 44 | What is a surrogate function? | A surrogate function is an approximation of the objective function used in optimization to simplify the problem and reduce computational cost. | ||
| 45 | What is crossover in genetic algorithms? | Crossover is a genetic operator used to combine the genetic information of two parent solutions to generate new offspring. |