Closed junekihong closed 11 years ago
You could also check out other classifiers -- SVMLight is the standard package for SVM classifiers, and Vowpal Wabbit has very fast implementations of all kinds of classifiers.
However, MegaM is a reasonable starting point, and it's kind of nice that it gives you a probabilistic classifier so you know not only that the classifier said "YES" but also how sure it was.
First steps to compiling MegaM for Mac: http://blog.vene.ro/2012/06/08/compiling-megam-on-macos-x/
~~Even so, some of the header files are outdated (such as changing "alloc.h" to
Necessary to compile new binary for OS X. Comment is complete.
#include <stddef.h>
#include <stdarg.h>
#include <string.h>
#include "alloc.h"
#include "bigarray.h"
#include "custom.h"
#include "fail.h"
#include "intext.h"
#include "memory.h"
#include "mlvalues.h"
#include "math.h"
... to:
#include <stddef.h>
#include <stdarg.h>
#include <string.h>
#include <caml/alloc.h>
#include <caml/bigarray.h>
#include <caml/custom.h>
#include <caml/fail.h>
#include <caml/intext.h>
#include <caml/memory.h>
#include <caml/mlvalues.h>
#include "math.h"
make
to create "megam" and make opt
to create "megam.opt"./megam.opt multiclass small2 > weights
Download its source. Take a look at how it works.