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

How to run with algoId = ts*? #114

Open
jhlinplus opened this issue Aug 18, 2022 · 0 comments
Open

How to run with algoId = ts*? #114

jhlinplus opened this issue Aug 18, 2022 · 0 comments

Comments

@jhlinplus
Copy link

Hi!

I was trying to use the following command to run the TS algo

tetrad.run(algoId = 'ts-gfci', dfs = df, scoreId = 'sem-bic', dataType = 'continuous',
           maxDegree = -1, faithfulnessAssumed = True, verbose = True)

but encountered the following error msg:

$$$$$ Entering returnSimilarPairs method with x,y = X22, X12                                           
Exception in thread "Thread-1" java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 0 
        at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)                
        at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)    

After some search, according to this thread (cmu-phil/tetrad#855) it seems to suggest that for ts data a prior knowledge is required. However, it's unclear to me what data structure is expected -- for both the input df (should we expand the original time series with their time-lags in the columns as well?) and the priorknowledge.

I am wondering if there is any sample code (similar to the ones for running gfci) that elaborates how to run when algoId = ts*?

Thanks!

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