Code for Experiments done in the paper Curvature-Aware Derivative-Free Optimization.
This repository includes three folders for three different experiments.
-
CARS_minimal: This includes the minimal example for CARS/CARS-NQ in MATLAB
-
CARS_MoreGarbowHillstrom: This experiment solves More-Garbow-Hillstrom problems with CARS and some other algorithms for comparison, and produces a performance profile.
-
CARS_MNIST: This is for the black-box adversarial attack on MNIST dataset.
Each folder has its own Readme file, so have a look at it for more details.
There is a refactored version of this repo: CARS Refactored.
In this version, you can simply do, for instance,
from cars.util import setup_default_optimizer
opt = setup_default_optimizer("CARS", f = my_func, x0 = x0)
opt.optimize()
or easily fine-tune the parameters for the optimizer using a configuration json file.
Interested readers can read this.