struct
SushiAI::Autograd::GradCheckResult
What a check found.
- Declared in
include/SushiAI/autograd/gradcheck.hpp
Public attributes
bool passed = falseWhether every probe stayed inside the tolerance.
double max_relative_error = 0.0The largest relative error seen.
std::size_t worst_index = 0Which coordinate (full mode) or direction (directional) was worst.
double worst_analytic = 0.0The analytic value at the worst probe.
double worst_numeric = 0.0The finite-difference value at the worst probe.
std::size_t probes = 0How many probes ran.
Public member functions
std::string to_string() constA one-line summary suitable for a test failure message.

