Bandits.integral_regret_eq_sum_gap_mul_integral_pullCount
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.
integral_regret_eq_sum_gap_mul_integral_pullCount๐
Bandits.integral_regret_eq_sum_gap_mul_integral_pullCountNo docstring.
Bandits.integral_regret_eq_sum_gap_mul_integral_pullCount.{u_1, u_2} {๐ : Type u_1} {ฮฉ : Type u_2} [DecidableEq ๐] {m๐ : MeasurableSpace ๐} {mฮฉ : MeasurableSpace ฮฉ} {ฮฝ : ProbabilityTheory.Kernel ๐ โ} {A : โ โ ฮฉ โ ๐} {n : โ} [StandardBorelSpace ๐] [Fintype ๐] {P : MeasureTheory.Measure ฮฉ} [MeasureTheory.IsProbabilityMeasure P] (hA : โ (n : โ), Measurable (A n)) : โซ (x : ฮฉ), regret ฮฝ A n x โP = โ a, gap ฮฝ a * โซ (x : ฮฉ), (fun ฯ => โ(Learning.pullCount A a n ฯ)) x โPBandits.integral_regret_eq_sum_gap_mul_integral_pullCount.{u_1, u_2} {๐ : Type u_1} {ฮฉ : Type u_2} [DecidableEq ๐] {m๐ : MeasurableSpace ๐} {mฮฉ : MeasurableSpace ฮฉ} {ฮฝ : ProbabilityTheory.Kernel ๐ โ} {A : โ โ ฮฉ โ ๐} {n : โ} [StandardBorelSpace ๐] [Fintype ๐] {P : MeasureTheory.Measure ฮฉ} [MeasureTheory.IsProbabilityMeasure P] (hA : โ (n : โ), Measurable (A n)) : โซ (x : ฮฉ), regret ฮฝ A n x โP = โ a, gap ฮฝ a * โซ (x : ฮฉ), (fun ฯ => โ(Learning.pullCount A a n ฯ)) x โP
Code
lemma integral_regret_eq_sum_gap_mul_integral_pullCount
[StandardBorelSpace ๐] [Fintype ๐] {P : Measure ฮฉ} [IsProbabilityMeasure P]
(hA : โ n, Measurable (A n)) :
P[regret ฮฝ A n] = โ a, gap ฮฝ a * P[fun ฯ โฆ (pullCount A a n ฯ : โ)]Body uses (2)
Actions: Source ยท Open Issue
Proof
by simp_rw [regret_eq_sum_pullCount_mul_gap] rw [integral_finsetSum] swap; ยท exact fun i _ โฆ (integrable_pullCount hA i n).mul_const _ congr with a rw [integral_mul_const, mul_comm]
Dependency graph
Type dependencies (3)
regret๐
Bandits.regret
Regret of a sequence of pulls k : โ โ ๐ at time t for the reward kernel ฮฝ ; Kernel ๐ โ.
Bandits.regret.{u_1, u_2} {๐ : Type u_1} {ฮฉ : Type u_2} {m๐ : MeasurableSpace ๐} (ฮฝ : ProbabilityTheory.Kernel ๐ โ) (A : โ โ ฮฉ โ ๐) (t : โ) (ฯ : ฮฉ) : โBandits.regret.{u_1, u_2} {๐ : Type u_1} {ฮฉ : Type u_2} {m๐ : MeasurableSpace ๐} (ฮฝ : ProbabilityTheory.Kernel ๐ โ) (A : โ โ ฮฉ โ ๐) (t : โ) (ฯ : ฮฉ) : โ
Code
noncomputable def regret (ฮฝ : Kernel ๐ โ) (A : โ โ ฮฉ โ ๐) (t : โ) (ฯ : ฮฉ) : โ := t * (โจ a, (ฮฝ a)[id]) - โ s โ range t, (ฮฝ (A s ฯ))[id]
Used by (11)
Actions: Source ยท Open Issue
gap๐
Bandits.gap
Gap of an action a: difference between the highest mean of the actions and the mean of a.
Bandits.gap.{u_1} {๐ : Type u_1} {m๐ : MeasurableSpace ๐} (ฮฝ : ProbabilityTheory.Kernel ๐ โ) (a : ๐) : โBandits.gap.{u_1} {๐ : Type u_1} {m๐ : MeasurableSpace ๐} (ฮฝ : ProbabilityTheory.Kernel ๐ โ) (a : ๐) : โ
Code
noncomputable def gap (ฮฝ : Kernel ๐ โ) (a : ๐) : โ := (โจ i, (ฮฝ i)[id]) - (ฮฝ a)[id]
Used by (27)
Actions: Source ยท Open Issue
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