diff options
Diffstat (limited to 'math/classias')
-rw-r--r-- | math/classias/DESCR | 12 | ||||
-rw-r--r-- | math/classias/Makefile | 28 | ||||
-rw-r--r-- | math/classias/PLIST | 24 | ||||
-rw-r--r-- | math/classias/buildlink3.mk | 12 | ||||
-rw-r--r-- | math/classias/distinfo | 7 | ||||
-rw-r--r-- | math/classias/patches/patch-configure.in | 15 |
6 files changed, 98 insertions, 0 deletions
diff --git a/math/classias/DESCR b/math/classias/DESCR new file mode 100644 index 00000000000..2441009944f --- /dev/null +++ b/math/classias/DESCR @@ -0,0 +1,12 @@ +Classias is a collection of machine-learning algorithms for +classification. Currently, it supports the following formalizations: + L1/L2-regularized logistic regression (aka. Maximum Entropy) + L1/L2-regularized L1-loss linear-kernel Support Vector Machine (SVM) + Averaged perceptron +It implements several algorithms for training classifiers: + Averaged perceptron + Limited-memory Broyden-Fletcher-Goldfarb-Shanno (L-BFGS) [Nocedal80] + Orthant-Wise Limited-memory Quasi-Newton (OWL-QN) [Andrew07] + Primal Estimated sub-GrAdient SOlver (Pegasos) [Shalev-Shwartz07] + Truncated Gradient [Langford09], also known as FOrward LOoking + Subgradient (FOLOS) [Duchi09] specialized for L1 regularization diff --git a/math/classias/Makefile b/math/classias/Makefile new file mode 100644 index 00000000000..faa86ad6cb1 --- /dev/null +++ b/math/classias/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1 2016/07/22 02:45:44 cheusov Exp $ + +DISTNAME= classias-1.1.0.20160722 +CATEGORIES= math +MASTER_SITES= ${MASTER_SITE_GITHUB:=cheusov/} + +COMMENT= Collection of machine-learning algorithms for classification +LICENSE= modified-bsd + +GITHUB_PROJECT= classias +MAINTAINER= cheusov@NetBSD.org +HOMEPAGE= http://www.chokkan.org/software/classias/ + +USE_LANGUAGES= c c++ + +GNU_CONFIGURE= yes + +USE_TOOLS+= autoconf autoreconf automake + +CONFIGURE_ARGS+= --with-liblbfgs=${PREFIX} + +.include "../../mk/bsd.prefs.mk" + +pre-configure: + set -e; cd ${WRKSRC}; ${SH} ./autogen.sh + +.include "../../math/liblbfgs/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/math/classias/PLIST b/math/classias/PLIST new file mode 100644 index 00000000000..c9ea0b4befe --- /dev/null +++ b/math/classias/PLIST @@ -0,0 +1,24 @@ +@comment $NetBSD: PLIST,v 1.1 2016/07/22 02:45:44 cheusov Exp $ +bin/classias-tag +bin/classias-train +include/classias/classias.h +include/classias/classify/linear/binary.h +include/classias/classify/linear/multi.h +include/classias/data.h +include/classias/evaluation.h +include/classias/feature_generator.h +include/classias/instance.h +include/classias/parameters.h +include/classias/quark.h +include/classias/train/averaged_perceptron.h +include/classias/train/lbfgs.h +include/classias/train/online_scheduler.h +include/classias/train/pegasos.h +include/classias/train/truncated_gradient.h +include/classias/types.h +include/classias/version.h +share/doc/classias/AUTHORS +share/doc/classias/COPYING +share/doc/classias/ChangeLog +share/doc/classias/INSTALL +share/doc/classias/README diff --git a/math/classias/buildlink3.mk b/math/classias/buildlink3.mk new file mode 100644 index 00000000000..0b456fad134 --- /dev/null +++ b/math/classias/buildlink3.mk @@ -0,0 +1,12 @@ +# $NetBSD: buildlink3.mk,v 1.1 2016/07/22 02:45:44 cheusov Exp $ + +BUILDLINK_TREE+= classias + +.if !defined(CLASSIAS_BUILDLINK3_MK) +CLASSIAS_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.classias+= classias>=1.1.0 +BUILDLINK_PKGSRCDIR.classias?= ../../math/classias +.endif # CLASSIAS_BUILDLINK3_MK + +BUILDLINK_TREE+= -classias diff --git a/math/classias/distinfo b/math/classias/distinfo new file mode 100644 index 00000000000..3476ac8d94f --- /dev/null +++ b/math/classias/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2016/07/22 02:45:44 cheusov Exp $ + +SHA1 (classias-1.1.0.20160722.tar.gz) = f436357dbb5982dab67a0cc365379299e70b061c +RMD160 (classias-1.1.0.20160722.tar.gz) = fae6ea9d7da067fc12438d3697fa78edf8849e78 +SHA512 (classias-1.1.0.20160722.tar.gz) = 114d8bd3b8be23ff99587e4ce6add72b40807b01fb510cfc5b0489bfdcd17ce6f5cc3560134ccb31e6c41d2fa2c0a45b41f0008832cff13b06b975131469744e +Size (classias-1.1.0.20160722.tar.gz) = 136913 bytes +SHA1 (patch-configure.in) = 28eda2512193146a7d5252f3c09fb9b0910302da diff --git a/math/classias/patches/patch-configure.in b/math/classias/patches/patch-configure.in new file mode 100644 index 00000000000..ff1d2e9867a --- /dev/null +++ b/math/classias/patches/patch-configure.in @@ -0,0 +1,15 @@ +$NetBSD: patch-configure.in,v 1.1 2016/07/22 02:45:44 cheusov Exp $ + +# support for ld -rpath + +--- configure.in.orig 2015-04-19 15:01:12.000000000 +0000 ++++ configure.in +@@ -115,7 +115,7 @@ dnl Check for math library + AC_ARG_WITH( + liblbfgs, + [AS_HELP_STRING([--with-liblbfgs=DIR],[liblbfgs directory])], +- [INCLUDES="-I${withval}/include ${INCLUDES}"; LDFLAGS="-L${withval}/lib ${LDFLAGS}"] ++ [INCLUDES="-I${withval}/include ${INCLUDES}"; LDFLAGS="-L${withval}/lib -Wl,-rpath,${withval}/lib ${LDFLAGS}"] + ) + dnl AC_ARG_WITH( + dnl boost, |