multivariate classifier in coffeescript