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

PC outputting a cyclic graph #112

Open
gyeongeunlee16 opened this issue Jun 13, 2022 · 0 comments
Open

PC outputting a cyclic graph #112

gyeongeunlee16 opened this issue Jun 13, 2022 · 0 comments

Comments

@gyeongeunlee16
Copy link

When I run the example code for PC algorithm on my csv data file, I end up with a cyclic graph (with or without prior knowledge):

tetrad.getAlgorithmParameters(algoId = 'pc-all', testId = 'fisher-z-test')

tetrad.run(algoId = 'pc-all', dfs = combined_small, testId = 'fisher-z-test', 
           priorKnowledge = prior, fasRule = 2, depth = 2, conflictRule = 1, concurrentFAS = True,
           useMaxPOrientationHeuristic = True, verbose = True)

tetrad.getNodes()

For example, I get the following edges:
'X2 --> X9',
'X9 --> X23',
'X23 --> X8',
'X8 --> X2'

Is this possible? Is there a way to restrict the program from generating cyclic graphs?

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

1 participant