Skip to content

Error with PC-All - JavaException: Sorry, I was expecting a discrete data set. #104

@jmcoftrindade

Description

@jmcoftrindade

When attempting the code below, I get this error about the data set.

However, I've sucessfully ran FGES discrete (with discrete score-types) for the same data set, so I'm wondering what is the problem.

--- Code ---

'''
df reads a file like this (with more lines obviously)

Cancer,Dyspnoea,Pollution,Smoker,Xray
1,1,0,1,1
1,1,0,1,0
1,1,0,1,1
1,1,0,1,1
explicitly make sure that all values are ints
'''
int_df = df.astype(int)

ind_test = chi-square-test

tetrad.run(algoId = 'pc-all', dfs = int_df, testId = ind_test,
colliderDiscoveryRule = 1, fasRule = 2, depth = 2,
stableFAS = True ,conflictRule = 1, concurrentFAS = True,
useMaxPOrientationHeuristic = True, verbose = True)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions