Interrupt code breaks sometimes
- Linguagem predominante
- Python
- Estrelas
- 2.7k
- Forks
- 1k
- Merge médio
- 7d 14h
- PRs com merge (30d)
- 2
Descrição
## 🐛 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.
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
Comece reproduzindo o problema com o exemplo fornecido de scikit-learn QuantileTransformer e um conjunto de dados grande; em seguida, compare o comportamento da interrupção com um valor menor de n_quantiles. Considera-se concluído quando o kernel puder ser interrompido enquanto a transformação de longa duração estiver em andamento, mas o issue não identifica nenhum arquivo do repositório ou teste a ser atualizado.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- python, scikit-learn
- Domínio
- machine-learning
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 30/100