MCPcopy Create free account
hub / github.com/Niko1221/Strata / explore_next

Method explore_next

engine/src/spec/draft_policy.cpp:624–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

622}
623
624int DraftPolicy::explore_next(int reach, int skip) const {
625 if (learner_.rounds() + learner_.late_rounds() < kExploreAfter || forced_total_ >= kExploreBudget || !explore_ok()) return 0;
626 for (int s = 2; s <= std::min(reach, max_t_); ++s) {
627 if (s == skip || !allowed(s) || forced_[(size_t) s] >= kExplorePerSize || learner_.usable(bk_, s, 20) >= kExploreN) continue;
628 ++forced_[(size_t) s];
629 ++forced_total_;
630 return s;
631 }
632 return 0;
633}
634
635int DraftPolicy::explore_size(int lookup_k, int pad_cap) const {
636 return explore_next(std::max(lookup_k, pad_cap) + 1, 0);

Callers

nothing calls this directly

Calls 5

late_roundsMethod · 0.80
minFunction · 0.50
allowedFunction · 0.50
roundsMethod · 0.45
usableMethod · 0.45

Tested by

no test coverage detected