-
Notifications
You must be signed in to change notification settings - Fork 219
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
Ch 4 - Improve Simulated Annealing diagram #117
Comments
When I have looked first time at the visualization of algorithm of Simulated Annealing it was not clear for me. I had expected decreasing the temperature step by step and completion of working of the algorithm. Then I opened the Wikipedia and found out that it has visualization which fits my expectations. I guess we may visualize this concept like wikipedia does it: In particular that assumes:
I need your opinions about my proposal @redblobgames , @Rishav159 😺 |
@nervgh Hello, Thanks for your interest in this diagram.
I know that the current implementation is not very clear and needs several improvements, I can't really see why simply automatically decreasing temperatures as a process will fix it. What are your thoughts about this ? |
@Rishav159 thanks for your work ✌️ Many of your visualization are really helpful for me. Decreasing the temperature is not main idea that I was attempting to point on. It is just the trick that would help us to explain the process of optimization. My vision is:
and we are discussing about how to visualize this bound * In the current implementation (problems)
(possible solutions)
* That is the main concept of the algorithm (in my opinion): when the temperature goes down we decrease the radius of the search cone |
I am not sure how f(x) is bounded with x. Almost all states are possible for every temperature. Its just that the probability of bad states being selected at lower temperatures is very low.
I agree with this.
For a particular temperature, there are several states that the algorithm could be in. What differs with temperature is not the states but the probability of selecting a state. What are your thoughts on this ? @redblobgames @nervgh |
…ates number which is out of range
@Rishav159 yes, i was talking about something very similar. I have done a couple of sketches based on Wikipedia's picture to clarify my vision. I was changing the background and temperature only (without moving of current state, red line): Sketch 1frame 0 Sketch 2 |
Would it be useful to plot the probability of choosing a state, as a function of temperature? Then as the temperature changes you'd see that probability distribution change. (This might be a separate diagram to introduce the concept before the diagram that shows the algorithm running) |
I think a combination of the two ideas would be ideal. If we can give every state a color based on a it's probability, I think it would be a lot easier to understand. However, I think the best solution would be to provide an alternate implementation before the current one, where the only actions that can be taken are left and right moves. This will cause the agent to move back-and-forth very quickly, and would not be much better at solving the problem than hill-climbing. However it would allow us to easily display how heat relates to the probability of taking bad actions. More heat->more random. The leap from understanding this diagram to the current one will be small. |
@Rishav159 writes:
The text was updated successfully, but these errors were encountered: