/infer

inference and machine learning in clojure

Primary LanguageClojure

Infer

Inference and Machine Learning in Clojure

Infer is a library for machine learning and statistical inference, designed to be used in real production systems.

Infer is written in Clojure and leverages many JVM packages.

You can read about some of the performance testing that went into the foundation here:

Infer does not aim to replace R, or be an R for the JVM, or be a NumPy written in Clojure.

Infer seeks to be a new kind of data tool.

  1. Infer was initially extracted from production use. It follows the philosophy that you should be able to deploy your research code, not be forced to rewrite it in C++ or java to deploy to production.

  2. Infer was initially extracted from use with Hadoop. It follows the philosophy that you should be able to scale up your research computations with minimal effort, deploy clusters from your local interactive environment, and run your code in a cluster almost as easily as your run it on your local machine.

  3. Infer was initially extracted from real life research and deployment of machine learning systems. It follows the philosophy that abstractions should be composable so that you can try out different algorithms, and different combinations of measures, models, and learning algorithms. Most systems, like R, Weka, Lingpipe, or Matlab, for example, have all the methods coded up in silos, and not meant to be used composably. Want to learn tree models using different loss functions, different measures of statistical diveregence, or a different peanalized learning algorithm? Traditional libraries say too bad, Infer says, rock it out.

What is in Infer?

Infer is broad and covers, or intends to cover, most of what you'll find in statistical and machine learning packages (and many techniques that are not).

  • matrices: wraps the UJMP matrix package, which provides an expressive and expansive set of efficient matrix operations. (examples)

  • probabilities: a language for dealing with probabilities. composable into constructs like graphical models, tress, classifiers, etc.

  • measures: a vast library of measure functions, statistics, and the like. Everything you want for measuring things in your learners. We also have man information-theoretic measures in information-theory.

  • linear models: ols, gls, glms, and penalized / regularized regression methods - L1, L2, and combinations thereof. (examples)

  • neighbor methods: lsh methods, nearest neighbor queries, kernel methods

  • learning: convex optimization, regularized learning, subset selection

  • cross validation: k-fold, leave-one-out, etc.

  • generalized classification & regression (stuff that currently lives in classification)

  • features: easy to deal with feature representations as a matrix, a Clojure vector of vectors, or nested maps, and transforming between the options. easy dealing with continuous or discrete, or discretizing continuous variables (currently in classification). merging equivalence classes.

  • Copyright (c) Bradford Cross and Hamilton Ulmer released under the MIT License (http://www.opensource.org/licenses/mit-license.php).