LeanMachineLearning exposition

Learning.RoundRobin.nextAction🔗

Minimal Lean file

nextAction🔗

DefinitionLearning.RoundRobin.nextAction

Action chosen by the Round-Robin algorithm at time n + 1. This is action (n + 1) % K.

🔗def
Learning.RoundRobin.nextAction {K : } (hK : 0 < K) (n : ) : Fin K
Learning.RoundRobin.nextAction {K : } (hK : 0 < K) (n : ) : Fin K

Code

noncomputable
def RoundRobin.nextAction (hK : 0 < K) (n : ℕ) : Fin K := ⟨(n + 1) % K, Nat.mod_lt _ hK⟩
Used by (14)

Actions: Source · Open Issue