Skip to content
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

Prior setting #81

Open
JIANGMENGRUI opened this issue Nov 28, 2023 · 0 comments
Open

Prior setting #81

JIANGMENGRUI opened this issue Nov 28, 2023 · 0 comments
Assignees

Comments

@JIANGMENGRUI
Copy link

Hi team,

I am trying to do causal discovery on my dataset by following the steps in csuite_example. However, I cannot get the reasonable result. The key difference between my use case and the example is the prior setting.

  • I only set 0 in the expert matrix (EM), for example, there shouldn't be any cause to gender so if j is gender, then EM[i,j] = 0. I have set a lot of edges to be 0 in expert matrix and else will be 1.
  • For relevance mask (RM), it is the inverse of expert matrix, EM[i,j] == 0 then RM[i,j] = 1 and EM[i,j] == 1 then RM[i,j] =0.
  • For confidence matrix (CR), it cloned the RM however I think CM can be either 0 or 1 for edges set to be 0 in EM.

All the setting is based on my understanding from below formula:
self._expert_graph_container.mask
* (A - self._expert_graph_container.confidence * self._expert_graph_container.dag)

In the results, I don't have any causes to my dependent variables (I have 6 dependent variables and total 40+ variables). I am wondering:

  1. Is my prior setting wrong? since I only saw the example on setting the edge to be 1 in EM, my use cause is totally different.
  2. If the i is the parent node and j is the child node?
  3. Maybe there is other issue like adjacency_dist, I totally followed the csuite_example for other parts.

Hope you can help on above questions and thanks in advance!

@JIANGMENGRUI JIANGMENGRUI changed the title Question about the prior setting Prior setting Nov 28, 2023
@LaurantChao LaurantChao self-assigned this Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants