We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7924253 + e25df9c commit d450dd8Copy full SHA for d450dd8
causallearn/utils/cit.py
@@ -288,7 +288,7 @@ def _Fill3DCountTableByUnique(dataSXY, cardSXY):
288
def _Fill3DCountTable(dataSXY, cardSXY):
289
# about the threshold 1e5, see a rough performance example at:
290
# https://gist.github.com/MarkDana/e7d9663a26091585eb6882170108485e#file-count-unique-in-array-performance-md
291
- if np.prod(cardSXY) < CONST_BINCOUNT_UNIQUE_THRESHOLD: return _Fill3DCountTableByBincount(dataSXY, cardSXY)
+ if 0 < np.prod(cardSXY) < CONST_BINCOUNT_UNIQUE_THRESHOLD: return _Fill3DCountTableByBincount(dataSXY, cardSXY)
292
return _Fill3DCountTableByUnique(dataSXY, cardSXY)
293
294
def _CalculatePValue(cTables, eTables):
0 commit comments