From 28890509d95c522503728fbd85b717c6081f2621 Mon Sep 17 00:00:00 2001 From: cheusov Date: Sun, 19 Oct 2014 09:57:21 +0000 Subject: Add liblinear. LIBLINEAR is a linear classifier for data with millions of instances and features. It supports L2-regularized classifiers L2-loss linear SVM, L1-loss linear SVM, and logistic regression (LR) L1-regularized classifiers (after version 1.4) L2-loss linear SVM and logistic regression (LR) L2-regularized support vector regression (after version 1.9) L2-loss linear SVR and L1-loss linear SVR. Main features of LIBLINEAR include Same data format as LIBSVM, our general-purpose SVM solver, and also similar usage Multi-class classification: 1) one-vs-the rest, 2) Crammer & Singer Cross validation for model selection Probability estimates (logistic regression only) Weights for unbalanced data MATLAB/Octave, Java, Python, Ruby interfaces --- math/liblinear/DESCR | 16 ++++++++++++++++ math/liblinear/Makefile | 28 ++++++++++++++++++++++++++++ math/liblinear/PLIST | 8 ++++++++ math/liblinear/distinfo | 5 +++++ 4 files changed, 57 insertions(+) create mode 100644 math/liblinear/DESCR create mode 100644 math/liblinear/Makefile create mode 100644 math/liblinear/PLIST create mode 100644 math/liblinear/distinfo diff --git a/math/liblinear/DESCR b/math/liblinear/DESCR new file mode 100644 index 00000000000..b91e706c498 --- /dev/null +++ b/math/liblinear/DESCR @@ -0,0 +1,16 @@ +LIBLINEAR is a linear classifier for data with millions of instances +and features. It supports + L2-regularized classifiers + L2-loss linear SVM, L1-loss linear SVM, and logistic regression (LR) + L1-regularized classifiers (after version 1.4) + L2-loss linear SVM and logistic regression (LR) + L2-regularized support vector regression (after version 1.9) + L2-loss linear SVR and L1-loss linear SVR. +Main features of LIBLINEAR include + Same data format as LIBSVM, our general-purpose SVM solver, + and also similar usage + Multi-class classification: 1) one-vs-the rest, 2) Crammer & Singer + Cross validation for model selection + Probability estimates (logistic regression only) + Weights for unbalanced data + MATLAB/Octave, Java, Python, Ruby interfaces diff --git a/math/liblinear/Makefile b/math/liblinear/Makefile new file mode 100644 index 00000000000..a5dfcdb890b --- /dev/null +++ b/math/liblinear/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1.1.1 2014/10/19 09:57:21 cheusov Exp $ + +DISTNAME= liblinear-1.94 +CATEGORIES= math +MASTER_SITES= http://www.csie.ntu.edu.tw/~cjlin/liblinear/ + +MAINTAINER= cheusov@NetBSD.org +HOMEPAGE= http://www.csie.ntu.edu.tw/~cjlin/liblinear/ +COMMENT= Library for large linear classification +LICENSE= modified-bsd + +USE_LANGUAGES= c c++ + +BUILD_TARGET= all lib +AUTO_MKDIRS= yes + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/predict ${DESTDIR}${PREFIX}/bin/liblinear-predict + ${INSTALL_PROGRAM} ${WRKSRC}/train ${DESTDIR}${PREFIX}/bin/liblinear-train + ${INSTALL_LIB} ${WRKSRC}/liblinear.so.1 ${DESTDIR}${PREFIX}/lib + ${LN} -s liblinear.so.1 ${DESTDIR}${PREFIX}/lib/liblinear.so + ${INSTALL_DATA} ${WRKSRC}/linear.h ${DESTDIR}${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/README \ + ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} + ${INSTALL_DATA} ${WRKSRC}/heart_scale \ + ${DESTDIR}${PREFIX}/share/examples/${PKGBASE} + +.include "../../mk/bsd.pkg.mk" diff --git a/math/liblinear/PLIST b/math/liblinear/PLIST new file mode 100644 index 00000000000..c0dc24e1ca6 --- /dev/null +++ b/math/liblinear/PLIST @@ -0,0 +1,8 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2014/10/19 09:57:21 cheusov Exp $ +bin/liblinear-predict +bin/liblinear-train +include/linear.h +lib/liblinear.so +lib/liblinear.so.1 +share/doc/liblinear/README +share/examples/liblinear/heart_scale diff --git a/math/liblinear/distinfo b/math/liblinear/distinfo new file mode 100644 index 00000000000..149911c005a --- /dev/null +++ b/math/liblinear/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2014/10/19 09:57:21 cheusov Exp $ + +SHA1 (liblinear-1.94.tar.gz) = 19678355e6c933b7ec133e07fef77796e50df0d5 +RMD160 (liblinear-1.94.tar.gz) = 56cc112d3e4397804d67eea4e266b363c822307b +Size (liblinear-1.94.tar.gz) = 335400 bytes -- cgit v1.2.3