bd2kccd / py-causal

Other
204 stars 50 forks source link

JavaException: String index out of range: 2 #102

Open Angela446-lgtm opened 3 years ago

Angela446-lgtm commented 3 years ago

I am working on medical dataset, approximatly 120 discrerte variables and I would like to run the GFCI algorithm with bootstraping and no prior knowledge.

tetrad.run(algoId = 'gfci', dfs = df, testId = 'disc-bic-test', scoreId = 'bdeu-score', priorKnowledge = None, dataType = 'discrete', maxDegree = 3, maxPathLength = -1, completeRuleSetUsed = False, faithfulnessAssumed = True, verbose = True, numberResampling = 5, resamplingEnsemble = 1, addOriginalDataset = True)

Talking this error :JavaException: String index out of range: 2 Can you help me find the error?

Thank you, Angela

kvb2univpitt commented 3 years ago

@Angela446-lgtm My guess is that you're missing quotes around the df parameter:

tetrad.run(algoId = 'gfci', dfs = df, testId = 'disc-bic-test', scoreId = 'bdeu-score',...