Recent Articles

Python design patterns #3: the decorator

Continuing with one of my favorites – the decorator. It’s a smart one, so a little more talking before coding..   Why? What do you do when you need a flexible combination of properties in an object? If you’re thinking why not sub-classing? you’re ok.. Sub classing is just right for allowing slightly different flavors […]

Python design patterns #2: adapter, bridge and proxy

Finally got the time to complete this project, since I first started it with the classic Singleton. Later I’ll post about the Borg pattern, which is the pythonic version of how singleton should have been.. ———— Adapter, Bridge and Proxy are all about can’t / won’t / prefer-not-to do something directly, but by other mean. They’re […]

Running Elasticsearch, Logstash and Kibana (ELK) as Windows Services – simple instructions

I wanted to share the “short version” I gathered for running the ELK stack as services on a windows server. I’m assuming these versions: ElasticSearch 1.4.4, LogStash 1.4.2, Kibana 4.0.0; and C:\ as the root folder for all installation (more like zip extractions..) —————————————– cd C:\elasticsearch-1.4.4\bin service.bat install —————————————– cd C:\logstash-1.4.2\bin c:\nssm-2.24\win64\nssm install logstash.bat —————————————– […]

Logistic regression – polynomial kernel, using simdfied

As I mentioned in my previous post, a linear decision boundary is rarely enough to describe a real life decision boundary. The Idea behind a non-linear logistic regression algorithms is to “grasp” the more complex mathematical relationship between our set of X features and their respective y label. One way is finding a polynomial relation, also known […]

Logistic regression example (linear decision boundary), using simdfied

Let’s try to predict our chances of getting admitted to Msc studies, based on our Bsc degree GPA and years of experience. Our csv should look like: 2 “X” columns: Bsc-GPA and experience and a “y” column of if-admitted value (0 / 1). We can simulate some data with excel-like functions (I’m using LibreOffice calc on […]

Linear regression example, using simdfied

Let’s test drive simdfied library with a linear regression example. We’ll use MLplaygroung.org, that uses simdfied for Machine Learning and can read csv or mat files. For example, a csv file representing house prices according to its square-foot and number of bedrooms: square foot, #bedrooms, price 2461.68 , 4 , 467883 1872, 4 , 385983 And […]

Announcing simdfied, an open-source Machine Learning library, utilizing SIMD

Lately I’ve been working on simdfied – a Machine Learning javascript library, utilizing SIMD! Earlier this year, Intel announced their collaboration with Google and Mozilla, enabling a preview native SIMD support for firefox-nightly and chromium browsers;  they provided some really nice stats for gaming implementations. For me it was time for an idea I’ve had for a while; implementing a javascript […]

SIMD.JS – another step towards pure ML in javascript

With a cross-giants collaboration between Intel and the leading modern browsers Mozilla and Google-Chrome, a native javascript SIMD performance is now available! In his article, Bringing SIMD to JavaScript, Mohammad Reza Haghighat presents interesting benchmarks running complicated visualizations. I’m much more interested with the ML implications of using SIMD over javascript. I believe this joint effort should […]

Big Data 3-Vs trendy? maybe at 2001.

Big Data 3-Vs trendy? maybe at 2001. Well, Doug Laney definitely wrote about it way back in 2001, in a paper for the META group (today part of Gartner) entitled “3-D Data Management: Controlling Data Volume, Velocity and Variety” If that’s not having a vision, then what is a vision? It’s not a coincidence, in my opinion, […]

hdf5, python and h5py for windows 64 bit

(I’m assuming python 2.76 version here. Make the relevant changes, if different) 1. First install python 64 bit version 2. Apparently, the installer doesn’t register the python installation as 64 bit installation in the registry. You’ll need to “clone” the  registry entry [HKEY_LOCAL_MACHINE\SOFTWARE\Python] into [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python]. Create a registry file “python_276.reg” with the text below and […]