unofficial mirror of guix-patches@gnu.org 
 help / color / Atom feed
* [bug#42090] [PATCH] gnu: Add r-shapforxgboost.
@ 2020-06-27 17:48 Peter Lo
  2020-06-27 21:18 ` bug#42090: " Ricardo Wurmus
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Lo @ 2020-06-27 17:48 UTC (permalink / raw)
  To: 42090; +Cc: Peter Lo

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

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index ab5e57c0e2..8e2a9433c1 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -22325,3 +22325,38 @@ 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-shapforxgboost
+  (package
+    (name "r-shapforxgboost")
+    (version "0.0.4")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (cran-uri "SHAPforxgboost" version))
+        (sha256
+          (base32
+            "0k6bg27wqnkzv82bcahbapmqhiz6rvnx81m23zbjw58c7lwshgnq"))))
+    (properties
+      `((upstream-name . "SHAPforxgboost")))
+    (build-system r-build-system)
+    (propagated-inputs
+      `(("r-bbmisc" ,r-bbmisc)
+        ("r-data-table" ,r-data-table)
+        ("r-ggextra" ,r-ggextra)
+        ("r-ggforce" ,r-ggforce)
+        ("r-ggplot2" ,r-ggplot2)
+        ("r-ggpubr" ,r-ggpubr)
+        ("r-rcolorbrewer" ,r-rcolorbrewer)
+        ("r-xgboost" ,r-xgboost)))
+    (home-page
+      "https://github.com/liuyanguu/SHAPforxgboost")
+    (synopsis "SHAP Plots for 'XGBoost'")
+    (description
+      "The aim of @code{SHAPforxgboost} is to aid in visual data
+investigations using SHAP (SHapley Additive exPlanation) visualization
+plots for @code{XGBoost}.  It provides summary plot, dependence plot,
+interaction plot, and force plot.  It relies on the 'dmlc/xgboost'
+package to produce SHAP values.  Please refer to 'slundberg/shap' for
+the original implementation of SHAP in 'Python'.")
+    (license license:expat)))
-- 
2.17.1





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

* bug#42090: [PATCH] gnu: Add r-shapforxgboost.
  2020-06-27 17:48 [bug#42090] [PATCH] gnu: Add r-shapforxgboost Peter Lo
@ 2020-06-27 21:18 ` Ricardo Wurmus
  0 siblings, 0 replies; 2+ messages in thread
From: Ricardo Wurmus @ 2020-06-27 21:18 UTC (permalink / raw)
  To: Peter Lo; +Cc: 42090-done


Hi Peter,

> * gnu/packages/cran.scm (r-shapforxgboost): New variable.

Thank you!

I made a couple of minor changes and pushed it to the master branch with
commit bc36937431.

-- 
Ricardo




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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-27 17:48 [bug#42090] [PATCH] gnu: Add r-shapforxgboost Peter Lo
2020-06-27 21:18 ` bug#42090: " Ricardo Wurmus

unofficial mirror of guix-patches@gnu.org 

Archives are clonable:
	git clone --mirror https://yhetil.org/guix-patches/1 guix-patches/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-patches guix-patches/ https://yhetil.org/guix-patches \
		guix-patches@gnu.org
	public-inbox-index guix-patches

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.patches


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git