Interrupt code breaks sometimes
- 主要語言
- Python
- 星號
- 2.7k
- 分支
- 1k
- 平均合併
- 7 天 14 小時
- 30 天內合併 PR
- 2
描述
## 🐛 Bug
When running certain code it becomes impossible to interrupt the kernel until that code completes.
### To Reproduce
```
import sklearn
# get large dataset on the order of 1e6 or 1e7
df = ...
sklearn.preprocessing.QuantileTransformer(subsample=1e7, n_quantiles=1e6).fit_transform(df)
```
### Expected behavior
It should interrupt!
### Additional context
That's just an example, I've seen it plenty of times over the last few weeks, usually for commands I'd expect to take a while but that I want to stop midway to tweak something. That just seemed like an easy to replicate example. Oddly enough, the QuantileTransformer will interrupt just fine when n_quantiles is an order of magnitude smaller.
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
先使用提供的 scikit-learn QuantileTransformer 範例和大型資料集重現問題,然後使用較小的 n_quantiles 值比較中斷行為。當長時間執行的轉換進行中可以中斷 kernel 時即算完成,但該 issue 未指出要更新的 repository 檔案或測試。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python, scikit-learn
- 領域
- machine-learning
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 30/100