pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/classias Imported from WIP



details:   https://anonhg.NetBSD.org/pkgsrc/rev/159e8810e233
branches:  trunk
changeset: 350072:159e8810e233
user:      cheusov <cheusov%pkgsrc.org@localhost>
date:      Fri Jul 22 02:45:44 2016 +0000

description:
Imported from WIP

Classias is a collection of machine-learning algorithms

diffstat:

 math/classias/DESCR                      |  12 ++++++++++++
 math/classias/Makefile                   |  28 ++++++++++++++++++++++++++++
 math/classias/PLIST                      |  24 ++++++++++++++++++++++++
 math/classias/buildlink3.mk              |  12 ++++++++++++
 math/classias/distinfo                   |   7 +++++++
 math/classias/patches/patch-configure.in |  15 +++++++++++++++
 6 files changed, 98 insertions(+), 0 deletions(-)

diffs (122 lines):

diff -r a92b5e6df34b -r 159e8810e233 math/classias/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/classias/DESCR       Fri Jul 22 02:45:44 2016 +0000
@@ -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 -r a92b5e6df34b -r 159e8810e233 math/classias/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/classias/Makefile    Fri Jul 22 02:45:44 2016 +0000
@@ -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@localhost
+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 -r a92b5e6df34b -r 159e8810e233 math/classias/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/classias/PLIST       Fri Jul 22 02:45:44 2016 +0000
@@ -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 -r a92b5e6df34b -r 159e8810e233 math/classias/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/classias/buildlink3.mk       Fri Jul 22 02:45:44 2016 +0000
@@ -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 -r a92b5e6df34b -r 159e8810e233 math/classias/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/classias/distinfo    Fri Jul 22 02:45:44 2016 +0000
@@ -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 -r a92b5e6df34b -r 159e8810e233 math/classias/patches/patch-configure.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/classias/patches/patch-configure.in  Fri Jul 22 02:45:44 2016 +0000
@@ -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,



Home | Main Index | Thread Index | Old Index