gradient-methods

Solve optimization problems with gradient descent, momentum, and Newton's methods.

8|1|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/scooter-lacroix/Maestro --skill gradient-methods
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gradient-methods
Source: https://github.com/scooter-lacroix/Maestro/tree/main/maestro/skills/math/math/optimization/gradient-methods
Command: npx skills add https://github.com/scooter-lacroix/Maestro --skill gradient-methods

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides strategies and tools for solving optimization problems using gradient-based methods, helping users find optimal solutions efficiently.

Core Features & Use Cases

  • Gradient Descent Variants: Implements basic and accelerated gradient descent, including momentum and Nesterov methods.
  • Step Size Selection: Offers guidance on choosing appropriate step sizes through fixed, backtracking, and adaptive methods.
  • Newton's Method: Includes information on Newton's method and its quasi-Newton approximations (like BFGS) for faster convergence.
  • Use Case: When faced with a complex function to minimize, this Skill can guide you through selecting the right gradient-based algorithm and parameters to find the minimum efficiently.

Quick Start

Use the gradient-methods skill to compute the gradient of the function x2 + y2 with respect to variables x and y.

Frequently Asked Questions about gradient-methods

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose the right step size for gradient descent?

Step size selection for gradient descent involves choosing between fixed, backtracking, and adaptive methods to ensure stable convergence. This Skill provides guidance on selecting the appropriate step size strategy based on your optimization problem.

What is the difference between momentum and Nesterov accelerated gradient methods?

Momentum and Nesterov are accelerated gradient descent variants that build velocity to speed up convergence. This Skill covers both methods, explaining how Nesterov modifies the momentum calculation to look ahead and improve convergence rates.

When should I use Newton's method instead of gradient descent for optimization?

Newton's method is preferred for faster convergence when you can compute or approximate the Hessian matrix. This Skill details Newton's method and quasi-Newton approximations like BFGS, which achieve faster convergence than standard gradient descent for suitable functions.

Can I use Scipy and Sympy to implement gradient-based optimization?

Yes, Scipy and Sympy are referenced for implementing gradient-based optimization. This Skill provides tool commands and problem-solving strategies that leverage these libraries to compute gradients and execute optimization algorithms.

How do I diagnose convergence issues in my gradient descent implementation?

Diagnosing convergence issues in gradient descent involves checking step sizes and monitoring the objective function value over iterations. This Skill includes diagnostics for convergence to help identify and resolve optimization stalls.

What are the limitations of using basic gradient descent for complex functions?

Basic gradient descent can converge slowly or get stuck in local minima for complex functions, requiring accelerated methods or quasi-Newton approximations. This Skill helps identify these limitations and guides selecting advanced algorithms like BFGS to overcome them.