Tag Archives: Python

Machine Learning with PyBrain

Looks very impressive, a comprehensive library for machine learning using Python.

Video | Posted on by | Tagged , , , , , | Leave a comment

Facial detection using OpenCV & Python on Windows7-Cygwin64

Finally! As described in my previous post, I had some struggle getting OpenCV to run at all under my Windows7 / Cygwin64 installation, but eventually I managed getting it working for C++. However, Python still refused to cooperate with OpenCV, … Continue reading

Posted in development, software | Tagged , , , | Leave a comment

Python image processing – object recognition

When looking for a function enabling me to do normalized cross correlation of images, for purposes of object recognition, I stumbled upon an extension to the SciPy library: SciKit-image. After a few minutes of browsing that site I was able … Continue reading

Posted in development, Math, software | Tagged , , | Leave a comment

image processing – convolution explained.

The Python code below demonstrates convolution.  First, using Scipy’s convolve() function, then by two – far from optimal, far from high performance!  – ‘invented-here’ implementations of convolve(), that I hacked in order to understand what Scipy’s convolve() actually does. The … Continue reading

Posted in development, software | Tagged , , , | Leave a comment

Image processing with Python, Numpy & Scipy – image convolution

I spent a few hours tonight learning the basics of image processing. In particular, I wanted to understand convolution, that is, a techique for applying various types of filters to images. I’m not going to cover all the nitty gritty … Continue reading

Posted in development, Math, software | Tagged , , | 1 Comment

Simple image processing with Python, Numpy & Matplotlib

When I saw the topmost image on the Russian riot police, I just had to do a simple image transformation, more specifically, a reflection, to produce a mirror image. Numpy’s powerful functions makes such a tranformation very simple.   import … Continue reading

Posted in development, software | Tagged , , | Leave a comment

Optimization: 100x performance boost (even without DevOps!) :-)

(First of all, apologies for the mention of ‘DevOps’ above:this post has, as far as I can tell – since I really don’t know what DevOps is, haven’t found any place where to download it… – nothing what so ever … Continue reading

Posted in development, Math, software | Tagged , , , , , , | 1 Comment

Algorithm analysis – Big O notation

Continuing from my previous post on performance analysis of algoritms, I decided to plot the CPU-time over the size of the problem, that is, the number of cells. The two graphs above, both plotted ‘log-log’, demonstrate a straight line.  A straight … Continue reading

Posted in development, software | Tagged , , , | Leave a comment

Single simulation run consuming 230 h (!) of cpu-time – root cause analysis of performance

I think I’ve broken some kind of record of CPU-time consumption for a single simulation run… for a fairly trivial application… As my frequent readers know, I’ve been playing lately with a simulation of Shelling’s segration model (see previous posts … Continue reading

Posted in Big Data, development, software | Tagged , , , , | Leave a comment

High Performance Computing with Python…!

This seems very very interesting: HPC with Python…! Thinking about giving it a try.

Video | Posted on by | Tagged , , | Leave a comment