## Cosine similarity in Python

Cosine similarity is the normalised dot product between two vectors. I guess it is called “cosine” similarity because the dot product is the product of …

Skip to content
# Category: Algorithms

## Cosine similarity in Python

## (Integer) Linear Programming in Python

## How to compute the pagerank of almost anything

## Running LP-solver in Postgres

## Clustering in Python

## Is there a need for a fast compression algorithm for geospatial data?

## Trying a Python R-tree implementation

## A presentation on spatial indexing

## Having a look at vbuckets

## Idea: Automatic theft prevention in public spaces

trying stuff with code

Cosine similarity is the normalised dot product between two vectors. I guess it is called “cosine” similarity because the dot product is the product of …

Step one: brew install glpk pip install pulpbrew install glpk pip install pulp Step two: from pulp import * prob = LpProblem("test1", LpMinimize) …

Whenever two things have a directional relationship to each other, then you can compute the pagerank of those things. For example, you can observe a …

Having reinstalled PostgreSQL with support for Python and pointing at my non-system python, it is time to test whether I can use the convex optimizer …

In a project I’m going to use clustering algorithms implemented in Python, such as k-means. Clustering http://stackoverflow.com/questions/1545606/python-k-means-algorithm scipy.cluster has been reported to have some problems, …

Fast compression algorithms like Snappy, QuickLZ and LZ4 are designed for a general stream of bytes, and typically don’t treat byte-sequences representing numbers in any …

Rtree is a ctypes Python wrapper of libspatialindex that provides a number of advanced spatial indexing features for the spatially curious Python user.

A friend of mine, who is the CEO of a company that develops an embedded database, asked me to do a presentation on spatial indexing. …

A distribution algorithm is used to map keys to servers in a distributed key-value store. There are several different ones, implemented in different systems, and …

Background When I’m at the library, I’d like to be able to go to the toilet, without collecting all my stuff from the table. Part …