sciope.utilities.priors package

Submodules

sciope.utilities.priors.prior_base module

Base Class for Prior Functions

class sciope.utilities.priors.prior_base.PriorBase(name, use_logger=False)[source]

Bases: object

Base class for prior functions used by ABC inference algorithms and MAB-based statistic selection.

abstract draw(n=1)[source]

Draw ‘n’ samples from the prior :param n: number of desired samples from prior; defaults to 1 :return: the ‘n’ drawn samples as a vector

abstract get_dimension()[source]

Get the dimension of the prior.

abstract pdf(x, log=False)[source]

Evaluate the PDF of the sample :param x: the point or collection of points to evaluate the pdf at :param log: whether to return the log pdf :return: the pdf evaluated at x

sciope.utilities.priors.uniform_prior module

The Uniform Prior

class sciope.utilities.priors.uniform_prior.UniformPrior(space_min, space_max, use_logger=False)[source]

Bases: sciope.utilities.priors.prior_base.PriorBase

The uniform prior draws a sample from the uniform distribution in a specified d-dimensional space described as: [min_i, max_i], i=1..d

draw(n=1, chunk_size=1)[source]

Draw ‘n’ samples within self.lb and self.ub :param n: the desired number of samples :return: the n-sized vector of drawn samples

get_dimension()[source]

Get the dimension of the prior.

pdf(x, log=False)[source]

Evaluate the PDF of the sample :param x: the point or collection of points to evaluate the pdf at :param log: whether to return the log pdf :return: the pdf evaluated at x

Module contents