pyhs3.Workspace¶
- class pyhs3.Workspace(spec)[source]¶
Workspace for managing HS3 model specifications.
A workspace contains parameter points, distributions, domains, and functions that define a probabilistic model. It provides methods to construct Model objects with specific parameter values and domain constraints.
- parameter_collection¶
Named parameter sets.
- Type:
ParameterCollection
- distribution_set¶
Available distributions.
- Type:
DistributionSet
- domain_collection¶
Domain constraints for parameters.
- Type:
DomainCollection
- function_set¶
Available functions for parameter computation.
- Type:
FunctionSet
- Parameters:
spec (
HS3Spec)
- __init__(spec)[source]¶
Manages the overall structure of the model including parameters, domains, and distributions.
- Parameters:
spec (dict) – A dictionary containing model definitions including parameter points, distributions, and domains.
- parameter_collection¶
Set of named parameter points.
- Type:
ParameterCollection
- distribution_set¶
All distributions used in the workspace.
- Type:
DistributionSet
- domain_collection¶
Domain definitions for all parameters.
- Type:
DomainCollection
Methods
__init__(spec)Manages the overall structure of the model including parameters, domains, and distributions.
model(*[, domain, parameter_point, ...])Constructs a Model object using the provided domain and parameter point.