Skip to content

list of sequences | not working #6

@ZiyadMoraished

Description

@ZiyadMoraished

Hi There!

I'm trying to load the data as list of sequences as show below

from pycspade.helpers import spade, print_result
spade([[1, 1,[ 2]],
       [1, 2, [1]],
       [2, 1, [2]]])

I get the following error

TypeError Traceback (most recent call last)
in ()
1 spade([[1, 1,[ 2]],
2 [1, 2, [1]],
----> 3 [2, 1, [2]]])

~\AppData\Local\Continuum\anaconda3\lib\site-packages\pycspade\helpers.py in spade(filename, data, support, maxsize, maxlen, mingap, maxgap, memsize, numpart, maxwin, bfstype, tid_lists, parse)
123 raise Exception('You must provide either filename or data')
124
--> 125 if filename and not os.path.isfile(filename):
126 raise Exception('File {} does not exist'.format(filename))
127

~\AppData\Local\Continuum\anaconda3\lib\genericpath.py in isfile(path)
28 """Test whether a path is a regular file"""
29 try:
---> 30 st = os.stat(path)
31 except OSError:
32 return False

TypeError: stat: path should be string, bytes, os.PathLike or integer, not list

I'm using :

  1. python 3.6.4
  2. windows 10
  3. running on Jupyter noetbook

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions