ban-epfl / rcd

Package for recursive causal discovery
http://www.rcdpackage.com/
5 stars 0 forks source link

How to get the estimated Adjacency matrix #2

Open SaqibMamoon opened 2 months ago

SaqibMamoon commented 2 months ago

Hi,

Is it possible to get the adjacency matrix as the output instead of the list?

sepehr78 commented 2 months ago

What do you mean by the list? The learn_and_get_skeleton function returns a NetworkX undirected graph.

SaqibMamoon commented 2 months ago

@sepehr78

Yes, I got your point; thanks a lot for the clarification. I converted the graph object to numpy Adj matrix using nx.to_numpy_array. However, it returns the binary matrix, is it possible to get the weighted matrix?