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 Eo9vMBm3XmHm/QAAgWs5BA (envelope-from ) for ; Thu, 07 Oct 2021 11:00:09 +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 qJCCKxm3XmGjCgAAbx9fmQ (envelope-from ) for ; Thu, 07 Oct 2021 09:00:09 +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 76FFE2C982 for ; Thu, 7 Oct 2021 11:00:09 +0200 (CEST) Received: from localhost ([::1]:41946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYPG4-0003QY-Hs for larch@yhetil.org; Thu, 07 Oct 2021 05:00:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYPFy-0003Q6-Ct for guix-patches@gnu.org; Thu, 07 Oct 2021 05:00:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34467) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYPFy-0007qG-4z for guix-patches@gnu.org; Thu, 07 Oct 2021 05:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mYPFy-0007PJ-3X for guix-patches@gnu.org; Thu, 07 Oct 2021 05:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51072] [PATCH] gnu: Add Weka Resent-From: Foo Chuan Wei Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Oct 2021 09:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51072 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51072@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163359715228384 (code B ref -1); Thu, 07 Oct 2021 09:00:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Oct 2021 08:59:12 +0000 Received: from localhost ([127.0.0.1]:46013 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYPFA-0007Ni-Hz for submit@debbugs.gnu.org; Thu, 07 Oct 2021 04:59:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:45266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYPF6-0007NY-R1 for submit@debbugs.gnu.org; Thu, 07 Oct 2021 04:59:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56834) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYPF6-0003JP-Ea for guix-patches@gnu.org; Thu, 07 Oct 2021 04:59:08 -0400 Received: from mail-oln040092254102.outbound.protection.outlook.com ([40.92.254.102]:41184 helo=APC01-PU1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYPF3-00070c-Po for guix-patches@gnu.org; Thu, 07 Oct 2021 04:59:08 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YKMNiU+/ZP2ECZqMQhXFr2mAWFpKRWRlBwKUDZl5Vq+1yqvnpDExRYj+sH9OZK2FVYpal++wbg4xE1IwUCXOYsRSmqEy/O2D95Nos9Oy4GGuFRqirkyJXg6O60gI6b9dQtZq6nWaml3heWO9Wy72D4nYwuM0vLsME9oiB2lao6jFCtsydfjn2hGPJqGNNU1OI9TK61MpcwweMHnWc85YPUmUXKh4rOe3PUsPiZKVUo9PCPJVzYnuhwejTwufgWHPTGVh+cMHBOLKHM9qdVWS5QgpkDqljyZS4aC79VDXbzvW8OmPvWyFbAcHGP1vLV8uefc88YeWtgRFdTDE80N5tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=3+zuV2P/s09dFsZFFjDlrn8eD9zzJ3OAkw9WGNQX+mo=; b=Tlxh3o/q3hkEcmCg8qqdTCsFNlB7Ne/piAXPtxDBA183d7fhHWqa/K2aJM45ZdReuu3kOiLWxG1egMa5WLAELfDhxePJMEjR0HMSt4/nwAw+rwg5/OUcXbrX7lyW4UXSZAa/Qo6w8NP8Y7e2mVLoYivTcwsEqh+gZwPPK+MgZTF/MwfLVrzWnJkT77t08y2aVsYQhrVsM2ezbRj9jdlqnRsUy7SvFb4yqnwFMdH8wyraazBwRGItmoSTY2esfWARHiIgiMIZ0ilf70VZa6u6K88frI8LvY3WIar+zqv/NLs0JQPlwIwcDRR53DsYW/7RYpcBB8WS5jPhB10bspAKuQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3+zuV2P/s09dFsZFFjDlrn8eD9zzJ3OAkw9WGNQX+mo=; b=c8MnuOc5yJ26rNJuf7An7cyxxZJh2nRSIs1BpwgLjuJXgWj5bKMAKTGIzAJaWtT5XGb25Pu54qX6fecKoCGDOZH4f1JfgGQhN5zEa5vlzZWXlpYO/gjkG/yQ8QwTnuGp0LE9I7Ga/KsUBdcOzZP2b1IOwj1bLKQk45zQ4XX/+9kcRu+evbnDPFnwzOGgk1u7lNzbWNAcvPkxVk/pdoZdL63MZ7MjY817jzvE6+n1u1MY63Qb5CZrlztQ8ZRMmOHWbrz+J+A0hskeWK9823OUkqCWBe/DuRD99LzxVDbAJjmaSSjFUsfqroy/VQiAQap3OQyzN07JTVTUi8Fqm7d5lA== Received: from PU1PR01MB2155.apcprd01.prod.exchangelabs.com (2603:1096:803:1c::21) by PS1PR01MB3435.apcprd01.prod.exchangelabs.com (2603:1096:300:86::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.22; Thu, 7 Oct 2021 08:59:01 +0000 Received: from PU1PR01MB2155.apcprd01.prod.exchangelabs.com ([fe80::b81b:9b11:fede:9015]) by PU1PR01MB2155.apcprd01.prod.exchangelabs.com ([fe80::b81b:9b11:fede:9015%6]) with mapi id 15.20.4587.019; Thu, 7 Oct 2021 08:59:01 +0000 Date: Thu, 7 Oct 2021 08:42:10 +0000 From: Foo Chuan Wei Message-ID: Mail-Followup-To: guix-patches@gnu.org Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-TMN: [u2D0wbY4xpiiJ0RsYST4K5ush+nZGu8P] X-ClientProxiedBy: SG2PR06CA0101.apcprd06.prod.outlook.com (2603:1096:3:14::27) To PU1PR01MB2155.apcprd01.prod.exchangelabs.com (2603:1096:803:1c::21) X-Microsoft-Original-Message-ID: <20211007084210.gbdyzkbg7lpqbg2c@localhost> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost (202.160.35.253) by SG2PR06CA0101.apcprd06.prod.outlook.com (2603:1096:3:14::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.21 via Frontend Transport; Thu, 7 Oct 2021 08:59:00 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9a5bd26f-35aa-4ce5-67b2-08d98970b4b7 X-MS-TrafficTypeDiagnostic: PS1PR01MB3435: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aAH4Bn8wN7knXiRefoCS+bjSbz+uXayARhmbwst3brcwPyg2JnhwR/LKy8F7rBt3M3t7/OC4HA7hlWqGaA5P1duGCH7cHZ7yAlUQSh/oNZ2D0zPFVipAJvUmYNJU2V/viF2gLCk5RmhWaytx9inksHwQxpwhoMQ5l/pl+zxCJl98sj43gMWYKDKeCxlpv7eXLj1ClMSCI+RYYhMgSdqxlvp0UfSOlUGj9OaYfpfLBODqKVkpAzaaA3ka01WhB+HkkQs6Lcn4JxMa4UwHDcQBDscwaiLqQqnBbMp60puhjFbxLYWo2Y9OgqkIDY7FiQLHyPQnoGXk/MsQTf84zsiOIc0peL40gv5K+eo41QXAiZsPqgxbF6N5W4AUc5NTHLhh+dZPDEbjhAdU0tEETPKdxy/JulHR9qNAP1GxkUB2l4zxrjbya2tvn2kSXqFVmQG0zdAYgE3/l5BAKOFVyxxhMh8ZIchQvDAHb2tRsy/7hzI= X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9QRsS00+YIXSfy4qOdCaqUFXhRIqrhx/T9aHkkgo8nx2gCh7+C4a1r7ERZfUYHaauquMxL/ge/Z+HNVglfpom3UVcOgZqc5UbptTMvmmRUxqFL5wGq4V3hDvpckuEuKHa2tavDcvmRK3UsKF/Qm5kA== X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-5c337.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 9a5bd26f-35aa-4ce5-67b2-08d98970b4b7 X-MS-Exchange-CrossTenant-AuthSource: PU1PR01MB2155.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2021 08:59:01.4294 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS1PR01MB3435 Received-SPF: pass client-ip=40.92.254.102; envelope-from=chuanwei.foo@hotmail.com; helo=APC01-PU1-obe.outbound.protection.outlook.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633597209; 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=3+zuV2P/s09dFsZFFjDlrn8eD9zzJ3OAkw9WGNQX+mo=; b=T9uxxxm4AGhRIsgLoCTSvKIp8jBV0z/EFMBOhmhr9mT1OuYzc6WORdLS6lV5SnI5LUIxqV is/1/luzdgf5Udi/nxREAYQbUHedRML4zf3WjGcd9V73IP5ji5jfgchDlAg/vkRYc6TsWa 4LRnpfLl/O/RSZUr7XGs3jSdtzTzjBGe5FxgW6PU58xFMY9qu67S7TPb213SWlLTO3zKcU 44n1dWMa1FDlGNrUR2Ety9vnBYHsK4Es+ZVRjyxXPiIcI5tk4cKMTT9oYnrbQyfMFkxAnw hHkEFPUgH7T24ugzbvy/jrHL4z1FGh/L+YF+fH0o4AClwWpokkJZM5vK5XH20g== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1633597209; a=rsa-sha256; cv=fail; b=J6ZhEmkzY41yv8Ih4sA2UPTSBRYwQO/BcCp4vxomq9HLw7nvUiqd8l1dJq+XtLqBGQWH9W CH6dDbcRVYXStLPXvF3AqarrzkwkOvE00RmMkKMEu5fMr0UAdDEAdkyNFQRZjBZXs5m+25 oYbB8Afzp4IxEIlxcg+ytqbQutBMNRwDFe/pfHn+7FaX1lZzfgaLCghIt+KdgnQSN/RcFE rDsqvonTAmUO97vwNcKuoyWtmPr55ZEpLLTUN9uKSjBbMiR/PFB5Bb1CCMQ4XrAXyp0OnK uApA0UTd90AaRvNF5xWH6KK4I+3L3GoDXUciRObKLiy1i3avb2X3cyFs3KdQOQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=hotmail.com header.s=selector1 header.b=c8MnuOc5; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); 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: 2.18 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=hotmail.com header.s=selector1 header.b=c8MnuOc5; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed)" header.from=hotmail.com (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: 76FFE2C982 X-Spam-Score: 2.18 X-Migadu-Scanner: scn0.migadu.com X-TUID: zYss7uMdjpkB * gnu/packages/machine-learning.scm (weka): New public variable. --- gnu/packages/machine-learning.scm | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 029422677a..98412894b0 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -40,6 +40,7 @@ #:use-module (guix download) #:use-module (guix svn-download) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (guix build-system gnu) #:use-module (guix build-system ocaml) #:use-module (guix build-system python) @@ -65,6 +66,7 @@ #:use-module (gnu packages graphviz) #:use-module (gnu packages gstreamer) #:use-module (gnu packages image) + #:use-module (gnu packages java) #:use-module (gnu packages libffi) #:use-module (gnu packages linux) #:use-module (gnu packages llvm) @@ -2934,3 +2936,41 @@ Note: currently this package does not provide GPU support.") "Hmmlearn is a set of algorithms for unsupervised learning and inference of Hidden Markov Models.") (license license:bsd-3))) + +(define-public weka + (package + (name "weka") + (version "3.9.5") + (source (origin + (method url-fetch) + (uri "mirror://sourceforge/weka/weka-3-9/3.9.5/weka-3-9-5.zip") + (sha256 + (base32 + "0scnqk4zysdp9hv7w2rgz3pwkqirszj8pfv94drkhlnyc9cz9kf6")))) + (build-system copy-build-system) + (native-inputs `(("unzip" ,unzip))) + (inputs `(("jre" ,icedtea))) + (arguments '(#:install-plan '(("." "share/weka/")) + #:phases + (modify-phases %standard-phases + (add-after 'install 'make-wrapper + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (wrapper (string-append out "/bin/weka"))) + (mkdir-p (string-append out "/bin")) + (with-output-to-file wrapper + (lambda _ + (display + (string-append + "#!/bin/sh\n\n" + (assoc-ref inputs "jre") "/bin/java -jar " + out "/share/weka/weka.jar \"$@\"\n")))) + (chmod wrapper #o555)) + #t))))) + (synopsis "Machine learning algorithms for data mining tasks") + (description + "Weka is a collection of machine learning algorithms in Java. +It contains tools for data preparation, classification, regression, +clustering, association rules mining, and visualization.") + (home-page "https://www.cs.waikato.ac.nz/ml/weka/") + (license license:gpl3+))) base-commit: ce83883f3d8bf6e6d25091acd018a8236a5754e1 -- 2.25.1