Skip to main content

StOp 1.3: Simulated Annealing in Python, Part 2: Sorting by Searching



 I've written all the instructions and code into another Python Notebook. This will be a more non-traditional application of simulated annealing. We'll implement One More, and then move on to the next algorithm.

This is a viewer to see the notebook. Then, you can click Open with Google Colab, Login to your Google Account, and you will be able to edit your own copy of the notebook. If you are doing this, ignore the request in the notebook to make a copy before editing.

Comments

Popular posts from this blog

Phase Spaces 2 : Math and Gradient Descent

I'm going to start from where we left off in the last part of this series. If you haven't read that yet, check that out first if you want a more detailed understanding: We explored what a Phase Space is, why it's useful, what it has to do with Machine Learning, and more!  I'm assuming you've read the previous article, or you know what I talked about there: so let's get to it. At the end of the last article, we discovered that it was the power of mathematics that would help us find the best values of the parameters for the lowest cost function. Before we get into what the Math does, however, we'll need to define some things in the math. If you've done Calculus, and in particular, partial derivatives, you can skip this section, but otherwise I would suggest at least a cursory glance. I don't go into too much detail on the subject, but that's only because you won't need it.  Calculus Interlude: Derivatives- The slope of a graph is a concept you...

Phase Spaces 1 : Graphs and Geometry

Phase Spaces One of the least heard of, and most interesting techniques of the sciences, that you rarely realize you’ve used before. Phase spaces are symbolic representations of a particular problem, which you can then use to solve it. Let’s start with a simple problem - in physics maybe. Let’s say we have a car, as all good physics problems do. You’re driving at a set initial speed, and a set acceleration. At what time would you have travelled exactly 15 ft? Let’s look at it in terms of "a phase space". I have a velocity-time graph down here:                                                                                                                                ...

Philosophy, Machine Learning and Science : Dots and Shapes

As you can see by now, I love analogies. One thing I have begun to realize about Machine Learning is the structure of the ‘learning’ process. In fact, now that I think about it this way, I’m beginning to find analogs in Philosophy, and even in the more traditional Sciences. When you use Machine Learning, you don’t start with fancy algorithms, abstract conjectures or advanced mathematics. You start with data. This could be anything, depending on the nature of the problem you’re trying to solve: populations over years, inflation rates or number of cat videos per day watched by each person in the USA based on different zones or regions. All these( actually, may be not the last one ) have significant applications or derivations that Machine Learning can aid in achieving. But the important idea here is that no rationale can begin without data, at least in terms of AI. Why is this interesting? It reflects a much more fundamental understanding of our scientific or philosophical pursuits in th...