Time series scalers reject ragged lists despite variable-length support
维护者通常 1 天内回复
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- numpy, python
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Python
- 星标
- 3.2k
- 派生
- 418
- 平均合并
- 2 天 14 小时
- 30 天内合并 PR
- 24
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
tslearn-team/tslearn 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
tslearn-team/tslearn#854 ·
维护者通常 1 天内回复
-
Negative sakoe_chiba_radius is silently accepted: dtw/ctw/frechet return inf and lcss returns 0可能已有人在做 @MohamedO6 今天认领。 未关闭
tslearn-team/tslearn#857 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 55/100
tslearn-team/tslearn#855 ·
维护者通常 1 天内回复
-
PAA / SAX / 1d-SAX silently return NaN or garbage when n_segments is larger than the series length可能已有人在做 @MohamedO6 于 2 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 20/100
tslearn-team/tslearn#852 ·
维护者通常 1 天内回复
-
arbitrary code execution when loading a model via from_pickle (CWE-502)可能已有人在做 @ifaizk5 于 4 天前认领。 未关闭documentation good first issue
难度 5/5 一周以上 新手友好度 25/100
tslearn-team/tslearn#820 · 1 条评论 ·
维护者通常 1 天内回复
查看 tslearn-team/tslearn 的全部 Issue
相似的 Issue
-
Test: to_hijri() accepts datetime.datetime and uses only the date part可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭good first issue
难度 1/5 1 小时以内 新手友好度 95/100
omarelshamy25x/shamy-hijri#63 · 3 条评论 ·
维护者通常 1 天内回复
-
polish
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
521xueweihan/HelloGitHub#4729 ·
-
[Bug]: Score parser reads parts of scientific notation as valid scores可能已有人在做 @AshutoshSingh840 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
UKGovernmentBEIS/control-arena#992 ·
维护者通常 3 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
mvalentsev/awesome-free-ai-coding#70 ·
维护者通常 1 天内回复