IBCNServices / GENDIS

Contains an implementation (sklearn API) of the algorithm proposed in "GENDIS: GEnetic DIscovery of Shapelets" and code to reproduce all experiments.
Other
102 stars 26 forks source link

from gendis.genetic import GeneticExtractor and from genetic import GeneticExtractor don't work #11

Closed texaspandaa closed 4 years ago

texaspandaa commented 4 years ago

Hi There,

thanks for creating this great package, i am just installed and try to explore it. However when i try to follow the tutorial, i got below error:

from gendis.genetic import GeneticExtractor Traceback (most recent call last): File "C:\Anaconda\envs\te\gendis\genetic.py", line 33, in from fitness import logloss_fitness ModuleNotFoundError: No module named 'fitness'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Anaconda\envs\te\gendis\fitness.py", line 6, in from gendis.pairwise_dist import _pdist ModuleNotFoundError: No module named 'gendis.pairwise_dist'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 1, in File "C:\Anaconda\envs\te\gendis\genetic.py", line 35, in from gendis.fitness import logloss_fitness File "C:\Anaconda\envs\te\gendis\fitness.py", line 8, in from pairwise_dist import _pdist ModuleNotFoundError: No module named 'pairwise_dist'

from genetic import GeneticExtractor Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'genetic'

but i am able to import gendis using below and see the private members only of this class, could you please kindly help?

import gendis gendis. gendis.cached gendis.format( gendis.loader gendis.reduce_ex( gendis.class( gendis.ge( gendis.lt( gendis.repr( gendis.delattr( gendis.getattribute( gendis.name gendis.setattr( gendis.dict gendis.gt( gendis.ne( gendis.sizeof( gendis.dir( gendis.hash( gendis.new( gendis.spec gendis.doc gendis.init( gendis.package gendis.str( gendis.eq( gendis.init_subclass( gendis.path gendis.subclasshook( gendis.file gendis.le( gendis.reduce(

best pandaa

GillesVandewiele commented 4 years ago

Hi, how did you exactly install it? Through pip or through the setup.py script?

texaspandaa commented 4 years ago

hello, thank u for your reply, i think i used pip to install it.

Just another question regarding the pso.py, it seems that the ne_shapelets parameter in the extract method is not used by this method, so i can only extrat one shapelet using that method.

best, pandaa

GillesVandewiele commented 4 years ago

Hmm strange, I'm not much of a Windows expert. Maybe you have better luck using python setup.py install? I will check later if I can reproduce it, but I am currently travelling abroad.

All code from the other directory is a bunch of stuff I once experimented with (with bad code quality). I just uploaded that for completeness and perhaps it could be useful for someone to build further on it. You are completely correct that it will only extract one shapelet as opposed to a set of shapelets.

texaspandaa commented 4 years ago

Hello, thank you for your reply, the setup.py install works :)

GillesVandewiele commented 4 years ago

Great to hear and thanks for reporting this. I will have a closer look at the pip install later :)