Skip to content
Discussion options

You must be logged in to vote

What is happening on your previous example is that you are looping through all the shapelets using the max_shapelets parameter. The documentation state the following:

max_shapelets : int, default=10000
        The maximum number of shapelets to keep for the final transformation.
        A lower number of shapelets can be kept if alpha similarity has discarded the
        whole dataset.

The error you get :

IndexError: index 7960 is out of bounds for axis 0 with size 7960

Indicates that you are trying to access a shapelet that does not exists, as the algorithm can sometime sample less than max_shapelets depending on the alpha_similarity parameter and the size of your dataset.

To fix your …

Replies: 9 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@Meghna-desai
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@baraline
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@baraline
Comment options

Comment options

You must be logged in to vote
2 replies
@baraline
Comment options

Answer selected by Meghna-desai
@Meghna-desai
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants