Estimator

class pqp.estimation.Estimator(op)

Bases: Result, ABC

Abstract base class for estimators

Methods Summary

approx(expr[, assignments])

Approximates the value of an expression

estimate(expr[, assignments])

Estimate the value of an expression

get_observed()

Return the set of Variables that are considered observed in the model

Methods Documentation

approx(expr, assignments=None)

Approximates the value of an expression

Parameters:
  • expr (AbstractExpression) – The expression to approximate

  • assignments (dict) – variable assignments (optional)

Returns:

the approximate value of the expression

Return type:

float

abstract estimate(expr: AbstractExpression, assignments=None)

Estimate the value of an expression

Parameters:
  • expr (AbstractExpression) – The expression to estimate

  • assignments (dict) – dict of variable assignments (optional)

Returns:

the result of the estimation

Return type:

EstimationResult

abstract get_observed()

Return the set of Variables that are considered observed in the model

Returns:

the observed variables

Return type:

set