-
-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve and optimize "pastel distinct" #67
Comments
@d-dorazio has implemented the major part of this here: #83 |
I have added a hidden To gain some more insights, I wrote a small Python script which runs Here is the current version:
Example (N=5): Unfortunately, when I increase the number of iterations (and decrease the cooling rate), the "mean" values improve (which is expected), but similar "min" values still appear:
This means that the users can still have "unlucky" runs. The best thing I can come up with right now is to perform multiple runs with random initial starting conditions (starting colors). Then, we would simply pick the best run afterwards. This is also something that could easily be parallelized. @d-dorazio FYI |
I think that running the simulated annealing multiple times is fine and probably the best way to not get stuck in a local minimum. Also, this is an embarrassingly parallel thing to do which is quite nice. I'm not too sure whether it makes sense to run the process on a completely different set of starting colors rather than re-run the process on the same starting ones. That's because I think is less likely to get stuck in a local minimum in the same set of inputs twice vs different ones, but I'm not too sure, it's just a gut-feeling. |
I would think that the exact opposite would be the case. Certainly, if the initial temperature is high enough, it shouldn't really matter. |
I guess this is done given that #88 was merged? |
--max-luminance
(and similar) options in order to generate colors for a white/black background--num-iterations-mean
,--num-iterations-max
, etc to fine-tune the simulated annealing parameterspastel distinct 8 red blue yellow
(fix three colors, generate five new)optimize:
The text was updated successfully, but these errors were encountered: