Skip to content

Printing the structural causal equations used for generating a sample #1147

Answered by bloebp
Stan201 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Stan,

there is no direct way to print it, but you can access the model parameters. These, however, depend on the used models. Generally, you can access the fitted sklearn models and their parameters. For non-linear models, these might be difficult to interpret (depending on the model type). The easiest is with the linear models as you did by setting them explicitly. Note, however, that the AdditiveNoiseModel (and auto assignment) typically uses an EmpiricalDistribution for the noise which is parameter free. But you can also explicitly assign, e.g., a Gaussian distribution. I prepared a code snippet that prints something like your example, but it currently only works with linear models:

i…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Stan201
Comment options

@josethisthat
Comment options

Answer selected by Stan201
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants