MCPcopy Create free account
hub / github.com/FidoProject/Fido / getModelRewards

Method getModelRewards

src/QLearn.cpp:95–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95std::vector<double> QLearn::getModelRewards(State state) {
96 std::vector<double> rewards;
97 std::for_each(models.begin(), models.end(), [&](Model model){
98 rewards.push_back(model.network->getOutput(state)[0]);
99 });
100
101 return rewards;
102}
103
104double QLearn::getHighestReward(State state) {
105 std::vector<double> rewards = getModelRewards(state);

Callers

nothing calls this directly

Calls 3

beginMethod · 0.80
endMethod · 0.80
getOutputMethod · 0.45

Tested by

no test coverage detected