Algorithm-SVM
view release on metacpan or search on metacpan
- fixed a build error for gcc version 3.x
0.07 Tue Jun 3 14:46:26 PDT 2003
- added a cygwin target to Makefile.PL - Algorithm::SVM
should now compile under Windows.
- Algorithm::SVM now has a new maintainer. As of version
0.07, all inquiries, patches and comments should be
sent to Matthew Laird <matt@brinkman.mbb.sfu.ca>
0.08 Mon May 17 15:09:21 PDT 2004
- Upgraded libsvm to 2.6, added new bindings for most
added functionality
0.09 Mon Oct 25 12:05:00 PDT 2004
- Fixed an uninitialized variable for probability.
0.10 Mon Nov 16 10:43:00 PDT 2004
- Added Solaris support, unfortunately not in an
automated fashion. If anyone can suggest improvements...
I'm very open to suggestions.
0.12 Sun Jan 15 11:39:00 GMT+1 2006
- Updated libsvm to 2.81 (i.e. added half a dozen lines of code)
- added many testcases in test.pl
- SVM: Added binding for predict_values, improved memory usage
- DataSet: changed to use sparse format internally
internal format similar to what libsvm uses
added asArray function, improved memory usage
- All changes (except libsvm update which slightly changes the
learned models) are completely transparent to the user. No
changes in programs depending on this should be necessary.
0.13 Tue Jan 22 13:38:00 PDT 2008
- Updated the underlaying libsvm version to 2.85
Changes
MANIFEST
Makefile.PL
README
SVM.xs
TODO
bindings.cpp
bindings.h
lib/Algorithm/SVM.pm
lib/Algorithm/SVM/DataSet.pm
sample.model
libsvm.cpp
libsvm.h
test.pl
typemap
Makefile.PL view on Meta::CPAN
WriteMakefile('NAME' => 'Algorithm::SVM',
'VERSION_FROM' => 'lib/Algorithm/SVM.pm',
'PREREQ_PM' => {},
($] >= 5.005 ?
(ABSTRACT_FROM => 'lib/Algorithm/SVM.pm',
AUTHOR => 'Matthew Laird <matt@brinkman.mbb.sfu.ca>') : ()),
'OPTIMIZE' => '-O3', # segfaults with gcc 2.96 if lower (?)
'LIBS' => '-lm',
'CC' => $CC,
'LD' => '$(CC)',
'OBJECT' => 'SVM.o libsvm.o bindings.o',
'XSOPT' => '-C++ -noprototypes',
%args);
Makefile.PL.solaris view on Meta::CPAN
($] >= 5.005 ?
(ABSTRACT_FROM => 'lib/Algorithm/SVM.pm',
AUTHOR => 'Matthew Laird <matt@brinkman.mbb.sfu.ca>') : ()),
'OPTIMIZE' => '-O3', # segfaults with gcc 2.96 if lower (?)
'LIBS' => '-lm',
'CC' => $CC,
'LD' => '$(CC)',
'CCCDLFLAGS' => '-fPIC',
'LDDLFLAGS' => '-shared',
'LIB_EXT' => '.so',
'OBJECT' => 'SVM.o libsvm.o bindings.o',
'XSOPT' => '-C++',
%args);
5) Algorithm::SVM COPYRIGHT AND LICENCE
6) libsvm COPYRIGHT AND LICENCE
7) AUTHOR INFORMATION
8) ACKNOWLEDGEMENTS
1) DESCRIPTION
--------------
Algorithm::SVM was originally written by Cory Spencer of the Simon Fraser
University Brinkman Laboratory and provides Perl bindings for a Support
Vector Machine. It is currently maintained by Matthew Laird and all
inquiries, patches and comments should be sent to him.
Algorithm::SVM is based on the libsvm library written by Chih-Chung Chang
and Chih-Jen Lin.
To read about the latest features, see the Changes file.
The author invites feedback on SVM. If you find a bug, please send the
information described in the BUGS section below.
#endif
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#ifdef __cplusplus
}
#endif
#include "bindings.h"
#include "libsvm.h"
DataSet *_new_dataset(double l) {
return new DataSet(l);
}
SVM *_new_svm(int st, int kt, int d, double g, double c0, double C,
double nu, double e) {
bindings.cpp view on Meta::CPAN
#include "bindings.h"
#include <errno.h>
#ifdef DEBUG
#include <stdarg.h>
void printf_dbg(const char *a, ...) {
va_list alist;
va_start(alist,a);
vfprintf(stdout,a,alist);
va_end(alist);
fflush(NULL);
lib/Algorithm/SVM.pm view on Meta::CPAN
*$AUTOLOAD = sub { $val };
}
}
goto &$AUTOLOAD;
}
bootstrap Algorithm::SVM $VERSION;
=head1 NAME
Algorithm::SVM - Perl bindings for the libsvm Support Vector Machine library.
=head1 SYNOPSIS
use Algorithm::SVM;
# Load the model stored in the file 'sample.model'
$svm = new Algorithm::SVM(Model => 'sample.model');
# Classify a dataset.
$ds1 = new Algorithm::SVM::DataSet(Label => 1,
( run in 1.926 second using v1.01-cache-2.11-cpan-2398b32b56e )