learning.samplers¶
Module: learning.samplers
¶
Inheritance diagram for selectinf.learning.samplers
:
Classes¶
normal_sampler
¶
-
class
selectinf.learning.samplers.
normal_sampler
(center, covariance)[source]¶ Bases:
object
Our basic model for noise, and input to selection algorithms. This represents Gaussian data with a center, e.g. X.T.dot(y) in linear regression and a covariance Sigma.
This object emits noisy versions of center as
center + scale * N(0, Sigma)
split_sampler
¶
-
class
selectinf.learning.samplers.
split_sampler
(sample_stat, covariance)[source]¶ Bases:
object
Data splitting noise source. This is approximately Gaussian with center np.sum(sample_stat, 0) and noise suitably scaled, depending on splitting fraction.
This object emits noisy versions of center as
center + scale * N(0, Sigma)