Python

simple multivariate classifier example using python & numpy

Auteur: 
fraka6

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.

iTunes playcount updater script

Auteur: 
Jean-Lou Dupont

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.

64-bit Scientific Python on Windows

Auteur: 
François Maillet

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.

Musicbrainz and Last.fm proxies updated

Auteur: 
Jean-Lou Dupont

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.

patching class function in python

Auteur: 
fraka6

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.

Introducing (python-)caldav

Auteur: 
cyril

During the last few days, I’ve been busy writing a CalDAV client library for work. This is a requirement because we are going to integrate calendars from various sources in one of our websites.

ConFoo: PHP, Python, Ruby, Java and .NET Conference

Formerly PHP Quebec, now a web conference covering PHP, Python, Roby, Java and .NET

On taking action

Auteur: 
ncadou

So what happened in all that time since my last substantial blog post?

No, I wasn’t busy counting red cars passing on the street, or marveling at the cat’s anatomy as my kids do.

After mulling over the possibility for a while, I finally decided to quit my job and go solo, and that turned out to be one of the greatest, most satisfying choices I have ever made!

But it wasn’t an easy one.

The Wonders and Simplicity of Redis Sets

Auteur: 
jperras

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.

Message Bus for Gnome Object based Python projects

Auteur: 
Jean-Lou Dupont

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.

Syndiquer le contenu