bd2kccd / py-causal

Other
204 stars 50 forks source link

Is it possible to get the edge scores? #73

Closed marchezinixd closed 6 years ago

marchezinixd commented 6 years ago

Hello, I'm using pycausal in a real dataset and using FGES. I was able to generate the graph and extract the nodes and edges. If i use the bootstrap i can get the bootstrap score, but i have a huge amount of data, and using bootstrap is making it slow. I know that when building the graph is necessary to run the scores of the edges (in my case ''sem-bic'"). Is it possible to retrieve this information? My graph is too complex and i'd like to use this information to choose which edges i can remove. I'm using the pycausal module, but if necessary I can do it with the javabridge like the examples you posted. There are any other methods to reduce the graph?

Thank you,

chirayukong commented 6 years ago

I don't know how to get each individual edge's score. However, in sem-bic score, you can set the penalty discount parameter a bit high -- say 100. See if the result's graph is too spare or not. Then, you can reduce/increase the penalty score according to the graph.

marchezinixd commented 6 years ago

Thank you very much, I'll try it.

marchezinixd commented 6 years ago

Changing the penalty worked for me. Thanks