-
Notifications
You must be signed in to change notification settings - Fork 0
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
evaluate LiNLAM and compare to FCI #1
Comments
the only line that GIN-LINLAM could add non-directed edge is |
@Alex-Markham since GIN output causal order, can we use this to evaluate the performance? |
Good idea. If we can find some code that does this, then I think it's worth using that. However, if we have to implement something ourselves, I don't think it's worth focusing on at the moment. I think evaluation metrics based on the causal order are a bit questionable (which is also true of SHD evaluation), and I'm also not sure how to handle the fact that a given DAG (and even worse, more general graphs) typically represents an equivalence class of causal orders. |
the solution is here: what do you think? |
Okay, yeah, I think this is good (especially for now). Nice work! |
So now we can:
|
I am currently working on the unit test for ancestral graph for causal order, when i am done, i will put the test link here. |
in case you have time, you can work in parallel for the step 2. I think we can transform the current unit test i am working on in to step 1 you posted. |
done here: marrlab/causalspyne#29, example for step 1: https://github.com/marrlab/causalspyne/blob/95b065640895b337efbee4bdd2aee2d7ab8bce3e/examples/gin.py#L35 It might be faster if you start some draft for step 1 and step 2 which i can fill in. Otherwise I will look into that tomorrow. I will go to sport now. @Alex-Markham |
@smilesun should be able to do 1 and 2 pretty quickly. I'll have some time to work on it soon, and then I'll let you know when it's done |
@smilesun it's running into some dimension mismatch and indexing errors. Do you think you could take a look? I don't really have more time to work on this today |
ok, I have less than 1 hour today. If I can not fix it, will continue on Monday. So i run uv run snakemake all? |
yup, exactly |
do you have a quick anser to https://github.com/Alex-Markham/causalspyne-expt/pull/3/files#r1893933238 |
should be done c49a278 |
debugging
|
same error with --latency-wait=15 |
my last commit fixed it for me |
there was another problem, but 74cbff5 fixes that |
cool, thanks! I will check the results and see if I can check if the causal order is oriented (low to high vs high to low ) correctly |
will see what went wrong
|
|
just need to figure out the appropriate dtype/formatting for L20, when the causal order is saved |
I can try using json instead of np.save; that might be the quickest fix |
i tried something here: #4 |
with error : id_ancestor = true_dag._dict_node_names2ind[ancestor] |
debugging using this line will go to another meeting now |
after bugfix marrlab/causalspyne@c4b7b86 I think I've gotten the rest of it working now |
We need to complete this line in the
fit_linlam.py
script so thatpag
is an adjacency matrix of typenp.ndarray
The text was updated successfully, but these errors were encountered: