Interrupt code breaks sometimes
- Lingua principale
- Python
- Stelle
- 2.7k
- Fork
- 1k
- Merge medio
- 7g 14h
- PR unite (30g)
- 2
Descrizione
## 🐛 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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia riproducendo il problema con l'esempio fornito di scikit-learn QuantileTransformer e un dataset di grandi dimensioni, quindi confronta il comportamento in caso di interruzione con un valore più piccolo di n_quantiles. Il lavoro è completo quando il kernel può essere interrotto mentre la trasformazione di lunga durata è in corso, ma l'issue non identifica alcun file del repository né alcun test da aggiornare.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python, scikit-learn
- Ambito
- machine-learning
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 30/100