From: Fis Trivial <ybbs.daans@hotmail.com>
To: "31432@debbugs.gnu.org" <31432@debbugs.gnu.org>
Subject: [bug#31432] [PATCH 1/2] gnu: Add lightgbm.
Date: Sat, 12 May 2018 15:21:20 +0000 [thread overview]
Message-ID: <BLUPR16MB0500A5167D320744D7450E29929E0@BLUPR16MB0500.namprd16.prod.outlook.com> (raw)
In-Reply-To: <BLUPR16MB050057C90CBB927BCBD99A13929E0@BLUPR16MB0500.namprd16.prod.outlook.com>
* gnu/packages/machine-learning.scm (lightgbm): New variable.
---
gnu/packages/machine-learning.scm | 48 +++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index f0d35484e..ac4fa8129 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -45,6 +45,7 @@
#:use-module (gnu packages gcc)
#:use-module (gnu packages image)
#:use-module (gnu packages maths)
+ #:use-module (gnu packages mpi)
#:use-module (gnu packages ocaml)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
@@ -732,3 +733,50 @@ main intended application of Autograd is gradient-based optimization.")
(define-public python2-autograd
(package-with-python2 python-autograd))
+
+(define-public lightgbm
+ (package
+ (name "lightgbm")
+ (version "2.0.12")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://github.com/Microsoft/LightGBM/archive/v"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "132zf0yk0545mg72hyzxm102g3hpb6ixx9hnf8zd2k55gas6cjj1"))
+ (file-name (string-append name "-" version ".tar.gz"))))
+ (native-inputs
+ `(("python-nose" ,python-nose)
+ ("python-pytest" ,python-pytest)))
+ (inputs
+ `(("openmpi" ,openmpi)))
+ (propagated-inputs
+ `(("python-numpy" ,python-numpy)
+ ("python-scipy" ,python-scipy)))
+ (arguments
+ `(#:configure-flags
+ '("-DUSE_MPI=ON")
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key outputs #:allow-other-keys)
+ (chdir "../LightGBM-2.0.12/")
+ (invoke "pytest" "tests/c_api_test/test_.py")
+ (chdir "../build"))))))
+ (build-system cmake-build-system)
+ (home-page "https://github.com/Microsoft/LightGBM")
+ (synopsis "Gradient boosting framework based on decision tree algorithms")
+ (description "LightGBM is a gradient boosting framework that uses tree
+based learning algorithms. It is designed to be distributed and efficient with
+the following advantages:
+
+@itemize
+@item Faster training speed and higher efficiency
+@item Lower memory usage
+@item Better accuracy
+@item Parallel and GPU learning supported (not enabled in this package)
+@item Capable of handling large-scale data
+@end itemize\n")
+ (license license:expat)))
--
2.14.3
next prev parent reply other threads:[~2018-05-12 15:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-12 15:19 [bug#31432] [PATCH 0/2] gnu: Add lightgbm and vowpal-wabbit Fis Trivial
2018-05-12 15:21 ` Fis Trivial [this message]
2018-05-12 15:22 ` [bug#31432] [PATCH 2/2] gnu: Add vowpal-wabbit Fis Trivial
2018-06-12 9:58 ` [bug#31432] Resend the patches (lightgbm and vowpal-wabbit) Fis Trivial
2018-06-12 10:01 ` [bug#31432] [PATCH 1/2] gnu: Add lightgbm Fis Trivial
2018-06-12 10:02 ` [bug#31432] [PATCH 2/2] gnu: Add vowpal-wabbit Fis Trivial
2018-06-14 20:19 ` bug#31432: Resend the patches (lightgbm and vowpal-wabbit) Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BLUPR16MB0500A5167D320744D7450E29929E0@BLUPR16MB0500.namprd16.prod.outlook.com \
--to=ybbs.daans@hotmail.com \
--cc=31432@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).