From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHWLV-0003kP-E3 for guix-patches@gnu.org; Sat, 12 May 2018 11:22:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fHWLS-0003RR-8w for guix-patches@gnu.org; Sat, 12 May 2018 11:22:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:51847) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fHWLS-0003RG-4k for guix-patches@gnu.org; Sat, 12 May 2018 11:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fHWLR-0000Ya-VB for guix-patches@gnu.org; Sat, 12 May 2018 11:22:01 -0400 Subject: [bug#31432] [PATCH 1/2] gnu: Add lightgbm. References: In-Reply-To: Resent-Message-ID: From: Fis Trivial Date: Sat, 12 May 2018 15:21:20 +0000 Message-ID: Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: "31432@debbugs.gnu.org" <31432@debbugs.gnu.org> * 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-learn= ing.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-base= d optimization.") =20 (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=3DON") + #: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 algorith= ms") + (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))) --=20 2.14.3