From patchwork Wed May 18 16:20:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wiktor Zelazny X-Patchwork-Id: 39468 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 DE0C427BBEA; Wed, 18 May 2022 17:50:25 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 99F3A27BBE9 for ; Wed, 18 May 2022 17:50:25 +0100 (BST) Received: from localhost ([::1]:35138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrMsS-0004X7-Pd for patchwork@mira.cbaines.net; Wed, 18 May 2022 12:50:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrMsB-0004WY-7i for guix-patches@gnu.org; Wed, 18 May 2022 12:50:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39463) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nrMs7-0000bG-Cg for guix-patches@gnu.org; Wed, 18 May 2022 12:50:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nrMs7-0004Aj-BE for guix-patches@gnu.org; Wed, 18 May 2022 12:50:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55502] [PATCH 2/3] gnu: Add python-paramz. Resent-From: Wiktor Zelazny Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 18 May 2022 16:50:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55502 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "55502@debbugs.gnu.org" <55502@debbugs.gnu.org> Cc: Wiktor Zelazny Received: via spool by 55502-submit@debbugs.gnu.org id=B55502.165289256315964 (code B ref 55502); Wed, 18 May 2022 16:50:03 +0000 Received: (at 55502) by debbugs.gnu.org; 18 May 2022 16:49:23 +0000 Received: from localhost ([127.0.0.1]:33357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrMrT-00049P-8P for submit@debbugs.gnu.org; Wed, 18 May 2022 12:49:23 -0400 Received: from nat.vurv.cz ([62.168.13.101]:40554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrMPa-0003Mb-8F for 55502@debbugs.gnu.org; Wed, 18 May 2022 12:20:34 -0400 Received: from ServerExch-1.vurv.local (ServerExch-1.vurv.local [10.0.8.45]) by nat.vurv.cz (Postfix) with ESMTPS id E6DAC224DB1A for <55502@debbugs.gnu.org>; Wed, 18 May 2022 18:20:27 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 nat.vurv.cz E6DAC224DB1A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vurv.cz; s=default; t=1652890827; bh=MiU6qr2xK8lmd1xc4j2zDgveKKMHxFuaoIHhqCK/dDs=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=r8j6bMzmn7A+TUPKEWPZpxIPWFHrv8jKYYaLEsmaMObnrM2jw/YBR0wZ8iBSR7vhn BTqMZhyP+6Hp5H+QYapujF2weOsNFqy/987DaKMrufrno4JgOnO4I7WdS8k0iDD5UQ Pqu0My2Mv3T5GZ7QNivlpCDcGrKVls5ATe0oStBU= Received: from ServerExch-1.vurv.local (10.0.8.45) by ServerExch-1.vurv.local (10.0.8.45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Wed, 18 May 2022 18:20:27 +0200 Received: from ServerExch-1.vurv.local ([fe80::e4b0:1814:2ffc:fff7]) by ServerExch-1.vurv.local ([fe80::e4b0:1814:2ffc:fff7%4]) with mapi id 15.01.2242.012; Wed, 18 May 2022 18:20:27 +0200 From: Wiktor Zelazny Thread-Topic: [PATCH 2/3] gnu: Add python-paramz. Thread-Index: AQHYatMvFgNtbZHi7kGcpe9FIlsQ8w== Date: Wed, 18 May 2022 16:20:27 +0000 Message-ID: <20220518162004.1536-2-wzelazny@vurv.cz> References: <20220518162004.1536-1-wzelazny@vurv.cz> In-Reply-To: <20220518162004.1536-1-wzelazny@vurv.cz> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.8.2] MIME-Version: 1.0 X-VURV-MailScanner-Information: Please contact the ISP for more information X-VURV-MailScanner-ID: E6DAC224DB1A.AAAE8 X-VURV-MailScanner: Found to be clean X-VURV-MailScanner-From: wzelazny@vurv.cz X-Mailman-Approved-At: Wed, 18 May 2022 12:49:22 -0400 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/python-science.scm (python-paramz): New variable. --- gnu/packages/python-science.scm | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index ad17401a61..a871bcf89e 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -1245,3 +1245,37 @@ (define-public python-climin license. It works on top of @command{numpy} and (partially) @command{gnumpy}.") (license license:bsd-3))) + +(define-public python-paramz + (package + (name "python-paramz") + (version "0.9.5") + (source (origin + (method url-fetch) + (uri (pypi-uri "paramz" version)) + (sha256 + (base32 + "16hbh97kj6b1c2gw22rqnr3w3nqkszh9gj8vgx738gq81wf225q9")))) + (build-system python-build-system) + (propagated-inputs (list python-decorator python-numpy python-scipy + python-six)) + (home-page "https://github.com/sods/paramz") + (synopsis "The Parameterization Framework") + (description + "@command{paramz} is a lightweight parameterization framework +for parameterized model creation and handling. Its features include: + +@itemize + @item Easy model creation with parameters. + @item Fast optimized access of parameters for optimization routines. + @item Memory efficient storage of parameters (only one copy in memory). + @item Renaming of parameters. + @item Intuitive printing of models and parameters. + @item Gradient saving directly inside parameters. + @item Gradient checking of parameters. + @item Optimization of parameters. + @item Jupyter notebook integration. + @item Efficient storage of models, for reloading. + @item Efficient caching. +@end itemize") + (license license:bsd-3)))