unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#42104] [PATCH] gnu: Add r-iml and dependency
@ 2020-06-28  7:59 Lo Peter
  2020-06-28  8:01 ` [bug#42104] [PATCH 1/2] gnu: Add r-metrics Peter Lo
  2020-08-04 21:12 ` bug#42104: [PATCH] gnu: Add r-iml and dependency Ricardo Wurmus
  0 siblings, 2 replies; 4+ messages in thread
From: Lo Peter @ 2020-06-28  7:59 UTC (permalink / raw)
  To: 42104

Dear all,

I am submitting a patch series of r-iml and its dependency.

Regards,
Peter




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#42104] [PATCH 1/2] gnu: Add r-metrics.
  2020-06-28  7:59 [bug#42104] [PATCH] gnu: Add r-iml and dependency Lo Peter
@ 2020-06-28  8:01 ` Peter Lo
  2020-06-28  8:01   ` [bug#42104] [PATCH 2/2] gnu: Add r-iml Peter Lo
  2020-08-04 21:12 ` bug#42104: [PATCH] gnu: Add r-iml and dependency Ricardo Wurmus
  1 sibling, 1 reply; 4+ messages in thread
From: Peter Lo @ 2020-06-28  8:01 UTC (permalink / raw)
  To: 42104; +Cc: Peter Lo

* gnu/packages/cran.scm (r-metrics): New variable.
---
 gnu/packages/cran.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index ab5e57c0e2..ec290d4b69 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -22325,3 +22325,27 @@ across a wide array of bioinformatic R packages.")
 and clustering large sequence datasets using fast alignment-free k-mer
 counting and recursive k-means partitioning.")
     (license license:gpl3)))
+
+(define-public r-metrics
+  (package
+    (name "r-metrics")
+    (version "0.1.4")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (cran-uri "Metrics" version))
+        (sha256
+          (base32
+            "0fh8qbjlwzagh272lgwr4bxcqcjb1qpz53mgs8rzlvncax6nk5bk"))))
+    (properties `((upstream-name . "Metrics")))
+    (build-system r-build-system)
+    (home-page "https://github.com/mfrasco/Metrics")
+    (synopsis
+      "Evaluation Metrics for Machine Learning")
+    (description
+      "An implementation of evaluation metrics in R that are commonly
+used in supervised machine learning.  It implements metrics for
+regression, time series, binary classification, classification, and
+information retrieval problems.  It has zero dependencies and a
+consistent, simple interface for all functions.")
+    (license license:bsd-3)))
-- 
2.17.1





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#42104] [PATCH 2/2] gnu: Add r-iml.
  2020-06-28  8:01 ` [bug#42104] [PATCH 1/2] gnu: Add r-metrics Peter Lo
@ 2020-06-28  8:01   ` Peter Lo
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Lo @ 2020-06-28  8:01 UTC (permalink / raw)
  To: 42104; +Cc: Peter Lo

* gnu/packages/cran.scm (r-iml): New variable.
---
 gnu/packages/cran.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index ec290d4b69..12fc3fa011 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -22349,3 +22349,45 @@ regression, time series, binary classification, classification, and
 information retrieval problems.  It has zero dependencies and a
 consistent, simple interface for all functions.")
     (license license:bsd-3)))
+
+(define-public r-iml
+  (package
+    (name "r-iml")
+    (version "0.10.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (cran-uri "iml" version))
+        (sha256
+          (base32
+            "0xm3q42qahq798ilgg050df0mahhbdfd3fx3i7cpx606h38si0x7"))))
+    (properties `((upstream-name . "iml")))
+    (build-system r-build-system)
+    (propagated-inputs
+      `(("r-checkmate" ,r-checkmate)
+        ("r-data-table" ,r-data-table)
+        ("r-formula" ,r-formula)
+        ("r-future" ,r-future)
+        ("r-future-apply" ,r-future-apply)
+        ("r-ggplot2" ,r-ggplot2)
+        ("r-gridextra" ,r-gridextra)
+        ("r-metrics" ,r-metrics)
+        ("r-prediction" ,r-prediction)
+        ("r-r6" ,r-r6)))
+    (native-inputs `(("r-knitr" ,r-knitr)))
+    (home-page "https://github.com/christophM/iml")
+    (synopsis "Interpretable Machine Learning")
+    (description
+      "Interpretability methods to analyze the behavior and
+predictions of any machine learning model.  Implemented methods are:
+Feature importance described by Fisher et al. (2018)
+<arXiv:1801.01489>, accumulated local effects plots described by
+Apley (2018) <arXiv:1612.08468>, partial dependence plots described by
+Friedman (2001) <http://www.jstor.org/stable/2699986>, individual
+conditional expectation ('ice') plots described by Goldstein et
+al. (2013) <doi:10.1080/10618600.2014.907095>, local models (variant
+of 'lime') described by Ribeiro et.  al (2016) <arXiv:1602.04938>, the
+Shapley Value described by Strumbelj et.  al (2014)
+<doi:10.1007/s10115-013-0679-x>, feature interactions described by
+Friedman et.  al <doi:10.1214/07-AOAS148> and tree surrogate models.")
+    (license license:expat)))
-- 
2.17.1





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#42104: [PATCH] gnu: Add r-iml and dependency
  2020-06-28  7:59 [bug#42104] [PATCH] gnu: Add r-iml and dependency Lo Peter
  2020-06-28  8:01 ` [bug#42104] [PATCH 1/2] gnu: Add r-metrics Peter Lo
@ 2020-08-04 21:12 ` Ricardo Wurmus
  1 sibling, 0 replies; 4+ messages in thread
From: Ricardo Wurmus @ 2020-08-04 21:12 UTC (permalink / raw)
  To: 42104-done; +Cc: peterloleungyau

Thank you for the patches!  I’ve applied them with a few changes with
commit 763453e18e.

For future additions of R packages please pay attention to indentation
(etc/indent-code.el does that for you) and to the description and
synopsis.  We often cannot use the texts that are provided on CRAN
without modification.

Thanks again!

-- 
Ricardo

PS: Your patches didn’t apply, and none of your other patches apply
cleanly because they are all relative to the bottom of the file — which
changes when I apply one of your patches.  By adding packages in
alphabetical order you can avoid these problems.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-08-04 21:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-28  7:59 [bug#42104] [PATCH] gnu: Add r-iml and dependency Lo Peter
2020-06-28  8:01 ` [bug#42104] [PATCH 1/2] gnu: Add r-metrics Peter Lo
2020-06-28  8:01   ` [bug#42104] [PATCH 2/2] gnu: Add r-iml Peter Lo
2020-08-04 21:12 ` bug#42104: [PATCH] gnu: Add r-iml and dependency Ricardo Wurmus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).