{
  "_id": "6a141214acfb0bcc41d3b890",
  "Package": "treeshap",
  "Title": "Compute SHAP Values for Your Tree-Based Models Using the\n'TreeSHAP' Algorithm",
  "Version": "0.4.0",
  "Authors@R": "c(\nperson(\"Michael\", \"Mayer\", , \"mayermichael79@gmail.com\", role = c(\"aut\", \"cre\")),\nperson(\"Konrad\", \"Komisarczyk\", email = \"komisarczykkonrad@gmail.com\", role = \"aut\"),\nperson(\"Pawel\", \"Kozminski\", email = \"pkozminski99@gmail.com\", role = \"aut\"),\nperson(\"Szymon\", \"Maksymiuk\", role = \"aut\", comment = c(ORCID = \"0000-0002-3120-1601\")),\nperson(\"Lorenz A.\", \"Kapsner\", role = \"ctb\", comment = c(ORCID = \"0000-0003-1866-860X\")),\nperson(\"Mikolaj\", \"Spytek\", role = \"ctb\", comment = c(ORCID = \"0000-0001-7111-2286\")),\nperson(\"Mateusz\", \"Krzyzinski\", email = \"krzyzinskimateusz23@gmail.com\", role = \"ctb\", comment = c(ORCID = \"0000-0001-6143-488X\")),\nperson(\"Przemyslaw\", \"Biecek\", email = \"przemyslaw.biecek@gmail.com\", role = c(\"aut\", \"cph\"), comment = c(ORCID = \"0000-0001-8423-1823\"))\n)",
  "Description": "An efficient implementation of the 'TreeSHAP' algorithm\nintroduced by Lundberg et al., (2020)\n<doi:10.1038/s42256-019-0138-9>. It is capable of calculating\nSHAP (SHapley Additive exPlanations) values for tree-based\nmodels in polynomial time.  Currently supported models include\n'gbm', 'randomForest', 'ranger', 'xgboost', 'lightgbm'.",
  "License": "GPL-3",
  "URL": "https://modeloriented.github.io/treeshap/,\nhttps://github.com/ModelOriented/treeshap",
  "BugReports": "https://github.com/ModelOriented/treeshap/issues",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Repository": "https://modeloriented.r-universe.dev",
  "Date/Publication": "2026-04-24 09:54:52 UTC",
  "RemoteUrl": "https://github.com/modeloriented/treeshap",
  "RemoteRef": "HEAD",
  "RemoteSha": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-25 08:59:56 UTC",
    "User": "root"
  },
  "Author": "Michael Mayer [aut, cre],\nKonrad Komisarczyk [aut],\nPawel Kozminski [aut],\nSzymon Maksymiuk [aut] (ORCID: <https://orcid.org/0000-0002-3120-1601>),\nLorenz A. Kapsner [ctb] (ORCID:\n<https://orcid.org/0000-0003-1866-860X>),\nMikolaj Spytek [ctb] (ORCID: <https://orcid.org/0000-0001-7111-2286>),\nMateusz Krzyzinski [ctb] (ORCID:\n<https://orcid.org/0000-0001-6143-488X>),\nPrzemyslaw Biecek [aut, cph] (ORCID:\n<https://orcid.org/0000-0001-8423-1823>)",
  "Maintainer": "Michael Mayer <mayermichael79@gmail.com>",
  "MD5sum": "ee93fb0ef82f1eba692a13e05932998e",
  "_user": "modeloriented",
  "_type": "src",
  "_file": "treeshap_0.4.0.tar.gz",
  "_fileid": "13aec3aca39bbbf8448dce3033a798417fb6793134425912260da2df8e1a605b",
  "_filesize": 992220,
  "_sha256": "13aec3aca39bbbf8448dce3033a798417fb6793134425912260da2df8e1a605b",
  "_created": "2026-05-25T08:59:56.000Z",
  "_published": "2026-05-25T09:10:44.048Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77685278404,
      "time": 212,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7195137967"
    },
    {
      "job": 77685278383,
      "time": 224,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7195141194"
    },
    {
      "job": 77685278402,
      "time": 228,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7195142101"
    },
    {
      "job": 77685278395,
      "time": 240,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7195144715"
    },
    {
      "job": 77685278410,
      "time": 136,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7195117157"
    },
    {
      "job": 77685278431,
      "time": 595,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7195213181"
    },
    {
      "job": 77685278485,
      "time": 128,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7195115619"
    },
    {
      "job": 77685278396,
      "time": 398,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7195176316"
    },
    {
      "job": 77684886570,
      "time": 176,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7195080576"
    },
    {
      "job": 77685278381,
      "time": 131,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7195116079"
    },
    {
      "job": 77685278392,
      "time": 235,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7195143671"
    },
    {
      "job": 77685278415,
      "time": 182,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7195129831"
    },
    {
      "job": 77685278411,
      "time": 168,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7195125894"
    }
  ],
  "_buildurl": "https://github.com/r-universe/modeloriented/actions/runs/26392362953",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/modeloriented/treeshap",
  "_commit": {
    "id": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
    "author": "Michael Mayer <mayermichael79@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #53 from mayer79/prepare-cran-release\n\nPrepare CRAN release",
    "time": 1777024492
  },
  "_maintainer": {
    "name": "Michael Mayer",
    "email": "mayermichael79@gmail.com",
    "login": "mayer79",
    "uuid": 16206095
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "gbm",
      "role": "Suggests"
    },
    {
      "package": "jsonlite",
      "role": "Suggests"
    },
    {
      "package": "lightgbm",
      "role": "Suggests"
    },
    {
      "package": "gpboost",
      "role": "Suggests"
    },
    {
      "package": "randomForest",
      "role": "Suggests"
    },
    {
      "package": "ranger",
      "role": "Suggests"
    },
    {
      "package": "scales",
      "role": "Suggests"
    },
    {
      "package": "survival",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "xgboost",
      "role": "Suggests"
    }
  ],
  "_owner": "modeloriented",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-05",
      "n": 5
    },
    {
      "week": "2026-17",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v0.4.0",
      "date": "2026-04-24"
    }
  ],
  "_topics": [
    "explainability",
    "explainable-ai",
    "explainable-artificial-intelligence",
    "explanatory-model-analysis",
    "iml",
    "interpretability",
    "interpretable-machine-learning",
    "machine-learning",
    "responsible-ml",
    "shap",
    "shapley-value",
    "xai",
    "cpp"
  ],
  "_stars": 98,
  "_contributors": [
    {
      "user": "konrad-komisarczyk",
      "count": 104,
      "uuid": 32682692
    },
    {
      "user": "krzyzinskim",
      "count": 78,
      "uuid": 56126737
    },
    {
      "user": "kapsner",
      "count": 27,
      "uuid": 44973495
    },
    {
      "user": "maksymiuks",
      "count": 26,
      "uuid": 32574056
    },
    {
      "user": "mayer79",
      "count": 12,
      "uuid": 16206095
    },
    {
      "user": "hbaniecki",
      "count": 6,
      "uuid": 32574004
    },
    {
      "user": "pbiecek",
      "count": 6,
      "uuid": 4624318
    },
    {
      "user": "ck37",
      "count": 1,
      "uuid": 50770
    },
    {
      "user": "fabsig",
      "count": 1,
      "uuid": 32902180
    },
    {
      "user": "mikolajsp",
      "count": 1,
      "uuid": 55801784
    }
  ],
  "_userbio": {
    "uuid": 44725555,
    "type": "organization",
    "name": "Model Oriented"
  },
  "_downloads": {
    "count": 1170,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/treeshap"
  },
  "_devurl": "https://github.com/modeloriented/treeshap",
  "_pkgdown": "https://modeloriented.github.io/treeshap/",
  "_searchresults": 195,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/treeshap.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/modeloriented/treeshap",
  "_realowner": "modeloriented",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2.5",
      "date": "2023-10-01"
    },
    {
      "version": "0.3.0",
      "date": "2023-10-24"
    },
    {
      "version": "0.3.1",
      "date": "2024-01-22"
    },
    {
      "version": "0.4.0",
      "date": "2026-04-24"
    }
  ],
  "_exports": [
    "colors_breakdown_drwhy",
    "colors_discrete_drwhy",
    "gbm.unify",
    "gpboost.unify",
    "is.model_unified",
    "is.treeshap",
    "lightgbm.unify",
    "plot_contribution",
    "plot_feature_dependence",
    "plot_feature_importance",
    "plot_interaction",
    "randomForest.unify",
    "ranger_surv.unify",
    "ranger.unify",
    "set_reference_dataset",
    "theme_drwhy",
    "theme_drwhy_vertical",
    "treeshap",
    "unify",
    "xgboost.unify"
  ],
  "_datasets": [
    {
      "name": "fifa20",
      "title": "Attributes of all players in FIFA 20",
      "object": "fifa20",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "colors_drwhy",
      "title": "DrWhy color palettes for ggplot objects",
      "topics": [
        "colors_breakdown_drwhy",
        "colors_discrete_drwhy"
      ]
    },
    {
      "page": "fifa20",
      "title": "Attributes of all players in FIFA 20",
      "topics": [
        "fifa20"
      ]
    },
    {
      "page": "gbm.unify",
      "title": "Unify GBM model",
      "topics": [
        "gbm.unify"
      ]
    },
    {
      "page": "gpboost.unify",
      "title": "Unify GPBoost model",
      "topics": [
        "gpboost.unify"
      ]
    },
    {
      "page": "is.model_unified",
      "title": "Check whether object is a valid model_unified object",
      "topics": [
        "is.model_unified"
      ]
    },
    {
      "page": "is.treeshap",
      "title": "Check whether object is a valid treeshap object",
      "topics": [
        "is.treeshap"
      ]
    },
    {
      "page": "lightgbm.unify",
      "title": "Unify LightGBM model",
      "topics": [
        "lightgbm.unify"
      ]
    },
    {
      "page": "model_unified_multioutput.object",
      "title": "Unified model representations for multi-output model",
      "topics": [
        "model_unified_multioutput.object"
      ]
    },
    {
      "page": "model_unified.object",
      "title": "Unified model representation",
      "topics": [
        "model_unified.object"
      ]
    },
    {
      "page": "plot_contribution",
      "title": "SHAP value based Break-Down plot",
      "topics": [
        "plot_contribution"
      ]
    },
    {
      "page": "plot_feature_dependence",
      "title": "SHAP value based Feature Dependence plot",
      "topics": [
        "plot_feature_dependence"
      ]
    },
    {
      "page": "plot_feature_importance",
      "title": "SHAP value based Feature Importance plot",
      "topics": [
        "plot_feature_importance"
      ]
    },
    {
      "page": "plot_interaction",
      "title": "SHAP Interaction value plot",
      "topics": [
        "plot_interaction"
      ]
    },
    {
      "page": "predict.model_unified",
      "title": "Predict",
      "topics": [
        "predict.model_unified"
      ]
    },
    {
      "page": "print.model_unified",
      "title": "Prints model_unified objects",
      "topics": [
        "print.model_unified"
      ]
    },
    {
      "page": "print.model_unified_multioutput",
      "title": "Prints model_unified_multioutput objects",
      "topics": [
        "print.model_unified_multioutput"
      ]
    },
    {
      "page": "print.treeshap",
      "title": "Prints treeshap objects",
      "topics": [
        "print.treeshap"
      ]
    },
    {
      "page": "print.treeshap_multioutput",
      "title": "Prints treeshap_multioutput objects",
      "topics": [
        "print.treeshap_multioutput"
      ]
    },
    {
      "page": "randomForest.unify",
      "title": "Unify randomForest model",
      "topics": [
        "randomForest.unify"
      ]
    },
    {
      "page": "ranger_surv.unify",
      "title": "Unify ranger survival model",
      "topics": [
        "ranger_surv.unify"
      ]
    },
    {
      "page": "ranger.unify",
      "title": "Unify ranger model",
      "topics": [
        "ranger.unify"
      ]
    },
    {
      "page": "set_reference_dataset",
      "title": "Set reference dataset",
      "topics": [
        "set_reference_dataset"
      ]
    },
    {
      "page": "theme_drwhy",
      "title": "DrWhy Theme for ggplot objects",
      "topics": [
        "theme_drwhy",
        "theme_drwhy_vertical"
      ]
    },
    {
      "page": "treeshap",
      "title": "Calculate SHAP values of a tree ensemble model.",
      "topics": [
        "treeshap"
      ]
    },
    {
      "page": "treeshap_multioutput.object",
      "title": "treeshap results for multi-output model",
      "topics": [
        "treeshap_multioutput.object"
      ]
    },
    {
      "page": "treeshap.object",
      "title": "treeshap results",
      "topics": [
        "treeshap.object"
      ]
    },
    {
      "page": "unify",
      "title": "Unify tree-based model",
      "topics": [
        "unify"
      ]
    },
    {
      "page": "xgboost.unify",
      "title": "Unify XGBoost model",
      "topics": [
        "xgboost.unify"
      ]
    }
  ],
  "_readme": "https://github.com/modeloriented/treeshap/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "data.table",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 7.3036890582405,
  "_indexed": true,
  "_nocasepkg": "treeshap",
  "_universes": [
    "modeloriented",
    "mayer79"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-05-25T09:02:41.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "deae3e1d53f20e282fdffd5745525880ce2d0d73b2fcff651d68c9e09e68486b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/26392362953"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-05-25T09:02:44.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "c8dd94b57f551de80cb78164d435ceb7e0d5f41d9a92484fc2b9234b33dd1416",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/26392362953"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-05-25T09:03:00.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "14fbaf984f85fd5c9cfed10b4761159c15342d819b492361b15426858de97f93",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/26392362953"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-05-25T09:03:05.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "03ba9818d99fa863a396fbfb2d5a1e72746d72aef83072dff3087f5cc9f30cbb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/26392362953"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-05-25T09:01:50.000Z",
      "arch": "aarch64",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "edd3b70a1425f65f2463dca11b3bd4981ff3781bd4c4c712f65a0c30bfdb60e4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/26392362953"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-05-25T09:06:16.000Z",
      "arch": "x86_64",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "5d1d72dad5ce797a48cbb2aee1d3f58333e5f860580ce77f1a8e388cd9a59fca",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/26392362953"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-05-25T09:01:39.000Z",
      "arch": "aarch64",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "77c374de5bc96c0837c6892f97695ca98dc5f65e869122f7c63a8c5777b61f7b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/26392362953"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-05-25T09:04:16.000Z",
      "arch": "x86_64",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "baeddf435746e682cecfd7145313610839a132ab431ec890291f908a670e2f00",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/26392362953"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.0",
      "date": "2026-05-25T09:02:30.000Z",
      "arch": "emscripten",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "e7893b4ba2d5ea031ef793aa627654f82fac8dbfe365a4a19f5367fbd944e22f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/26392362953"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-05-25T09:01:32.000Z",
      "arch": "x86_64",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "aa0e255c7ef1d303088ce3dc5709cad0913e58c023a3d8e3d9510bdb51567d7a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/26392362953"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-05-25T09:01:34.000Z",
      "arch": "x86_64",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "3fd3bd9edc6d557ada7c7d04e75b4c38ec29870555e78990ab8c484b2cf21a28",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/26392362953"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-05-25T09:01:26.000Z",
      "arch": "x86_64",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "090473434f52e63054bd1751a3812f402e72c93f8e58c0cee7873791e021b52f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/26392362953"
    }
  ]
}