Bandits.UCB.ucbWidth_eq_ucbWidth'
This page has the declaration's own card below, then its dependency graph, then a card for each dependency (type dependencies first, then the rest of the transitive closure). For a theorem, the graph and the dependency cards only follow its statement's dependencies (its proof is replaced by sorry, so what it proves doesn't depend on how); for everything else, both the type and the body/value are followed, since their content is part of what later declarations build on.
ucbWidth_eq_ucbWidth'๐
Bandits.UCB.ucbWidth_eq_ucbWidth'No docstring.
Bandits.UCB.ucbWidth_eq_ucbWidth'.{u_1} {K : โ} {ฮฉ : Type u_1} {A : โ โ ฮฉ โ Fin K} {R : โ โ ฮฉ โ โ} (c : โ) (a : Fin K) (n : โ) (ฯ : ฮฉ) (hn : n โ 0) : ucbWidth A c a n ฯ = ucbWidth' c (n - 1) (Learning.history A R (n - 1) ฯ) aBandits.UCB.ucbWidth_eq_ucbWidth'.{u_1} {K : โ} {ฮฉ : Type u_1} {A : โ โ ฮฉ โ Fin K} {R : โ โ ฮฉ โ โ} (c : โ) (a : Fin K) (n : โ) (ฯ : ฮฉ) (hn : n โ 0) : ucbWidth A c a n ฯ = ucbWidth' c (n - 1) (Learning.history A R (n - 1) ฯ) a
Code
lemma ucbWidth_eq_ucbWidth' (c : โ) (a : Fin K) (n : โ) (ฯ : ฮฉ) (hn : n โ 0) :
ucbWidth A c a n ฯ = ucbWidth' c (n - 1) (history A R (n - 1) ฯ) aBody uses (3)
Used by (1)
Actions: Source ยท Open Issue
Proof
by
simp only [ucbWidth, pullCount_eq_pullCount' (A := A) (R' := R) hn, Nat.cast_nonneg, sqrt_div',
ucbWidth']
congr 4
norm_cast
grindDependency graph
Type dependencies (3)
ucbWidth๐
Bandits.UCB.ucbWidthThe exploration bonus of the UCB algorithm, which corresponds to the width of a confidence interval.
Bandits.UCB.ucbWidth.{u_1} {K : โ} {ฮฉ : Type u_1} (A : โ โ ฮฉ โ Fin K) (c : โ) (a : Fin K) (n : โ) (ฯ : ฮฉ) : โBandits.UCB.ucbWidth.{u_1} {K : โ} {ฮฉ : Type u_1} (A : โ โ ฮฉ โ Fin K) (c : โ) (a : Fin K) (n : โ) (ฯ : ฮฉ) : โ
Code
noncomputable def ucbWidth (A : โ โ ฮฉ โ Fin K) (c : โ) (a : Fin K) (n : โ) (ฯ : ฮฉ) : โ := โ(2 * c * log (n + 1) / pullCount A a n ฯ)
Body uses (1)
Used by (16)
Actions: Source ยท Open Issue
ucbWidth'๐
Bandits.ucbWidth'The exploration bonus of the UCB algorithm, which corresponds to the width of a confidence interval.
Bandits.ucbWidth' {K : โ} (c : โ) (n : โ) (h : โฅ(Finset.Iic n) โ Fin K ร โ) (a : Fin K) : โBandits.ucbWidth' {K : โ} (c : โ) (n : โ) (h : โฅ(Finset.Iic n) โ Fin K ร โ) (a : Fin K) : โ
Code
noncomputable def ucbWidth' (c : โ) (n : โ) (h : Iic n โ Fin K ร โ) (a : Fin K) : โ := โ(2 * c * log (n + 2) / pullCount' n h a)
Body uses (1)
Used by (6)
Actions: Source ยท Open Issue
history๐
Learning.history
History of the algorithm-environment sequence up to time n.
Learning.history.{u_1, u_2, u_3} {๐ : Type u_1} {๐จ : Type u_2} {ฮฉ : Type u_3} (A : โ โ ฮฉ โ ๐) (Y : โ โ ฮฉ โ ๐จ) (n : โ) (ฯ : ฮฉ) : โฅ(Finset.Iic n) โ ๐ ร ๐จLearning.history.{u_1, u_2, u_3} {๐ : Type u_1} {๐จ : Type u_2} {ฮฉ : Type u_3} (A : โ โ ฮฉ โ ๐) (Y : โ โ ฮฉ โ ๐จ) (n : โ) (ฯ : ฮฉ) : โฅ(Finset.Iic n) โ ๐ ร ๐จ
Code
def history (A : โ โ ฮฉ โ ๐) (Y : โ โ ฮฉ โ ๐จ) (n : โ) (ฯ : ฮฉ) : Iic n โ ๐ ร ๐จ := fun i โฆ (A i ฯ, Y i ฯ)
Actions: Source ยท Open Issue
All dependencies, transitively (2)
pullCount๐
Learning.pullCount
Number of times action a was chosen up to time t (excluding t).
Learning.pullCount.{u_1, u_3} {๐ : Type u_1} {ฮฉ : Type u_3} [DecidableEq ๐] (A : โ โ ฮฉ โ ๐) (a : ๐) (t : โ) (ฯ : ฮฉ) : โLearning.pullCount.{u_1, u_3} {๐ : Type u_1} {ฮฉ : Type u_3} [DecidableEq ๐] (A : โ โ ฮฉ โ ๐) (a : ๐) (t : โ) (ฯ : ฮฉ) : โ
Code
noncomputable def pullCount (A : โ โ ฮฉ โ ๐) (a : ๐) (t : โ) (ฯ : ฮฉ) : โ := #(filter (fun s โฆ A s ฯ = a) (range t))
Actions: Source ยท Open Issue
pullCount'๐
Learning.pullCount'
Number of pulls of arm a up to (and including) time n.
This is the number of entries in h in which the arm is a.
Learning.pullCount'.{u_1, u_2} {๐ : Type u_1} {R : Type u_2} [DecidableEq ๐] (n : โ) (h : โฅ(Finset.Iic n) โ ๐ ร R) (a : ๐) : โLearning.pullCount'.{u_1, u_2} {๐ : Type u_1} {R : Type u_2} [DecidableEq ๐] (n : โ) (h : โฅ(Finset.Iic n) โ ๐ ร R) (a : ๐) : โ
Code
noncomputable
def pullCount' (n : โ) (h : Iic n โ ๐ ร R) (a : ๐) := #{s | (h s).1 = a}Used by (29)
Actions: Source ยท Open Issue