Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC] Shapelet transform notebook #2046

Merged
merged 84 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
933126c
Initial notebook structure
IRKnyazev Aug 8, 2024
1eac6ed
SAST only works on univariate - will need different dataset
IRKnyazev Aug 8, 2024
b247bbe
made notebook framework up to viz
IRKnyazev Aug 8, 2024
425cad8
collected information for gunpoint dataset
IRKnyazev Aug 8, 2024
16ba323
no longer want to explore the default transformer params, rather use …
IRKnyazev Aug 8, 2024
4a59c6e
generated viz for gunpoint (not looking as expected atm)
IRKnyazev Aug 8, 2024
d514b3e
grouped the graph viz more clearly
IRKnyazev Aug 9, 2024
1d343f4
visualising all shapelets on one graph
IRKnyazev Aug 9, 2024
6594725
cleaned up and reordered
IRKnyazev Aug 9, 2024
13878f7
Time Series Data On Graph
Moonzyyy Aug 9, 2024
46c6695
Extended daniele's graph to be one for each class
IRKnyazev Aug 9, 2024
bc23d64
Added notebook plan
IRKnyazev Aug 9, 2024
36f5a5f
showing pandas head for each transform - need descriptions
IRKnyazev Aug 9, 2024
302f626
few correction, pushing for daniele
IRKnyazev Aug 9, 2024
f288a01
changed wrong docstring param naming from classifier to estimator for…
IRKnyazev Aug 9, 2024
3f56fb0
Made RF classifier for each transform to rank shapelets
IRKnyazev Aug 9, 2024
d17ee7d
Addition of RidgeClassifierCV
Moonzyyy Aug 9, 2024
e2723d4
Made RF classifier for each transform to rank shapelets
IRKnyazev Aug 9, 2024
6ad7e77
Changes from random state to seed for SAST
Moonzyyy Aug 9, 2024
f7e013a
push
Moonzyyy Aug 9, 2024
5a6a582
found a good random seed for shapelet gen
IRKnyazev Aug 11, 2024
9b19543
making new branch for a quick PR
IRKnyazev Aug 11, 2024
0e49b6c
plotting shapelets by class
IRKnyazev Aug 11, 2024
406e285
showing best and worst shapelet for a class using rccv
IRKnyazev Aug 11, 2024
3069d35
trying to set up dev version
IRKnyazev Aug 11, 2024
1e70036
Merge branch 'aeon-toolkit:main' into shapelet_transform_nb
IRKnyazev Aug 11, 2024
19dfb14
was thinking about worst shapelets incorrectly this whole time
IRKnyazev Aug 11, 2024
71ff5a5
gen best and worst shapelet for each class - RST
IRKnyazev Aug 12, 2024
7357d6c
shapelet attribute is completely different in rdst
IRKnyazev Aug 12, 2024
8bb7fc4
can't access shapelet start point, making seperate PR for this
IRKnyazev Aug 12, 2024
2eee26c
Merge branch 'main' into shapelet_transform_nb
IRKnyazev Aug 12, 2024
9dc4b6a
notebook command for reloading aeon
IRKnyazev Aug 12, 2024
166377e
Merge branch 'main' into shapelet_transform_nb
IRKnyazev Aug 12, 2024
665c5c8
local changes can now be seen in nb
IRKnyazev Aug 12, 2024
42f16e6
added shapelet startpos (wont commit those changes tho)
IRKnyazev Aug 12, 2024
7e981ed
added startpos to shapelets list
IRKnyazev Aug 12, 2024
0a27315
added docstring for startpoints
IRKnyazev Aug 12, 2024
6011a31
Merge branch 'rdst_startpos' into shapelet_transform_nb
IRKnyazev Aug 12, 2024
52e291d
changed startpos vals to int32
IRKnyazev Aug 12, 2024
a6b8350
Merge branch 'rdst_startpos' into shapelet_transform_nb
IRKnyazev Aug 12, 2024
b282d2e
plotting dilated shapelets!
IRKnyazev Aug 12, 2024
38981b7
not using both classifers for remaining transforms
IRKnyazev Aug 13, 2024
bf51a1c
plotting dilated shapelets split into classes
IRKnyazev Aug 13, 2024
f430175
continued work on rdst
IRKnyazev Aug 14, 2024
1fe7804
Merge branch 'main' into shapelet_transform_nb
IRKnyazev Aug 14, 2024
eea198d
added dilation legend to RDST shapelet plot
IRKnyazev Aug 14, 2024
f7d361a
_get_shp_importance handles RDST weirdly
IRKnyazev Aug 14, 2024
19fb7b7
visualise best shapelet one class works wrong for rdst - making issue…
IRKnyazev Aug 14, 2024
da3afb2
dont need best and worst for each class as theyre mirrors
IRKnyazev Aug 14, 2024
a6f5183
giving RDST same length param as RST
IRKnyazev Aug 14, 2024
0ca254e
Merge branch 'aeon-toolkit:main' into shapelet_transform_nb
IRKnyazev Aug 20, 2024
66a896e
merge
IRKnyazev Aug 20, 2024
38a0bbc
Merge branch 'shapelet_transform_nb' of https://github.com/IRKnyazev/…
IRKnyazev Aug 20, 2024
463dfcf
trying to plot the shapelets extracted with SAST
IRKnyazev Aug 21, 2024
876a60c
adding analysis & trying to understand SAST
IRKnyazev Aug 21, 2024
f676a17
plotted top 10 shapelets sast without start pos
IRKnyazev Aug 22, 2024
eaf863b
plotting SAST shapelets and understanding their roots
IRKnyazev Aug 22, 2024
f8dbaf8
using original dast attribute for source ts
IRKnyazev Aug 22, 2024
fa4543a
using original dast attribute for source ts
IRKnyazev Aug 22, 2024
f38b8a1
Merge branch 'shapelet_transform_nb' of https://github.com/IRKnyazev/…
IRKnyazev Aug 22, 2024
73867f3
generated all figures for notebook
IRKnyazev Aug 23, 2024
7d82790
formalising notebook & adding analysis
IRKnyazev Aug 23, 2024
326553a
added notes from SAST paper
IRKnyazev Aug 23, 2024
07cedeb
added notes from rdst
IRKnyazev Aug 23, 2024
01f0aa1
almost done ST analysis, trying to make sense of importance
IRKnyazev Aug 23, 2024
d73cc82
changed rccv to logistic regression which is easier to interpret
IRKnyazev Aug 27, 2024
a3d30fd
finished with RST analysis
IRKnyazev Aug 27, 2024
6dccc2e
my label encoding understanding for STC is wrong
IRKnyazev Aug 27, 2024
7e59ab6
STC and RDST graphs and classes make sense - issue2016
IRKnyazev Aug 28, 2024
573826d
writing analysis of STC and RDST graphs
IRKnyazev Aug 28, 2024
a97d030
first draft of notebook done
IRKnyazev Aug 29, 2024
c4de1f5
article 1 for medium
IRKnyazev Sep 4, 2024
09dc4bc
article 3 for medium
IRKnyazev Sep 5, 2024
6a85333
article 2 for medium
IRKnyazev Sep 5, 2024
5a108e0
medium article 4
IRKnyazev Sep 6, 2024
051d9bc
summary of transforms
IRKnyazev Sep 11, 2024
3bd2f5d
Merge branch 'aeon-toolkit:main' into shapelet_transform_nb
IRKnyazev Sep 11, 2024
9a2d274
Notebok draft ready for review
IRKnyazev Sep 11, 2024
b9daa21
Merge branch 'main' into shapelet_transform_nb
IRKnyazev Nov 4, 2024
397cb24
Merge branch 'main' into shapelet_transform_nb
IRKnyazev Nov 4, 2024
48b8f38
updated aeon.registry to utils.discovery
IRKnyazev Nov 6, 2024
788a5b2
Merge branch 'shapelet_transform_nb' of https://github.com/IRKnyazev/…
IRKnyazev Nov 6, 2024
3eace44
resolving conflicts
IRKnyazev Nov 8, 2024
57d0c5d
Merge branch 'main' into shapelet_transform_nb
IRKnyazev Nov 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aeon/classification/compose/_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ClassifierPipeline(BaseCollectionPipeline, BaseClassifier):
the str is used to name the transformer.
The objecst are cloned prior, as such the state of the input will not be
modified by fitting the pipeline.
classifier : aeon or sklearn classifier
estimator : aeon or sklearn classifier
A classifier to use at the end of the pipeline.
The object is cloned prior, as such the state of the input will not be modified
by fitting the pipeline.
Expand Down
2 changes: 1 addition & 1 deletion aeon/classification/shapelet_based/_rsast.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class RSASTClassifier(BaseClassifier):
the number of reference time series to select per class
seed : int, default = None
the seed of the random generator
classifier : sklearn compatible classifier, default = None
estimator : sklearn compatible classifier, default = None
if None, a RidgeClassifierCV(alphas=np.logspace(-3, 3, 10)) is used.
n_jobs : int, default -1
Number of threads to use for the transform.
Expand Down
2 changes: 1 addition & 1 deletion aeon/classification/shapelet_based/_sast.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class SASTClassifier(BaseClassifier):
the number of reference time series to select per class
seed : int, default = None
the seed of the random generator
classifier : sklearn compatible classifier, default = None
estimator : sklearn compatible classifier, default = None
if None, a RidgeClassifierCV(alphas=np.logspace(-3, 3, 10)) is used.
n_jobs : int, default -1
Number of threads to use for the transform.
Expand Down
4,164 changes: 4,164 additions & 0 deletions examples/transformations/shapelets.ipynb

Large diffs are not rendered by default.