Skip to content

Commit 13a5245

Browse files
committed
Reorder arguments
1 parent b5d5d12 commit 13a5245

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎LeanBandits/BanditAlgorithms/TS.lean‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ variable (κ : Kernel (Fin K × E) ℝ) [IsMarkovKernel κ]
2020

2121
noncomputable
2222
def tsPosterior (n : ℕ) : Kernel (Iic n → (Fin K) × ℝ) E :=
23-
Learning.Bayes.posterior Q κ n (uniformAlgorithm hK)
23+
Learning.Bayes.posterior Q κ (uniformAlgorithm hK) n
2424

2525
noncomputable
2626
def isMarkovKernel_tsPosterior (n : ℕ) : IsMarkovKernel (tsPosterior hK Q κ n) := by

‎LeanBandits/SequentialLearning/BayesStationaryEnv.lean‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ def hist (n : ℕ) (ω : ℕ → α × E × R) : Iic n → α × R := fun i ↦
3838
def env (ω : ℕ → α × E × R) : E := (ω 0).2.1
3939

4040
noncomputable
41-
def posterior [StandardBorelSpace E] [Nonempty E] (n : ℕ) (alg : Algorithm α R) :
41+
def posterior [StandardBorelSpace E] [Nonempty E] (alg : Algorithm α R) (n : ℕ) :
4242
Kernel (Iic n → α × R) E :=
4343
condDistrib env (hist n) (trajMeasure Q κ alg)
4444

45-
instance [StandardBorelSpace E] [Nonempty E] (n : ℕ) (alg : Algorithm α R) :
46-
IsMarkovKernel (posterior Q κ n alg) := by
45+
instance [StandardBorelSpace E] [Nonempty E] (alg : Algorithm α R) (n : ℕ) :
46+
IsMarkovKernel (posterior Q κ alg n) := by
4747
unfold posterior
4848
infer_instance
4949

0 commit comments

Comments
 (0)