From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id SHFXMGsGWGVfGQAAauVa8A:P1 (envelope-from ) for ; Sat, 18 Nov 2023 01:33:47 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SHFXMGsGWGVfGQAAauVa8A (envelope-from ) for ; Sat, 18 Nov 2023 01:33:47 +0100 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 63DC15BE7A for ; Sat, 18 Nov 2023 01:33:47 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=troyfigiel.com header.s=MBO0001 header.b="mBR7M/cJ"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=troyfigiel.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1700267627; a=rsa-sha256; cv=none; b=rXEakdzEjQmHXgP2dbbivN5xPt0yEuX+rW2Is/JnECT2FmFHCb5m6hv0VWmgtTYoFcWtsi qt+4WEjriqzDFf0Uqb/EKdjx9ZaTLWY6UCA/5vaweAeVFXSA+7R2JTHy/oZS3B+Iss22HN 32RRhfwZ6T1RRFe3BDDE3ZAgO8P0fy6OjgpmByj8l7MOShy6UCf3YqtLKu50f4WwyYla1P zoyWih/tC2W7jxAstViND6GYEcUPgmgx5BVOIvm3OPvPkw+tw0vOObxTy1IMjtDO2YbIMw Vum1FjvyWnHNYWAb0DNSj/MI/3ZD3CoOKJJcg4aCNMwtHZQWeU3CIKlUuZbZsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1700267627; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=iGIqS2YbP0G022o1/UEQ7rDZsMaTgR4QeWPeYgaZEW0=; b=M6zGm2kQd5TtOPcfcV7WBr2I5skPZdlIdo3aV7koifAqvQhqIKntKMO5lUlAwBnuMW+igk NBeytl9GF6LkSzt2Ggwx7QYWIBS4faJofsER3+qe9zczwLPKjnqLH2On5oHWJYgSrzBWe6 xLld9tcrmYJegV6KujVG0zzJs+OsxAxsTLSh3z5ww5UTVMnwhDJKYbbPJKVyO0U5kQUi5A 4ksV1Boij74SnYkOt+l8ioLhM6joa2+N1lvrbksUmg21GFvBNuTiWQBbLA7BhxUuASNlCA djBfEJmkByjF8Q8ZD69BeFxFdWOZssKSozqJEtlQn5doioWrJuaO/rclBKmUew== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=troyfigiel.com header.s=MBO0001 header.b="mBR7M/cJ"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=troyfigiel.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r48ip-0004zR-Ut; Fri, 17 Nov 2023 18:58:03 -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 1r48io-0004z1-6y for guix-patches@gnu.org; Fri, 17 Nov 2023 18:58:02 -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 1r48in-000243-V1 for guix-patches@gnu.org; Fri, 17 Nov 2023 18:58:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r48io-0001HW-0Y for guix-patches@gnu.org; Fri, 17 Nov 2023 18:58:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67251] [PATCH] gnu: python-imbalanced-learn: Update to 0.11.0. Resent-From: Troy Figiel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 17 Nov 2023 23:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67251 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67251@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17002654454881 (code B ref -1); Fri, 17 Nov 2023 23:58:01 +0000 Received: (at submit) by debbugs.gnu.org; 17 Nov 2023 23:57:25 +0000 Received: from localhost ([127.0.0.1]:47308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r48iD-0001Gf-7P for submit@debbugs.gnu.org; Fri, 17 Nov 2023 18:57:25 -0500 Received: from lists.gnu.org ([2001:470:142::17]:52682) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r48i7-0001GN-H8 for submit@debbugs.gnu.org; Fri, 17 Nov 2023 18:57:23 -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 1r48i1-0004ps-5Y for guix-patches@gnu.org; Fri, 17 Nov 2023 18:57:13 -0500 Received: from mout-y-209.mailbox.org ([2001:67c:2050:103:465::209]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1r48hy-0001zZ-1W for guix-patches@gnu.org; Fri, 17 Nov 2023 18:57:12 -0500 Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (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-209.mailbox.org (Postfix) with ESMTPS id 4SXDMz4mcWz9vFt for ; Sat, 18 Nov 2023 00:57:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troyfigiel.com; s=MBO0001; t=1700265423; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=iGIqS2YbP0G022o1/UEQ7rDZsMaTgR4QeWPeYgaZEW0=; b=mBR7M/cJk0pg9Nt++vnnxLwIy7bK36SRdh0AqNTEePLFr4a2oCXrqr01AOOD9+c+RR/smV KRjRyGz1NZwPdVZo3Y4W59aqxrtIgJp6sUL2gzODvSuIPaqdt1hUauKc4MDsRKWovTE7hM 24hQF2tRj2EjWwzKSbj39BmdFUl+R6dR5HAzG8/TA5yeHwE2evpS6awfmhT7SJzbg5Sazn wRF8tocs7zB9xkHtI1jRz7Pu+KVsJlYLfRN5zKxiVsHIhHay4+bWgPLReCYBQ0/A0f/0xp 5MwITJooi4UKfPj96GvyEkH/mWcj08Lv3U/kWOLw6hDR2JjR2gexCTyUqn0/zA== From: Troy Figiel Date: Sat, 18 Nov 2023 00:56:59 +0100 Message-ID: <871qcolyr8.fsf@troyfigiel.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2001:67c:2050:103:465::209; envelope-from=troy@troyfigiel.com; helo=mout-y-209.mailbox.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 9.91 X-Spam-Score: 9.91 X-Spam: Yes X-Migadu-Spam: Yes X-Migadu-Queue-Id: 63DC15BE7A X-Migadu-Scanner: mx11.migadu.com X-TUID: Tt33IMN5U299 * gnu/packages/machine-learning.scm (python-imbalanced-learn): Update to 0.11.0. [arguments] <#:test-flags>: Move broken tests from "unbreak-tests" phase to here. <#:phases>: Add back some deleted python-keras and tensorflow tests. [native-inputs]: Add python-keras, python-numpydoc and tensorflow. Change-Id: Ibc2827e27ee23e0ffb491cb791bba4d1a3f1109d --- gnu/packages/machine-learning.scm | 65 +++++++++++++++---------------- 1 file changed, 31 insertions(+), 34 deletions(-) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index a84377e1eb..7d833005bc 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -1663,45 +1663,42 @@ (define-public python-tslearn (define-public python-imbalanced-learn (package (name "python-imbalanced-learn") - (version "0.9.1") - (source (origin - (method url-fetch) - (uri (pypi-uri "imbalanced-learn" version)) - (sha256 - (base32 - "0qnrmysnqpc8ii1w5n8mci20gcjhmjr7khvk7f2apdbqc2pgf52f")))) + (version "0.11.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "imbalanced-learn" version)) + (sha256 + (base32 "1p4gdgc8nsq0vjmw4y4d2bp9g0m1c23d0zgrzs90pnz6b24ax0km")))) (build-system pyproject-build-system) (arguments (list - #:phases - '(modify-phases %standard-phases - (add-after 'unpack 'unbreak-tests - (lambda _ - ;; The doctests require tensorflow - (substitute* "setup.cfg" - (("--doctest-modules") "")) - ;; Some tests require a home directory - (setenv "HOME" (getcwd)) - ;; We don't have keras - (delete-file "imblearn/keras/tests/test_generator.py") - ;; We don't have tensorflow - (delete-file "imblearn/tensorflow/tests/test_generator.py")))))) - (propagated-inputs - (list python-joblib - python-numpy - python-scikit-learn - python-scipy - python-threadpoolctl)) - (native-inputs - (list python-black - python-flake8 - python-mypy - python-pandas - python-pytest - python-pytest-cov)) + #:test-flags '(list "-k" + ;; Although we cannot satify the Tensorflow and Keras requirements + ;; (python-keras >= 2.4.3 and tensorflow >= 2.4.3), all tests + ;; besides these pass. + "not balanced_batch_generator and not BalancedBatchGenerator") + #:phases '(modify-phases %standard-phases + (add-after 'unpack 'unbreak-tests + (lambda _ + ;; Some tests require a home directory + (setenv "HOME" + (getcwd))))))) + (propagated-inputs (list python-joblib python-numpy python-scikit-learn + python-scipy python-threadpoolctl)) + (native-inputs (list python-black + python-flake8 + python-keras + python-mypy + python-numpydoc + python-pandas + python-pytest + python-pytest-cov + tensorflow)) (home-page "https://github.com/scikit-learn-contrib/imbalanced-learn") (synopsis "Toolbox for imbalanced dataset in machine learning") - (description "This is a Python package offering a number of re-sampling + (description + "This is a Python package offering a number of re-sampling techniques commonly used in datasets showing strong between-class imbalance. It is compatible with @code{scikit-learn}.") (license license:expat))) -- 2.40.1