From patchwork Sat Nov 18 21:53:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Troy Figiel X-Patchwork-Id: 56621 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 1CC0827BBEA; Sat, 18 Nov 2023 21:54:17 +0000 (GMT) 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=ham 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 7EEF127BBE2 for ; Sat, 18 Nov 2023 21:54:16 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r4TGM-0005KK-Ql; Sat, 18 Nov 2023 16:54:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r4TGL-0005K6-LM for guix-patches@gnu.org; Sat, 18 Nov 2023 16:54:01 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r4TGL-0008VV-DT for guix-patches@gnu.org; Sat, 18 Nov 2023 16:54:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r4TGM-0005h7-Dq for guix-patches@gnu.org; Sat, 18 Nov 2023 16:54:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67265] [PATCH 2/3] gnu: Add python-persim. References: <87il5yag2m.fsf@troyfigiel.com> In-Reply-To: <87il5yag2m.fsf@troyfigiel.com> Resent-From: Troy Figiel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 18 Nov 2023 21:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67265 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67265@debbugs.gnu.org Received: via spool by 67265-submit@debbugs.gnu.org id=B67265.170034443921881 (code B ref 67265); Sat, 18 Nov 2023 21:54:02 +0000 Received: (at 67265) by debbugs.gnu.org; 18 Nov 2023 21:53:59 +0000 Received: from localhost ([127.0.0.1]:49586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r4TGJ-0005gq-D8 for submit@debbugs.gnu.org; Sat, 18 Nov 2023 16:53:59 -0500 Received: from mout-y-111.mailbox.org ([91.198.250.236]:36716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r4TGE-0005gZ-V9 for 67265@debbugs.gnu.org; Sat, 18 Nov 2023 16:53:57 -0500 Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-y-111.mailbox.org (Postfix) with ESMTPS id 4SXnbF59kQz9tcX for <67265@debbugs.gnu.org>; Sat, 18 Nov 2023 22:53:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troyfigiel.com; s=MBO0001; t=1700344425; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=J8kpwiOEfRmoDI89YCfsH//eyxJyrKWQoAlFx74gGeg=; b=OWU1/GfLF1KkHPfebKAZWO7bPIb4BEUIBk+S3Nt/L7Pr/x1uiKv2tZ6jUnSKIGV2Nl5Qen rQ/TjjgtjeJqNmxhjqs8SC7ylQCQNgsWlpObPxnhhp/DNUf85ijeH9paK4iGVMIr7Y9CCF QGkeZUtViOZ5qrtngKn1m7CsvHwPWwVesZEytxxpr86z3ixHLSVDwWDB0YGjxL4jf7tN1F Cut15i1HUDsp1xRLv2FFG68mVldncrgsz9f3ceRl2nkBLD10XovQ/uy7TeBUwAIqHEvt9Q 6tLY9zSveJvNj7+IRPNHRZTdmFqQ8ukKT8rwnN57y1oVrS/MzRVJFts67q1kNw== From: Troy Figiel Date: Sat, 18 Nov 2023 22:53:45 +0100 Message-ID: <87fs12afti.fsf@troyfigiel.com> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/machine-learning.scm (python-persim): New variable. Change-Id: I914071a90b4555d7d1218ce83337d49298effb01 --- gnu/packages/machine-learning.scm | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 6c29aefb58..e315be7f9f 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -837,6 +837,42 @@ (define-public python-hopcroftkarp cardinality matching from a bipartite graph.") (license license:gpl3)))) +(define-public python-persim + (package + (name "python-persim") + (version "0.3.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "persim" version)) + (sha256 + (base32 "0q8wfakx8q4h3ryvw8cba0v6z7xn9139qkrzs3mi1ggyzacnx9d7")))) + (build-system pyproject-build-system) + (propagated-inputs (list python-deprecated + python-hopcroftkarp + python-joblib + python-matplotlib + python-numpy + python-scikit-learn + python-scipy)) + (native-inputs (list python-pytest python-pytest-cov)) + (home-page "https://persim.scikit-tda.org") + (synopsis "Tools for analyzing persistence diagrams in Python") + (description + "This package includes a variety of tools used to analyze persistence diagrams. +It currently houses implementations of +@itemize +@item Persistence images +@item Persistence landscapes +@item Bottleneck distance +@item Modified Gromov–Hausdorff distance +@item Sliced Wasserstein kernel +@item Heat kernel +@item Diagram plotting +@end itemize +") + (license license:expat))) ; MIT License + (define-public python-sacrebleu (package (name "python-sacrebleu")