From patchwork Wed May 12 23:56:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 106 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 D54D027BC82; Thu, 13 May 2021 00:58:23 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A82E927BC81 for ; Thu, 13 May 2021 00:58:23 +0100 (BST) Received: from localhost ([::1]:38888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgykA-0001EI-QA for patchwork@mira.cbaines.net; Wed, 12 May 2021 19:58:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58908) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgyjq-0001Cy-0c for guix-patches@gnu.org; Wed, 12 May 2021 19:58:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57569) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgyjp-00017E-Pv for guix-patches@gnu.org; Wed, 12 May 2021 19:58:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lgyjp-0007Js-Or for guix-patches@gnu.org; Wed, 12 May 2021 19:58:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48388] [PATCH 0/3] Add xgboost. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 12 May 2021 23:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48388 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48388@debbugs.gnu.org Cc: Vinicius Monego X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162086385728085 (code B ref -1); Wed, 12 May 2021 23:58:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 May 2021 23:57:37 +0000 Received: from localhost ([127.0.0.1]:40876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgyjQ-0007Iv-O7 for submit@debbugs.gnu.org; Wed, 12 May 2021 19:57:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:39556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgyjO-0007In-Tl for submit@debbugs.gnu.org; Wed, 12 May 2021 19:57:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgyjO-0000ay-Ks for guix-patches@gnu.org; Wed, 12 May 2021 19:57:34 -0400 Received: from mout02.posteo.de ([185.67.36.66]:52763) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgyjM-0000mZ-5X for guix-patches@gnu.org; Wed, 12 May 2021 19:57:34 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 1593C2400E5 for ; Thu, 13 May 2021 01:57:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1620863849; bh=Phpww3JIAHh31UtAOQoO/1bUMzlrRTaK2rxj3uYzDd0=; h=From:To:Cc:Subject:Date:From; b=mD8QiFHITlfVnYBwnMnuOAwofEuxoCCXScuSqx8+gMeduugNADtdE8CiOnuMoZb5I pTpd4BnrMwoJuu2MBy4R4Dw60dTw0bxQVwpJFUe1bP77+EwPYXKcp8M2a4NYdEfSrF HWCfwJNOH/56Tr59CLL0I4E3dBeMTdSmyvHZ0uwbHX7My6+mN9yn1OHoNp81yESPYQ PvhV69NzOwYb/FHB0CZIVb8+JystuWwy2lQNBed9IckCS80JTM6J2GamdUnfJN4JJu el/yNVNZONgwZYOhbEEx/hD6PId95UtRAKdzm/wlBOUbd/IgzkRdOH97YG1unJucC9 mzIEwluERVT6w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FgWtb25x1z6tm6; Thu, 13 May 2021 01:57:26 +0200 (CEST) From: Vinicius Monego Date: Wed, 12 May 2021 23:56:49 +0000 Message-Id: <20210512235649.516594-1-monego@posteo.net> MIME-Version: 1.0 Received-SPF: pass client-ip=185.67.36.66; envelope-from=monego@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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 This patchset adds the binaries, C++ library and Python frontend for the XGBoost gradient boosting framework. I noticed r-xgboost in the packages, which compiles a bundled copy of xgboost. Ideally it would inherit from xgboost and build from there, but I do not work with R so I can't help with this. I also had to do some dirty hack in the python patch for reading version and using libxgboost from the xgboost package. Lmk is there is a better way to handle this. Vinicius Monego (3): gnu: Add dmlc-core. gnu: Add xgboost. gnu: Add python-xgboost. gnu/local.mk | 2 + gnu/packages/machine-learning.scm | 125 ++++++++++++++++++ ...xgboost-python-use-system-libxgboost.patch | 69 ++++++++++ .../xgboost-use-system-dmlc-core.patch | 35 +++++ 4 files changed, 231 insertions(+) create mode 100644 gnu/packages/patches/xgboost-python-use-system-libxgboost.patch create mode 100644 gnu/packages/patches/xgboost-use-system-dmlc-core.patch