Skip to content

Commit 65d8936

Browse files
committed
Can find the current paramters
1 parent 2822e2b commit 65d8936

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/causalprog/graph/causal_problem.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ class CausalProblem(Graph):
1515
_sigma: Callable[..., float]
1616
_constraints: Callable[..., float]
1717

18+
@property
19+
def parameter_values(self) -> tuple[float, ...]:
20+
"""Returns the current parameter values stored for the Causal Problem."""
21+
return tuple(node.current_value for node in self.parameter_nodes)
22+
1823
def __init__(self, label: str) -> None:
1924
"""Set up a new CausalProblem."""
2025
super().__init__(label)

0 commit comments

Comments
 (0)