Contents

struct

SushiAI::Autograd::GradCheckResult

What a check found.

Declared in
include/SushiAI/autograd/gradcheck.hpp

Public attributes

bool passed = false

Whether every probe stayed inside the tolerance.

double max_relative_error = 0.0

The largest relative error seen.

std::size_t worst_index = 0

Which coordinate (full mode) or direction (directional) was worst.

double worst_analytic = 0.0

The analytic value at the worst probe.

double worst_numeric = 0.0

The finite-difference value at the worst probe.

std::size_t probes = 0

How many probes ran.

Public member functions

std::string to_string() const

A one-line summary suitable for a test failure message.