Read the equation
This relation defines D <- target vector (size must be >= cfg.dim; extra values ignored) in the source section “two_way_engine”. It specifies the displayed relationship between the named quantities or parameters. Its interpretation depends on the source’s stated variables and conditions; this record does not assign an unprovided physical or cognitive meaning to them.
Terms & definitions
The recovered passage does not supply a separate symbol table. Read the source context for the notation used in this version; familiar letters may carry different meanings in other builds.
How it works
Read D <- target vector (size must be >= cfg.dim; extra values ignored) as the quantity being defined or updated by this relation.
Substitute the source-defined variables or recorded values and follow the displayed arithmetic and indexing exactly.
Use this version’s variable definitions and update order. The same symbol may be assigned a different meaning in another build.
Assumptions & limits
This source expression was recovered from the pinned code revision. Its presence does not establish that the associated program was built, run, or scientifically validated.
Original context
Read the surrounding source passage
double epsilon = 1e-6;
bool use_gpu = false;
};
TwoWayEngine(); // uses default Cfg()
explicit TwoWayEngine(const Cfg& cfg);
// D <- target vector (size must be >= cfg.dim; extra values ignored)
void set_target(std::span<const float> target);
// B(S): current behavior snapshot (computed on demand)
std::vector<float> behavior() const;
// RMSE in [0, +inf) (practically clamped by sigmoid to [0, 1])
double error() const { return current_error_; }
// Run one optimization tick (alternating + joint update proxy)
void step();Exact original notation
D <- target vector (size must be >= cfg.dim; extra values ignored)