From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IJWEKik+ZmHjfwEAgWs5BA (envelope-from ) for ; Wed, 13 Oct 2021 04:02:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id wG8TJik+ZmHjAwAAbx9fmQ (envelope-from ) for ; Wed, 13 Oct 2021 02:02:17 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 77794162A0 for ; Wed, 13 Oct 2021 04:02:17 +0200 (CEST) Received: from localhost ([::1]:54334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maTay-0007mq-L2 for larch@yhetil.org; Tue, 12 Oct 2021 22:02:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maTak-0007mM-VJ for guix-patches@gnu.org; Tue, 12 Oct 2021 22:02:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45168) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maTak-0004pX-MG for guix-patches@gnu.org; Tue, 12 Oct 2021 22:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1maTak-0007VQ-Kg for guix-patches@gnu.org; Tue, 12 Oct 2021 22:02:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50956] [PATCH v2 3/4] gnu: Add python-skorch. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 13 Oct 2021 02:02: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.163409046928771 (code B ref 50956); Wed, 13 Oct 2021 02:02:02 +0000 Received: (at 50956) by debbugs.gnu.org; 13 Oct 2021 02:01:09 +0000 Received: from localhost ([127.0.0.1]:56709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maTZs-0007Tz-PE for submit@debbugs.gnu.org; Tue, 12 Oct 2021 22:01:08 -0400 Received: from mout01.posteo.de ([185.67.36.65]:55959) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maTZq-0007Sy-5H for 50956@debbugs.gnu.org; Tue, 12 Oct 2021 22:01:06 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 7D6E9240026 for <50956@debbugs.gnu.org>; Wed, 13 Oct 2021 04:01:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1634090460; bh=CaHgLvowGVd87UXUGUHCyX0GZce6K0J05wOB8ZOZ6B4=; h=From:To:Cc:Subject:Date:From; b=UHonUI1rOg1APPnJ7O3uuPvhnNP4ikbCsDjCGoutx/HNzBgPYEpZ36qqQUYsbdRDr exRCSE8h0RGlrzHZYHADAPOAWm+MGCOS6/MGR34MWiMTpXRxjgYCMu1uVqbLTfTQCX wTzdoeoZofGPwVnvWNiC9b+JFB5fyXFR9IVYCRQmsa5rbu+sPhuA2PV597PXEaadNy UzMUtLrTet99a4H8SKU33p7dbThkzh9DfVSyYbSJJ92r4pq6FEJxZPTieIwplPSS7l 3yO75Axd/q6L8W6jz4qfxTA7i0pE+sv8Dg1S7FToSipmPl2cbz+OQ5OFVqPdH+ip1V hTS8cq/EhknVg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HTbNW31C4z6tm4; Wed, 13 Oct 2021 04:00:59 +0200 (CEST) From: Vinicius Monego Date: Wed, 13 Oct 2021 02:00:34 +0000 Message-Id: <20211013020035.53000-3-monego@posteo.net> In-Reply-To: <20211013020035.53000-1-monego@posteo.net> References: <20211013020035.53000-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634090537; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ezI4/LJGWOBHw9eDxIyGnj7a/OfEGyb4pIZmxsUD+U0=; b=kBnaOp/mlnloYObtPQ/eNH8Qk+l6B+QSNnh9hz7QJ78GNCIvXF3ueoXxgR+DCw+4L0x9F2 Ugj/kMb2AB1g00Tzrj8I/NWPgzUOzfUEfPZEmL6YRu39m8skph/UTmpxC+txtnhmFJQAoo bWKGrA9/k19ksvB3FdjUnDrK2cxEAuhnJfPCAAXXnQEWLvMevULCi8WgP0/5iYnylELSEr QMGLtsMnluAflP/b5hgh8kawSNZHq8etvR+0MHD6tWVBr/ZXfErVSZ4KUcobebuL9OFIHl BKuC1xLTmFEETEjubm3IPJRXzPOvxRiTqlSn/zxs3Se7aXYtBC2LHjLyNlB8YQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634090537; a=rsa-sha256; cv=none; b=lzTDZj0K9uOmNnGx7jLswsvJM90+eMwmBzTqpU/c1Wx3KLsPQiwJmn2SXVYV0eEfw7mCdX SyUIX2Zm2TsptzEkvd/XxUj3DXFPuX5MM5R7bvkSSjTRLmNaew2ggDqd3xmsYthIgoXVsx 7ApciOjLRhXR8f6Y0Pdu65IeE1j+gWxg8f16XOXRCGfosJPq68Ijoi5UG8tmJ9n6yj93Z+ f/ujrx14STQUOwAwzvemIVyN0Aquc02N2MlEetUvUK0x4BPh12KcqMU2nzwdK5EfgAEzmu iF847llwPIr02jKcqLL2l++b1dWmcOzVci3NyRPeOl+GLEScrBxQGnT21GMx0w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=UHonUI1r; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.69 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=UHonUI1r; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 77794162A0 X-Spam-Score: 3.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: VKwaIfWfxUtQ * gnu/packages/machine-learning.scm (python-skorch): New variable. --- Swapped order of native and propagated inputs. 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 6b7736702a..09767584bb 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")))))))) + (native-inputs + `(("python-flaky" ,python-flaky) + ("python-pandas" ,python-pandas) + ("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov) + ("python-pytorch" ,python-pytorch))) + (propagated-inputs + `(("python-numpy" ,python-numpy) + ("python-scikit-learn" ,python-scikit-learn) + ("python-scipy" ,python-scipy) + ("python-tabulate" ,python-tabulate) + ("python-tqdm" ,python-tqdm))) + (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") -- 2.30.2