Is it possible to assign a time limit to randomsearch cv? I know that you can tweak number of iterations, but I specifically want to control maximum searching time besides the number of iterations.
The reason behind this is that am using a search grid of different preprocessing steps and for every preprocessing combination, I call a randomsearchCV with cv=4 and iterations=30. This is no problem for most combinations (training time really short <20s), but for some combinations it seems to run forever and I don't know why.
I searched for hours what the problem behind the infinite training time was, but I have given up on this so I just want to skip cases where the training time exceeds 10 minutes.
I can show code if necessary, but I think it wouldn't help here.