nevergrad-skill

Optimize black-box parameters using Nevergrad evolutionary algorithms.

Updated Feb 25, 2026
One-click install
npx skills add https://github.com/pengqianhan/scicomp-skills --skill nevergrad-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nevergrad-skill
Source: https://github.com/pengqianhan/scicomp-skills/tree/main/nevergrad-skill
Command: npx skills add https://github.com/pengqianhan/scicomp-skills --skill nevergrad-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, nevergrad, matplotlib, scipy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill solves the challenge of optimizing parameters for black-box systems, simulations, or machine learning models where gradients are unavailable or the objective function is non-differentiable.

Core Features & Use Cases

  • Black-Box Optimization: Access over 100 optimizers for continuous, discrete, and mixed parameter spaces.
  • Hyperparameter Tuning: Efficiently search for optimal learning rates, architectures, or batch sizes in ML workflows.
  • Parallel Evaluation: Scale optimization tasks across multiple CPU cores to reduce total compute time.

Quick Start

Use the nevergrad skill to optimize the parameters of my simulation function by running the setup script and then calling the optimizer minimize method.

Frequently Asked Questions about nevergrad-skill

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

FAQPage Schema
How do I optimize parameters for a simulation when gradients are unavailable?

To optimize parameters for a simulation without gradients, you can use gradient-free black-box optimization. This approach accesses over 100 derivative-free optimizers to efficiently search complex continuous or discrete parameter spaces.

What is the best way to perform hyperparameter tuning on machine learning models without using gradients?

Hyperparameter tuning without gradients is best handled by evolutionary algorithms. They efficiently search for optimal learning rates or batch sizes by evaluating derivative-free objective functions across multiple CPU cores for parallel evaluation.

Does black-box optimization support mixed parameter spaces for non-differentiable objective functions?

Yes, black-box optimization supports mixed parameter spaces for non-differentiable objective functions. The Nevergrad library provides specific optimizers designed to handle continuous, discrete, and mixed variables seamlessly.

How do I set up a Python environment to run derivative-free search strategies?

To run derivative-free search strategies, set up a Python environment with Nevergrad and NumPy dependencies installed. Execute the setup script provided, then call the optimizer minimize method on your objective function.

Can I scale evolutionary algorithm optimization tasks across multiple compute cores?

Yes, you can scale evolutionary algorithm optimization tasks across multiple compute cores. The parallel evaluation feature distributes objective function assessments, significantly reducing total compute time for complex simulations.

When should I avoid using gradient-free optimization for my parameter search?

You should avoid using gradient-free optimization when your objective function is fully differentiable and gradients are easily computable. In those cases, gradient-based methods typically converge faster than derivative-free search strategies.