From patchwork Thu Oct 3 12:11:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Le Vaillant X-Patchwork-Id: 15600 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3F730174C7; Thu, 3 Oct 2019 13:14:13 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id F0D0E174C0 for ; Thu, 3 Oct 2019 13:14:12 +0100 (BST) Received: from localhost ([::1]:35686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFzzo-00016X-FZ for patchwork@mira.cbaines.net; Thu, 03 Oct 2019 08:14:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42163) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFzzh-00013n-7W for guix-patches@gnu.org; Thu, 03 Oct 2019 08:14:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iFzzf-0007LE-Tb for guix-patches@gnu.org; Thu, 03 Oct 2019 08:14:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58281) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iFzzf-0007LA-QG for guix-patches@gnu.org; Thu, 03 Oct 2019 08:14:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iFzzf-0001Cj-JC for guix-patches@gnu.org; Thu, 03 Oct 2019 08:14:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37597] [PATCH 4/4] gnu: Add cl-random-forest. Resent-From: Guillaume Le Vaillant Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Oct 2019 12:14:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37597 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37597@debbugs.gnu.org Cc: Guillaume Le Vaillant Received: via spool by 37597-submit@debbugs.gnu.org id=B37597.15701047844502 (code B ref 37597); Thu, 03 Oct 2019 12:14:03 +0000 Received: (at 37597) by debbugs.gnu.org; 3 Oct 2019 12:13:04 +0000 Received: from localhost ([127.0.0.1]:38863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFzyi-0001AS-6K for submit@debbugs.gnu.org; Thu, 03 Oct 2019 08:13:04 -0400 Received: from mout01.posteo.de ([185.67.36.65]:55899) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFzye-00019Q-Kr for 37597@debbugs.gnu.org; Thu, 03 Oct 2019 08:13:01 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 2DD27160073 for <37597@debbugs.gnu.org>; Thu, 3 Oct 2019 14:12:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1570104773; bh=DLM0r9kE7cYHkIScGqL0NRAsxVlBpTexwNItgbWF0zE=; h=From:To:Cc:Subject:Date:From; b=oj8E1UnNm7nsoeaBRFPSQCtNZlLEDD08bCLl1dZ/erhmIcDSgfSqODjlRp8+10BqD wXpk48YEzlJgk5HXBW2Cdi32GCEz/05B47TiYHF/rfPatlVDJ5YUwQaJzMT2KSodCl +vNG6jVA6hkEHYkRGFDYIFVR4tey+YDno0tG+MvepiDixfi5WxpZmPGy9ed6cyX1Di a3K4J1YXf00EtecjgW4QJdnGtD9mLlAzIDDvcne0s5KwMCVlfkNZBQYKTqXV+eMkmU 6pvKRt9BaTwETCFIOSTArekdU7Ztg2PSPCWJHLrBauj51fd8SeuylN4X/dbBwOX61s k9Cdj31IP9/rw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 46kX2V5HwRz6tmN; Thu, 3 Oct 2019 14:12:50 +0200 (CEST) From: Guillaume Le Vaillant Date: Thu, 3 Oct 2019 14:11:31 +0200 Message-Id: <20191003121131.20803-4-glv@posteo.net> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191003121131.20803-1-glv@posteo.net> References: <20191003121131.20803-1-glv@posteo.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/machine-learning.scm (sbcl-cl-random-forest, cl-random-forest, ecl-cl-random-forest): New variables. --- gnu/packages/machine-learning.scm | 53 +++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 2b46148095..0189e64467 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -1995,3 +1995,56 @@ online linear classification written in Common Lisp.") (define-public ecl-cl-online-learning (sbcl-package->ecl-package sbcl-cl-online-learning)) + +(define-public sbcl-cl-random-forest + (let ((commit "85fbdd4596d40e824f70f1b7cf239cf544e49d51") + (revision "0")) + (package + (name "sbcl-cl-random-forest") + (version (git-version "0.1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/masatoi/cl-random-forest.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "097xv60i1ndz68sg9p4pc7c5gvyp9i1xgw966b4wwfq3x6hbz421")))) + (build-system asdf-build-system/sbcl) + (native-inputs + `(("prove" ,sbcl-prove) + ("prove-asdf" ,sbcl-prove-asdf) + ("trivial-garbage" ,sbcl-trivial-garbage))) + (inputs + `(("alexandria" ,sbcl-alexandria) + ("cl-libsvm-format" ,sbcl-cl-libsvm-format) + ("cl-online-learning" ,sbcl-cl-online-learning) + ("lparallel" ,sbcl-lparallel))) + (arguments + `(;; The tests download data from the Internet + #:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'add-sb-cltl2-dependency + (lambda _ + ;; sb-cltl2 is required by lparallel when using sbcl, but it is + ;; not loaded automatically. + (substitute* "cl-random-forest.asd" + (("\\(in-package :cl-user\\)") + "(in-package :cl-user) #+sbcl (require :sb-cltl2)")) + #t))))) + (synopsis "Random Forest and Global Refinement for Common Lisp") + (description + "Cl-random-forest is an implementation of Random Forest for multiclass +classification and univariate regression written in Common Lisp. It also +includes an implementation of Global Refinement of Random Forest.") + (home-page "https://github.com/masatoi/cl-random-forest") + (license license:expat)))) + +(define-public cl-random-forest + (sbcl-package->cl-source-package sbcl-cl-random-forest)) + +(define-public ecl-cl-random-forest + (sbcl-package->ecl-package sbcl-cl-random-forest))