-
Hello is there a way to constrain the range of the allowed values the fit function allows for the gcm.ml functions ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi, It might not necessarily be an accurate representation, but you could just create an ANM model that clips the values:
You can then use this one instead of the |
Beta Was this translation helpful? Give feedback.
Hi,
if you mean to limit the range of the output of the models, then unfortunately not. In this case, you would need to define a custom model (see for example https://www.pywhy.org/dowhy/v0.9.1/user_guide/gcm_based_inference/customizing_model_assignment.html). However, one thing to keep in mind: If you use an additive noise model (ANM), then it has the form
Y = f(X) + N
, where thef
would be yourgcm.ml
model. Without additionally constraints on the causal mechanism or theN
, it could still happen that you, e.g., get a negative value, even iff
doesn't produce any (becauseN
can be negative). In this case, you would need the define a customizedConditionalStochasticModel
. TheConditionalS…