Accurate line search for secondary targets: Why do you think the steepest direction still turns back
Calculates the maximum length of the secondary target along the negative gradient, explaining that the adjacent gradient is not equal to the common direction.
Learning objectives and first steps2 objectives . 1 first fix
Try to do it after reading
- Compute the maximum length of secondary target along a negative gradient
- Explaining that the adjacent gradient is not in the same direction
Suggested first
- Gradient and vector calculations
The best of each step may still be slow overall
For a regular secondary function, you can precisely find the best steps along the current negative gradient direction. It sounds like the best step, but it's just the best in a straight line, and it's not like the space as a whole gets to its smallest point. Different curvatures can cause the subsequent gradients to change their direction and create familiar retraces.
2D calculation
Take f(x,y) =( x ²+4 y 2)/2, current position (1,1), gradient g =(1,4)。 The gradient is 17 square length, g and Hessian have a secondary length of 65, so the optimal length is 17/65, or about 0.261538. The new point is (48/65, 3/65) with a target of approximately 0.276923 and an original target of 2.5. The new gradient is (48/65,-12/65), which accumulates with the old gradient point at 48/65-48/65 = 0. This means that the number of hours online is extremely high and the first step in the old search direction is zero. It does not mean that there were no errors in the follow-up, nor does it mean that all historical directions were in Hessian in common.
Where's the formula coming from
Incorporates a secondary function along x minus α g, which will be given a one-dimensional secondary version of α. For alpha, you get the value of the molecular denominator. (a) The denominator is a positive characterization that is being relied upon; If the curve is zero or negative, this non-binding line minima formula may be ineffective and more general situations need to be addressed.
Separate from comb gradients
The common gradient uses historical information more effectively for secondary systems by constructing different orientation relationships. The sharpest drop in the proximate Oyster is not an impostor to common conditions; The two terms are similar in geometry. Understanding this difference helps to avoid treating a beautiful two-dimensional map as a universal trajectory for all optimists.
Practice boundary
Real loss is not necessarily a fixed secondary function, and Hessian may change with point. When using the exact steps here for a partial secondary approximation, the true target should also be checked and cannot be called a global precision line search for the original function. A similar matrix multiply, random batch and float error can also make a strict orthodoxy almost possible. This small example can be used as a baseline to verify the length, objectives and old and new gradient relationships before resolving more complex questions. Even if the mathematical update is correct, the model ' s data definition, independent validation and downstream decision-making are subject to additional acceptance; Numerical convergence is only one dimension.
Self-measurement and provocator
Why isn't the best step a quarter simple?
The curvature along the current gradient depends on the co-activities of the two coordinates, with an exact margin of 17/65, while one fourth is based on another option based on the maximum curvature.
Does the new and old gradient point add up to the point where it has reached its best advantage?
No, it's not. The new gradient remains non-zero, except that the lead number along the previous straight line is zero.
Sources and reconciliations
Definitions, methods and interfaces are available.
Figures and calculations are reorganized according to this chapter. Mathematical measurements, framework operations and real business effects are described separately in the body of the text.