Time series scalers reject ragged lists despite variable-length support
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- numpy, python
- Área
- machine-learning
Línea de trabajo
Start by running the reproducer in the issue, then read the implementations of TimeSeriesScalerMinMax and TimeSeriesScalerMeanVariance and their existing tests. Check fit_transform, transform, and inverse_transform against the expected behavior for ragged input, including the stated validation checks. Done means ragged lists match the results from explicitly calling to_time_series_dataset; an open pull request is already linked.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
TimeSeriesScalerMinMax and TimeSeriesScalerMeanVariance reject a list containing time series of different lengths. The same data succeeds after explicitly calling to_time_series_dataset, and other variable-length preprocessors accept such lists directly.
To Reproduce
from tslearn.preprocessing import TimeSeriesScalerMinMax
TimeSeriesScalerMinMax().fit_transform([[1, 3], [5, 7, 9]])
This raises ValueError: setting an array element with a sequence ... inhomogeneous shape. The same problem affects TimeSeriesScalerMeanVariance, transform after fitting padded input, and inverse_transform with per_timeseries=False.
Expected behavior
Validate the individual time series, pad shorter series with NaN, and produce the same result as explicitly formatting the dataset first. Preserve fitted-state, feature-count and invalid-input checks.
Environment
macOS arm64, Python 3.11.9, tslearn 0.10.0.dev at 9ef74f9602a93057cb1e3e5fdb389e210a4f4f97, NumPy 2.4.6, scikit-learn 1.7.2.
Developed with GPT assistance
- Lenguaje dominante
- Python
- Estrellas
- 3.2k
- Forks
- 418
- Merge medio
- 2 d 14 h
- PR fusionados (30 d)
- 24
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de tslearn-team/tslearn
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
tslearn-team/tslearn#854 ·
Los mantenedores suelen responder en 1 día
-
Negative sakoe_chiba_radius is silently accepted: dtw/ctw/frechet return inf and lcss returns 0Posiblemente ocupada @MohamedO6 la tomó hoy. Abierto
tslearn-team/tslearn#857 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 55/100
tslearn-team/tslearn#855 ·
Los mantenedores suelen responder en 1 día
-
PAA / SAX / 1d-SAX silently return NaN or garbage when n_segments is larger than the series lengthPosiblemente ocupada @MohamedO6 la tomó hace 2 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 20/100
tslearn-team/tslearn#852 ·
Los mantenedores suelen responder en 1 día
-
arbitrary code execution when loading a model via from_pickle (CWE-502)Posiblemente ocupada @ifaizk5 la tomó hace 4 días. Abiertodocumentation good first issue
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
tslearn-team/tslearn#820 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de tslearn-team/tslearn
Issues similares
-
docs(contributing): the two things that silently block a PRPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoavailable documentation good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 95/100
Nixitov/Riptide-Native#944 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
JTHCode/secretguard#24 ·
Los mantenedores suelen responder en 1 día
-
area: middleware documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
omarelshamy25x/shamy-hijri#63 ·
Los mantenedores suelen responder en 1 día