std1.0.0-beta-7 SafeC docs

std :: ml::rl

Struct std::EnvStep

#include <std/ml/rl.h> source

struct EnvStep {
    float reward;
    int terminated;
    int truncated;
}

What a step returned: 'terminated' ends the episode in a terminal state (no future reward); 'truncated' cuts it off by a time limit (the state still has value, and learners bootstrap from it).

Fields

§float rewardsource
§int terminatedsource
§int truncatedsource