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)ExampleMultiple-Choice Options
1What 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.
2What 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.
3What 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.
4What 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.
5What 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.
6What 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.
7What is a global minimum?A global minimum is the lowest point in the entire domain of the objective function.
8What 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.
9What 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.
10What 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.
11What is mutation in genetic algorithms?Mutation is a genetic operator that introduces random changes to individual solutions to maintain genetic diversity within the population.
12What 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.
13What 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.
14What 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.
15What 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.
16What 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.
17What 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.
18What 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.
19What 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.
20What 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.
21What 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.
22What 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.
23What 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.
24What 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.
25What 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.
26What is constrained optimization?Constrained optimization involves optimizing an objective function subject to certain constraints or limitations on the variables.
27What 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.
28What 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.
29What 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.
30What 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.
31What 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.
32What is a feasible solution?A feasible solution is a solution that satisfies all the constraints of an optimization problem.
33What 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.
34What 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.
35What 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.
36What 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.
37What 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.
38What 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.
39What 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.
40What 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.
41What 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.
42What 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.
43What 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.
44What 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.
45What is crossover in genetic algorithms?Crossover is a genetic operator used to combine the genetic information of two parent solutions to generate new offspring.