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
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
) –dict
of 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