Estimator¶
- class pqp.estimation.Estimator(op)¶
Bases:
Result,ABCAbstract base class for estimators
Methods Summary
approx(expr[, assignments])Approximates the value of an expression
estimate(expr[, assignments])Estimate the value of an expression
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 approximateassignments (
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 estimateassignments (
dict) –dictof variable assignments (optional)
- Returns:
the result of the estimation
- Return type:
- abstract get_observed()¶
Return the set of Variables that are considered observed in the model
- Returns:
the observed variables
- Return type:
set