-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no_paths doesn't work when using prior_knowledge #11
Comments
Hi, this prior knowledge option does not necessarily force the estimated graph to satisfy the prior knowledge given by users. DirectLiNGAM algorithm implemented in this library estimates the causal orders of variables one by one. Therefore, for example, if esimation of the causal orders of some variables fails before the causal orders of the variables about which prior knowledge is available are estimated, then sometimes the prior knowledge cannot be used or sometimes the algorithm might have to estimate some causal orders that might be wrong. Prior knowledge about exogenous variables and sink variables are more likely to be reflected to the output in DirectLiNGAM. Though this "soft" way of using prior knowledge might be different from what some users expect, we thought this option is still helpful to make the estimation better. |
Thank you for your answer. In addition, is there a better solution that some path values will be zero or quite small value? Because, some value should be zero when LINGAM was applied to a business problem. |
|
Thanks for your suggestion. I understand these solutions. Thank you so much. |
Now in v1.5.2, you can FORCE prior knowledge on causal ORDERS into estimation, e.g., x1 cannot cause x2. |
Thank you for applying "FORCE prior knowledge". |
Hi,
I really appreciate this repository because I can apply LINGAM to the system very quickly.
Now, I have one question, "Does no paths work correctly?"
For example of this notebook: https://github.com/cdt15/lingam/blob/master/examples/DirectLiNGAM(PriorKnowledge).ipynb,
generete prior knowledge,
outout data is
It seems the path "2 -> 1" is zero.
However,
if the data fit model
output model.adjacency_matrix_ is
The path "2 -> 1" has value 2.006062.
Is it the correct output value?
When using "no paths", the value should be zero, just I think.
The text was updated successfully, but these errors were encountered: