LeanMachineLearning exposition

Learning.uniformAlgorithm๐Ÿ”—

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.

Minimal Lean file

uniformAlgorithm๐Ÿ”—

DefinitionLearning.uniformAlgorithm

The Uniform algorithm: actions are chosen uniformly at random.

๐Ÿ”—def
Learning.uniformAlgorithm.{u_1, u_2} {๐“ : Type u_1} {๐“จ : Type u_2} {m๐“ : MeasurableSpace ๐“} {m๐“จ : MeasurableSpace ๐“จ} [Finite ๐“] [Nonempty ๐“] : Algorithm ๐“ ๐“จ
Learning.uniformAlgorithm.{u_1, u_2} {๐“ : Type u_1} {๐“จ : Type u_2} {m๐“ : MeasurableSpace ๐“} {m๐“จ : MeasurableSpace ๐“จ} [Finite ๐“] [Nonempty ๐“] : Algorithm ๐“ ๐“จ

Code

noncomputable
def uniformAlgorithm [Finite ๐“] [Nonempty ๐“] : Algorithm ๐“ ๐“จ := randomSampling (uniformOn Set.univ)
Type uses (1)
Body uses (1)
Used by (4)

Actions: Source ยท Open Issue

Dependency graph

Type dependencies (1)

Algorithm๐Ÿ”—

StructureLearning.Algorithm

A stochastic, sequential algorithm.

๐Ÿ”—structure
Learning.Algorithm.{u_4, u_5} (๐“ : Type u_4) (๐“จ : Type u_5) [MeasurableSpace ๐“] [MeasurableSpace ๐“จ] : Type (max u_4 u_5)
Learning.Algorithm.{u_4, u_5} (๐“ : Type u_4) (๐“จ : Type u_5) [MeasurableSpace ๐“] [MeasurableSpace ๐“จ] : Type (max u_4 u_5)

Code

structure Algorithm (๐“ ๐“จ : Type*) [MeasurableSpace ๐“] [MeasurableSpace ๐“จ] where
  /-- Policy or sampling rule: distribution of the next action. -/
  policy : (n : โ„•) โ†’ Kernel (Iic n โ†’ ๐“ ร— ๐“จ) ๐“
  /-- The policy is a Markov kernel. -/
  [h_policy : โˆ€ n, IsMarkovKernel (policy n)]
  /-- Distribution of the first action. -/
  p0 : Measure ๐“
  /-- The first action distribution is a probability measure. -/
  [hp0 : IsProbabilityMeasure p0]
Used by (216)

Actions: Source ยท Open Issue

All dependencies, transitively (1)

randomSampling๐Ÿ”—

DefinitionLearning.randomSampling

The Random Sampling algorithm, which samples from a fixed probability measure at each iteration.

๐Ÿ”—def
Learning.randomSampling.{u_1, u_2} {๐“ : Type u_1} {๐“จ : Type u_2} {m๐“ : MeasurableSpace ๐“} {m๐“จ : MeasurableSpace ๐“จ} (ฮผ : MeasureTheory.Measure ๐“) [MeasureTheory.IsProbabilityMeasure ฮผ] : Algorithm ๐“ ๐“จ
Learning.randomSampling.{u_1, u_2} {๐“ : Type u_1} {๐“จ : Type u_2} {m๐“ : MeasurableSpace ๐“} {m๐“จ : MeasurableSpace ๐“จ} (ฮผ : MeasureTheory.Measure ๐“) [MeasureTheory.IsProbabilityMeasure ฮผ] : Algorithm ๐“ ๐“จ

Code

noncomputable def randomSampling (ฮผ : Measure ๐“) [IsProbabilityMeasure ฮผ] : Algorithm ๐“ ๐“จ where
  policy _ := Kernel.const _ ฮผ
  p0 := ฮผ
Type uses (1)
Used by (5)

Actions: Source ยท Open Issue