PAA / SAX / 1d-SAX silently return NaN or garbage when n_segments is larger than the series length
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 20/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- python, scikit-learn
- Ambito
- data, machine-learning
Direzione di ricerca
The issue names PiecewiseAggregateApproximation, SymbolicAggregateApproximation, and OneD_SymbolicAggregateApproximation, but gives no file or test paths. Start by locating those classes and their existing tests, then check how they handle n_segments values of 0, 2.5, and values larger than the series length. Done means each class raises a clear ValueError for invalid values; an open linked pull request already covers this work.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
With X = [[1, 2, 3]] and n_segments=5 on current main, PiecewiseAggregateApproximation returns [nan, 1, nan, 2, 3] because some segments are empty. SymbolicAggregateApproximation turns the NaN segments into arbitrary symbols without any error ([2 2 2 2 2]), and OneD_SymbolicAggregateApproximation fails with Found array with 0 sample(s) ... required by LinearRegression. n_segments=0 or 2.5 is not checked either.
Proposal: raise a clear ValueError when n_segments is not a positive integer or exceeds the series length.
I have a fix with tests ready and can open a PR if that's welcome.
- Lingua principale
- Python
- Stelle
- 3.2k
- Fork
- 418
- Merge medio
- 2g 14h
- PR unite (30g)
- 24
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di tslearn-team/tslearn
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
tslearn-team/tslearn#854 ·
I maintainer di solito rispondono entro 1 giorno
-
Negative sakoe_chiba_radius is silently accepted: dtw/ctw/frechet return inf and lcss returns 0Forse già presa @MohamedO6 l’ha presa oggi. Aperta
tslearn-team/tslearn#857 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
tslearn-team/tslearn#855 ·
I maintainer di solito rispondono entro 1 giorno
-
arbitrary code execution when loading a model via from_pickle (CWE-502)Forse già presa @ifaizk5 l’ha presa 4 giorni fa. Apertadocumentation good first issue
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
tslearn-team/tslearn#820 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Time series scalers reject ragged lists despite variable-length supportForse già presa @sunlishuo25 l’ha presa 62 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
tslearn-team/tslearn#751 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di tslearn-team/tslearn
Issue simili
-
Test: to_hijri() accepts datetime.datetime and uses only the date partForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertagood first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
omarelshamy25x/shamy-hijri#63 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno