causal-learn icon indicating copy to clipboard operation
causal-learn copied to clipboard

Update GIN

Open fengxie009 opened this issue 2 years ago • 7 comments

fengxie009 avatar Dec 07 '22 02:12 fengxie009

BTW, for every PR, we should have an informative description.

Could you add your description? Here is a good example PR with great descriptions: https://github.com/cmu-phil/causal-learn/pull/85

tofuwen avatar Dec 07 '22 02:12 tofuwen

Updates

Modified the whole GIN package to make it more readable

  1. GIN.py: GIN(data, indep_test_method='kci', alpha=0.05, MAX_Factor = 2) The MAX_Factor parameter is added to make the GIN algorithm more efficient

Notes Please kindly note that the GIN method highly relies on the independent test, e.g., KCI or HSIC. Please try to modify the default parameters in the independent test method, such as kernel width, when the GIN method can not output any information.

fengxie009 avatar Dec 17 '22 01:12 fengxie009

Screen Shot 2022-12-20 at 3 42 39 PM

Basically add description there. People will tend to read the first block, but not the conversions (because it's too much)

So in industry (or open-sourced project), it's a good practice to have great descriptions in the first cell.

tofuwen avatar Dec 20 '22 20:12 tofuwen

Hi all @fengxie009 @tofuwen, just would like to quickly check whether there are any updates on this PR. Please feel free to let others know if there are any questions :)

kunwuz avatar Jan 31 '23 00:01 kunwuz

Hi Yujia,

There are currently no updates. I will let you know if there are any changes.

Best wishes, Feng

Yujia Zheng @.***> 于2023年1月31日周二 08:10写道:

Hi all @fengxie009 https://github.com/fengxie009 @tofuwen https://github.com/tofuwen, just would like to quickly check whether there are any updates on this PR. Please feel free to let others know if there are any questions :)

— Reply to this email directly, view it on GitHub https://github.com/py-why/causal-learn/pull/87#issuecomment-1409551896, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH6YBRX2AGGKIDDJIR5YJPLWVBKAJANCNFSM6AAAAAASWHV7YU . You are receiving this because you were mentioned.Message ID: @.***>

fengxie009 avatar Feb 03 '23 05:02 fengxie009

Hi @fengxie009,

Do we have some updates here? :)

We need to ensure that we have unit tests coverage for all the methods, as it's required here: https://github.com/py-why/causal-learn/issues/100

And we will build the CI once your unit tests are completed. :)

tofuwen avatar Mar 22 '23 23:03 tofuwen

Hi @fengxie009 and @tofuwen, are there any updates on this PR? I believe some quick tests to make sure that the modification is correct is enough to merge this. It seems to be around too long.

kunwuz avatar Oct 12 '23 23:10 kunwuz