You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
implement / benchmark loguniform distribution for randomized search #9919
Most of our standard grid searches use logarithmic scales. For the randomized search we approximate that using the exponential distribution. It might be quite a bit better to use an actual log uniform distribution. It would be great if someone could benchmark that and possibly add the log uniform distribution (to the utils?).
I spent some time digging into this and couldn’t find the exponential distribution the issue refers to. Any direction would be appreciated. Otherwise I’ll stick with the Easy tags for now.
It would be great if you started from my branch, 50e0320. I think log uniform is implemented correctly, but I haven't fully tested it or integrated it into the documentation.
@amueller this would be highly relevant for our project with LMU (and currently relies on custom code in the notorious openml study 14 repo). @stsievert Is there anything I can do to facilitate this PR?
@janvanrijn I've gone and updated that PR, and it's very near completion. If you want something, feel free to fork my repo and put in a PR to my branch lograndom.
I would have liked to see benchmark that this actually is good if we want to recommend using that, but it looked like @jnothman didn't mind that much? Right now there's merge conflicts. If we want to merge without adding benchmarks that's the main issue. @janvanrijn if you want to provide benchmarks that this is better than expon (or tell one of our students to do that) I think that would be interesting.
Or we can just resolve merge conflicts and I review...
Activity
amueller commentedon Oct 13, 2017
Log uniform should look like:
(though it needs a slightly different API for use in RandomizedSearchCV)
sauln commentedon Oct 15, 2017
I'd like to handle this issue!
sauln commentedon Oct 15, 2017
I spent some time digging into this and couldn’t find the exponential distribution the issue refers to. Any direction would be appreciated. Otherwise I’ll stick with the Easy tags for now.
amueller commentedon Nov 7, 2017
@sauln
scipy.stats.exponFarahSaeed commentedon Dec 7, 2017
@sauln I'd like to work on this if not already being worked on :)
sauln commentedon Dec 7, 2017
@FarahSaeed If you want to, by all means.
It would be great if you started from my branch, 50e0320. I think log uniform is implemented correctly, but I haven't fully tested it or integrated it into the documentation.
See https://github.com/sauln/scikit-learn/blob/50e0320f211d2e70ba194f8589283b2cf7551b01/sklearn/utils/random.py#L204 for the implementation
I started putting together some benchmarks, but was having trouble figuring out exactly what to benchmark.
amueller commentedon Dec 8, 2017
With benchmark I meant as parameter distribution for SVC or regularization in linear models. Sorry If I was being unclear.
jscheithe commentedon Apr 12, 2018
I don't know if this is helpful or not, but I want to share the solution I found here
stsievert commentedon May 30, 2018
@sauln could you submit a PR for your implementation? I'd like to have a user facing API for this.
sauln commentedon May 31, 2018
Sure, I'll get it merged in tonight.
sauln commentedon Jun 4, 2018
@stsievert, apologies, it will be a few weeks until I have the bandwidth to set up a PR. If you need it sooner, please feel free to copy the code.
stsievert commentedon Jun 5, 2018
Thanks for that. I'll set up a PR soon, and make sure to credit you in the description.
janvanrijn commentedon Jul 4, 2018
@amueller this would be highly relevant for our project with LMU (and currently relies on custom code in the notorious openml study 14 repo). @stsievert Is there anything I can do to facilitate this PR?
stsievert commentedon Jul 4, 2018
@janvanrijn I've gone and updated that PR, and it's very near completion. If you want something, feel free to fork my repo and put in a PR to my branch
lograndom.janvanrijn commentedon Oct 29, 2018
@amueller @stsievert This PR is still very relevant to our projects. Is there anything I can do to facilitate or help moving this PR forward?
amueller commentedon Oct 29, 2018
I would have liked to see benchmark that this actually is good if we want to recommend using that, but it looked like @jnothman didn't mind that much? Right now there's merge conflicts. If we want to merge without adding benchmarks that's the main issue. @janvanrijn if you want to provide benchmarks that this is better than expon (or tell one of our students to do that) I think that would be interesting.
Or we can just resolve merge conflicts and I review...
janvanrijn commentedon Oct 29, 2018
I'm happy to add the benchmarks.
You mean compare the added distribution with this distribution?
amueller commentedon Oct 29, 2018
yeah. I actually thought we had used that in the docs but it looks like we didn't because it didn't work well lol.