Learning.randomSampling_policy
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.
randomSampling_policy๐
Learning.randomSampling_policyNo docstring.
Learning.randomSampling_policy.{u_1, u_2} {๐ : Type u_1} {๐จ : Type u_2} {m๐ : MeasurableSpace ๐} {m๐จ : MeasurableSpace ๐จ} (ฮผ : MeasureTheory.Measure ๐) [MeasureTheory.IsProbabilityMeasure ฮผ] (xโ : โ) : Algorithm.policy (randomSampling ฮผ) xโ = ProbabilityTheory.Kernel.const (โฅ(Finset.Iic xโ) โ ๐ ร ๐จ) ฮผLearning.randomSampling_policy.{u_1, u_2} {๐ : Type u_1} {๐จ : Type u_2} {m๐ : MeasurableSpace ๐} {m๐จ : MeasurableSpace ๐จ} (ฮผ : MeasureTheory.Measure ๐) [MeasureTheory.IsProbabilityMeasure ฮผ] (xโ : โ) : Algorithm.policy (randomSampling ฮผ) xโ = ProbabilityTheory.Kernel.const (โฅ(Finset.Iic xโ) โ ๐ ร ๐จ) ฮผ
Code
theorem randomSampling_policy : โ {๐ : Type u_1} {๐จ : Type u_2} {m๐ : MeasurableSpace ๐} {m๐จ : MeasurableSpace ๐จ} (ฮผ : MeasureTheory.Measure ๐)
[inst : MeasureTheory.IsProbabilityMeasure ฮผ] (x : โ),
(Learning.randomSampling ฮผ).policy x = ProbabilityTheory.Kernel.const (โฅ(Finset.Iic x) โ ๐ ร ๐จ) ฮผType uses (2)
Used by (2)
Actions: Source ยท Open Issue
Proof
@[simps]
Dependency graph
Type dependencies (2)
randomSampling๐
Learning.randomSamplingThe Random Sampling algorithm, which samples from a fixed probability measure at each iteration.
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)
Actions: Source ยท Open Issue
Algorithm๐
Learning.AlgorithmA stochastic, sequential algorithm.
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