Identification algorithms: sampling rule, stopping rule, output rule #
An identification algorithm A : IdentAlg š š šØ š with outputs in š is a sampling rule
A.alg : Algorithm š š šØ together with
- a stopping rule
A.stopSet, a measurable set of histories of variable length: the algorithm stops afternrounds if the history of thesenrounds belongs toA.stopSet; - an output rule
A.output, a Markov kernel from histories of variable length toš: the distribution of the output given the history of the rounds played.
A run of the algorithm in an environment env, on a probability space (Ī©, P), consists of
observation, action and feedback processes O, X, Y forming an algorithm-environment sequence
for A.alg and env (IsAlgEnvSeq) and an output out : Ī© ā š whose conditional law given the
history at the stopping time is the output rule (IdentAlg.IsRun).
The law of the output of a run is determined by A and env: it is A.outputMeasure env, see
IdentAlg.IsRun.hasLaw_output. Properties of the algorithm are stated in terms of this law: A
is PAC at level Ī“ (IdentAlg.IsPAC) for a family of environments env Īø and a badness
predicate bad Īø if, for every Īø, the output in env Īø is bad Īø with probability at most Ī“.
Main definitions #
IdentAlg š š šØ š: the structure.IdentAlg.stoppingTime A O X Y : Ī© ā āā: the number of rounds played, a hitting time.IdentAlg.stoppedHist A O X Y : Ī© ā Ī£ n, Hist š š šØ n: the history at the stopping time.IdentAlg.IsRun A env O X Y out P:(O, X, Y, out)is a run ofAinenvon(Ī©, P).IdentAlg.outputMeasure A env : Measure š: the law of the output ofAinenv.IdentAlg.IsPAC A env bad Ī“: for every parameterĪø, the output ofAinenv Īøisbad Īøwith probability at mostĪ“.
Time is 0-indexed: after n rounds the actions a_0, ā¦, a_{n-1} have been played.
An identification algorithm with outputs in š: a sampling rule alg, a stopping rule
stopSet (the algorithm stops after n rounds if the history of these rounds belongs to
stopSet) and an output rule output, a Markov kernel giving the distribution of the output
given the history of the rounds played.
- alg : Algorithm š š šØ
The sampling rule.
The stopping rule: the algorithm stops after
nrounds if the history of these rounds belongs tostopSet.- measurableSet_stopSet : MeasurableSet self.stopSet
The stopping rule is measurable.
- output : ProbabilityTheory.Kernel ((n : ā) Ć Hist š š šØ n) š
The output rule: distribution of the output given the history of the rounds played.
- isMarkovKernel_output : ProbabilityTheory.IsMarkovKernel self.output
The output rule is a Markov kernel.
Instances For
The stopping time of A on the observation, action and feedback processes O, X, Y: the
number of rounds played, that is the first n such that the history of the first n rounds
belongs to the stopping rule A.stopSet (⤠if there is none).
Equations
- A.stoppingTime O X Y = MeasureTheory.hittingAfter (Learning.sigmaHistory O X Y) A.stopSet 0
Instances For
The history of the rounds played by an identification algorithm A, as a history of variable
length: the history stopped at A.stoppingTime O X Y
(the history of an arbitrary number of rounds if A never stops).
Equations
- A.stoppedHist O X Y = MeasureTheory.stoppedValue (Learning.sigmaHistory O X Y) (A.stoppingTime O X Y)
Instances For
The law of the output of an identification algorithm in an environment.
Equations
- A.outputMeasure env = (Learning.stoppedHistMeasure A.alg env A.stopSet).bind āA.output
Instances For
(O, X, Y, out) is a run of the identification algorithm A in the environment env on
the probability space (Ī©, P): the observation, action and feedback processes O, X, Y form
an algorithm-environment sequence for the sampling rule A.alg and env, and the output out has
conditional law A.output given the history at the stopping time.
- isAlgEnvSeq : IsAlgEnvSeq O X Y A.alg env P
The actions and feedbacks are generated by the sampling rule in the environment.
- hasCondDistrib_output : ProbabilityTheory.HasCondDistrib out (A.stoppedHist O X Y) A.output P
The output is drawn from the output rule applied to the history at the stopping time.
Instances For
The stopping time of an identification algorithm A is a stopping time of the history
filtration of any algorithm-environment sequence O, X, Y.
Most often used with alg = A.alg.
The history at the stopping time of any run of A in env has law
stoppedHistMeasure A.alg env A.stopSet.
The output of any run of A in env has law A.outputMeasure env.
A is PAC at level Ī“ for the family of environments env : Ī ā Environment š š šØ and
the predicate bad : Ī ā š ā Prop if, for every Īø, the output of A in env Īø is
bad Īø with probability at most Ī“.
See IsPAC.measureReal_not_good_of_isRun for the corresponding statement about any run of A.
Equations
Instances For
For a PAC algorithm at level Ī“, the output of any run in env Īø is bad Īø with
probability at most Ī“.