From patchwork Sat Oct 2 03:41:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 33539 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 F35D027BBE3; Sat, 2 Oct 2021 04:44:44 +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_H2,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 B8DFA27BBE1 for ; Sat, 2 Oct 2021 04:44:44 +0100 (BST) Received: from localhost ([::1]:47470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWVx5-0004tM-Rw for patchwork@mira.cbaines.net; Fri, 01 Oct 2021 23:44:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50756) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWVvT-0003VY-6E for guix-patches@gnu.org; Fri, 01 Oct 2021 23:43:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46136) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWVvS-00021I-Uo for guix-patches@gnu.org; Fri, 01 Oct 2021 23:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mWVvS-0003Lw-TA for guix-patches@gnu.org; Fri, 01 Oct 2021 23:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50956] [PATCH 2/3] gnu: Add python-skorch. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 02 Oct 2021 03:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50956 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50956@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 50956-submit@debbugs.gnu.org id=B50956.163314616512842 (code B ref 50956); Sat, 02 Oct 2021 03:43:02 +0000 Received: (at 50956) by debbugs.gnu.org; 2 Oct 2021 03:42:45 +0000 Received: from localhost ([127.0.0.1]:57678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWVvB-0003L4-C2 for submit@debbugs.gnu.org; Fri, 01 Oct 2021 23:42:45 -0400 Received: from mout01.posteo.de ([185.67.36.65]:44103) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWVv9-0003Ka-RF for 50956@debbugs.gnu.org; Fri, 01 Oct 2021 23:42:44 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 3D36E240026 for <50956@debbugs.gnu.org>; Sat, 2 Oct 2021 05:42:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1633146158; bh=T4z3KWZ1061fhGPEg9zQR9I+rRwOFuC9So8K6/irQWM=; h=From:To:Cc:Subject:Date:From; b=bO2qZD2eKy+gbAhiYgQh8ATK1VKh9E+ThVvKjHxqf63LAML1bIW8gnSPltzVHwWoM oToxA7tBx4LteID/NOUKszE8t5vo2cXw9VB9B3a3klMHz1P3gdzeI/NoET2hgIdY1d TccFsmYxu3YaPTNVsBOnBUyYNj5xkABHlf+lE9Z1BtmN45qMDhKxgtapbsi0rq5mNG KDFhCnjtn8FUua/BSZQGJelLU1bweoQN5snKLDX7UjAqPY8jn8SMQPJ75843bGb0bO xOuX5j88L5ikrs+ziYcWOn0eVGTA7WnsklrjAI9x+weQlzk85OP8YKFVhigsloKXVJ UqwMhXGppxkLg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HLt8s22lNz9rxK; Sat, 2 Oct 2021 05:42:37 +0200 (CEST) From: Vinicius Monego Date: Sat, 2 Oct 2021 03:41:16 +0000 Message-Id: <20211002034117.64876-2-monego@posteo.net> In-Reply-To: <20211002034117.64876-1-monego@posteo.net> References: <20211002034117.64876-1-monego@posteo.net> MIME-Version: 1.0 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 * gnu/packages/machine-learning.scm (python-skorch): New variable. --- gnu/packages/machine-learning.scm | 42 +++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 281c88d6f8..fd3e6b2090 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -1050,6 +1050,48 @@ number of threads used in the threadpool-backed of common native libraries used for scientific computing and data science (e.g. BLAS and OpenMP).") (license license:bsd-3))) +(define-public python-skorch + (package + (name "python-skorch") + (version "0.10.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "skorch" version)) + (sha256 + (base32 "196hr0q5nw1nzckwanfv27myasayfdxxhx80iv9whm7675rzj44r")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "python" "-m" "pytest" "--pyargs" "skorch" "-k" + (string-append + ;; Errors because of missing weight and pickle files. + "not test_load_cuda_params_to_cpu" + " and not test_pickle_load")))))))) + (propagated-inputs + `(("python-numpy" ,python-numpy) + ("python-scikit-learn" ,python-scikit-learn) + ("python-scipy" ,python-scipy) + ("python-tabulate" ,python-tabulate) + ("python-tqdm" ,python-tqdm))) + (native-inputs + `(("python-flaky" ,python-flaky) + ("python-pandas" ,python-pandas) + ("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov) + ("python-pytorch" ,python-pytorch))) + (home-page "https://github.com/skorch-dev/skorch") + (synopsis "Scikit-learn compatible neural network library for PyTorch") + (description "Skorch is a scikit-learn compatible neural network library +that wraps PyTorch. It allows to build and train PyTorch models using a +scikit-learn-like API.") + (license license:bsd-3))) + (define-public python-pynndescent (package (name "python-pynndescent")