Skip to content

Commit

Permalink
Skip filter_for_moving_window_subsets for winlen=1 (NeuralEnsemble#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleinjohann committed May 19, 2020
1 parent 12b1d93 commit 8ce0013
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions elephant/spade.py
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,10 @@ def _filter_for_moving_window_subsets(concepts, winlen):
if len(concepts) == 0:
return concepts

# don't do anything if winlen is one
if winlen == 1:
return concepts

if hasattr(concepts[0], 'intent'):
# fca format
# sort the concepts by (decreasing) support
Expand Down

0 comments on commit 8ce0013

Please sign in to comment.