I was wondering how long it could take to write a multivariate classifier in python. With python and numpy it isn't long. We simply need to be able to compute the covariance matrix, the determinant and to inverse a matrix (covariance matrix). Even if the matrix is singular, which mean it can't inverse it, you can compute the pseudo-inverse (Moore-Penrose) easily (i.e.: numpy.linalg.pinv). As expected, assuming too much about the data lead to poor classification.
I am pretty busy these days with my new job ( I am heading a start-up in the telecommunications market ) but I took a couple of hours to craft a couple of scripts.br /br /The first script (ilastfm_gettracks/i) downloads all of a user's song track information from a href="http://last.fm/"Last.fm/a.
Getting a 64-bit installation of Python with scientific packages on our dear Windows isn’t as simple as running an apt-get or port command. There is an official 64-bit Python build available but extensions like numpy, scipy or matplotlib only have official 32-bit builds. There are commercial distributions such as Enthought that offer all the packages built in 64-bit but at around 200$ per license, this was not an option for me.
Just a quick note to let users of ba href="http://www.systemical.com/doc/opensource/musicbrainz-proxy-dbus"musicbrainz-proxy-dbus/a/b amp; ba href="http://www.systemical.com/doc/opensource/lastfm-proxy-dbus"lastfm-proxy-dbus/a/b applications that new versions are available on my a href="https://launchpad.net/~jldupont/+archive/jldupont"PPA/a.
Today we had to patch a class function in production. Monkey patching can become tricky if reference are kept at several place like pointer in C and C++. Here is a simple example on how to make sure all references will use the new definition. class Foo: def f(self): print "default f"
def newf(self): print "newf"
Foo.f.im_func.func_code = newf.func_codeThis is another reason why interpreter language like python are so powerful.
pIf you were to apply a bijective function to each letter in each word of a language (e.g. English), how many pre-existing words would you obtain in the resulting image?/p
pSince that#8217;s a pretty convoluted way of explaining things, let#8217;s try a more concrete example.
Whilst developing my latest software project (a href="http://jldupont.blogspot.com/2010/01/rhythmbox-plugin-syncing-with-lastfm.html"Rhythmbox plugin Last.fm sync/a), I have crafted a "Message Bus" based on Gnome GObject. Since I didn't have any experience at all with Gnome GObject previously, it took me sometimes to work out the details of the architecture.