Skip to content

Commit

Permalink
docs: small fix in user guide
Browse files Browse the repository at this point in the history
Signed-off-by: yogabonito <yogabonito@users.noreply.github.com>
  • Loading branch information
yogabonito authored Jun 29, 2024
1 parent 0fa9a2e commit 9717b96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ trained graph. To do this conveniently, the GCM package provides a function
>>> data = pd.DataFrame(dict(X=X, Y=Y, Z=Z))
>>>
>>> causal_model = gcm.StructuralCausalModel(nx.DiGraph([('Z', 'Y'), ('Z', 'X'), ('X', 'Y')]))
>>> gcm.auto.assign_causal_mechanisms(causal_model, data_old)
>>> gcm.auto.assign_causal_mechanisms(causal_model, data)

we can now use ``fit_and_compute`` as follows:

Expand Down

0 comments on commit 9717b96

Please sign in to comment.