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

Method reset

src/QLearn.cpp:89–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void QLearn::reset() {
90 std::for_each(models.begin(), models.end(), [&](Model model) {
91 model.network->randomizeWeights();
92 });
93}
94
95std::vector<double> QLearn::getModelRewards(State state) {
96 std::vector<double> rewards;

Callers

nothing calls this directly

Calls 3

beginMethod · 0.80
endMethod · 0.80
randomizeWeightsMethod · 0.45

Tested by

no test coverage detected