Is that a baby bump in your status? Janet Vertesi tried to keep her pregnancy a way from the social networks. Did she succeed? What was the price? (high)
Spurious Correlation – “marriages in Alabama are causing deaths by electrocution” – the nightmare of every data scientist. Are two variable correlated? Is one the cause of the other or the other is the cause of the one? This post took it one step forward –
History of Machine Learning – Another way to view machine learning and the progress made over the years. I’m wondering about the exact starting point \ initial formation of machine learning, I think it is a bit earlier than what is stated there. The reason to read this article is given in Pirkei Avot: “Know from where you came and where you are going and before whom you are destined to give account and reckoning” (3;1).
Breaking Python 2 for 1 – I have missed the first post when it was published so got 2 for 1 now. Two fascinating blog posts about under the hood of CPython, ctypes, garbage collector, etc. I really appreciate the hands on approach, it reveals a side of Python which I’m not exposed to on my daily work (and probably for most projects it is not a good practice to mess with).
Where is Waldo? – find Waldo in just 42 lines of code (not surprising having that 42 is the meaning of life). I have not background in image processing but those tools really make it easy, almost out of the box (and great flashback to my childhood).
A while ago I was asked a question about Spatial database and figured out I didn’t know anything about it. So, I use this platform to document my learning about this topic.
What is Spatial data?
The first lesson in “database 101” is that the design of a database should fit to the queries made on it. The special thing about spatial databases is that they hold data about objects in a geometric spaces. Most of the traditional databases don’t index the information in an optimize way for spatial queries, examples for such queries can be –
- How to far is location A to location B?
- How to get from location A to location B?
- What is the closest restaurants to some location?
- What is the path people usualy take in some park \ market?
- Is location A inside city B?
We can divide spatial queries to few groups (based on Wikipedia)
- Spatial Measurements: Computes line length, polygon area, the distance between geometries, etc.
- Spatial Functions: Modify existing features to create new ones, for example by providing a buffer around them, intersecting features, etc.
- Spatial Predicates: Allows true/false queries about spatial relationships between geometries. Examples include “do two polygons overlap” or ‘is there a residence located within a mile of the area we are planning to build the landfill?’
- Geometry Constructors: Creates new geometries, usually by specifying the vertices (points or nodes) which define the shape.
- Observer Functions: Queries which return specific information about a feature such as the location of the center of a circle.
What is next?
This post is actually the preview for additional two posts – a theoretic one and a productive one.
The theoretic one will compare the different spatial indices and on which needs each of them answers. This post will talk about the most common index of this kind is R-Tree and some of its’ extensions and presumably some additional related theory.
The productive one will present some of the current solutions for spatial data among them is PostGis used in PostgreSQL, MySQL and additional NoSQL solution (probably either Neo4j or MongoDB).
Beside the basic curiosity of learning a new thing I believe that the field of “Location intelligence”, i.e., using and analyzing spatial information as part of the decision making process, is an emerging field yet to be discovered. In other words location intelligence is another layer of business intelligence (BI) and as the technology evolves and the data is gathered we can now use this data better than ever before.
Some of the current commercial application of location intelligence –
- Route planning – such as Waze
- Geo targeting – for example using IP address to display relevant ads.
- Travel planning – hotel, restaurant, attractions such as GetYourGuide
- Sales analysis – such as SpatialKey
MailPin -Turn an email to a web page – For me it is a cool tool that I probably won’t use but it is cool and that is also important thing those days.
10 years to LiMux project – “How Munich switched 15,000 PCS from Windows to Linux”. Interesting both on the technological aspect and both on the sociological \ anthropological aspect.
Why Python is Slow: Looking Under the Hood: I really like posts which help me understand better what I’m doing and this one is also very well written. Through Python Weekly.
How to Marry The Right Girl: A Mathematical Solution: I must admit that I don’t like those kind of posts or at least their header. I feel they are very sexist not to say misanthropic. However, there was one point which I relate to in this post but on a different scope work interviews. Doing some work interviews lately, my gut feeling is that being in the first group really harm the chances of getting hired. Many interviewers don’t really know what exactly they are looking for and refine their requirements only after several interviews. To conclude the content was interesting but could be written in a different tone.
The Economics of Kickstart project: Crowd-funding is one of the latest trends. As in everything there are both advantages and disadvantages. One of the main advantages as I see it is the global exposure to one’s ideas. The down side of this advantage is that it eases the way to still ideas (some my call it inspiration). More over it does not really clearly if it is always profitable as expected. More about it in the attached post.