{
  "_id": "6a3b3b435cdecea1d681325a",
  "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-06-24 01:57:40 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": "88a5cf858fbb907b55060d40991df01f",
  "_user": "modeloriented",
  "_type": "src",
  "_file": "treeshap_0.4.0.tar.gz",
  "_fileid": "f0aa9fe8f371248aa19fdd4367bbfaba1ee83ac5887987ccabbf5de05224f974",
  "_filesize": 996470,
  "_sha256": "f0aa9fe8f371248aa19fdd4367bbfaba1ee83ac5887987ccabbf5de05224f974",
  "_created": "2026-06-24T01:57:40.000Z",
  "_published": "2026-06-24T02:04:51.067Z",
  "_distro": "resolute",
  "_jobs": [
    {
      "job": 83102075464,
      "time": 182,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7838324954"
    },
    {
      "job": 83102075446,
      "time": 197,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7838327910"
    },
    {
      "job": 83102075474,
      "time": 184,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7838325651"
    },
    {
      "job": 83102075490,
      "time": 189,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7838326203"
    },
    {
      "job": 83102075462,
      "time": 163,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7838319360"
    },
    {
      "job": 83102075472,
      "time": 311,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7838351609"
    },
    {
      "job": 83102075452,
      "time": 164,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7838319587"
    },
    {
      "job": 83102075471,
      "time": 388,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7838367146"
    },
    {
      "job": 83101806456,
      "time": 154,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7838284107"
    },
    {
      "job": 83102075424,
      "time": 154,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7838317448"
    },
    {
      "job": 83102075438,
      "time": 202,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7838328773"
    },
    {
      "job": 83102075450,
      "time": 167,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7838321566"
    },
    {
      "job": 83102075444,
      "time": 172,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7838322052"
    }
  ],
  "_buildurl": "https://github.com/r-universe/modeloriented/actions/runs/28069796705",
  "_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": 99,
  "_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",
    "followers": 143
  },
  "_downloads": {
    "count": 1355,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/treeshap"
  },
  "_devurl": "https://github.com/modeloriented/treeshap",
  "_pkgdown": "https://modeloriented.github.io/treeshap/",
  "_searchresults": 224,
  "_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": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 7.432065017581461,
  "_indexed": true,
  "_nocasepkg": "treeshap",
  "_universes": [
    "modeloriented",
    "mayer79"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-06-24T02:00:05.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "6947a6fa22a8b0842d0287ee31b833934845f5f0f78d9e3127546c5a5f2f681a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/28069796705"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-06-24T01:59:58.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "681cf52484fa85c6d4b791467db99b6b27e0be397e89e5460202f7f844b8c779",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/28069796705"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-06-24T02:00:06.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "54c73f772d7ee4fd215139dca695bc426b91dc216c1d6eee9d71317e9357136d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/28069796705"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-06-24T01:59:55.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "4edc5334d7cc089c19cbcc11754bd2da6d43ad8bfc6920bc1241f3a61bcf62f4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/28069796705"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-06-24T01:59:38.000Z",
      "arch": "aarch64",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "8d121227c9fd2c58674624ae31615f0964e2882e947c0cf2a63f72a88d2cdce2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/28069796705"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-06-24T02:01:02.000Z",
      "arch": "x86_64",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "17891dc4e54654fe1bd819e5f555894043d845ca9bebec5cd36cc0dcc9cc1640",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/28069796705"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-06-24T01:59:31.000Z",
      "arch": "aarch64",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "28a2b071db1835104c03043813b23e805dea29c41431fbf3a0f949d18a7d20ef",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/28069796705"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-06-24T02:01:28.000Z",
      "arch": "x86_64",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "5d17fc29dcbb52e790c09e0247324d881e58caea1bc757fc9d3b67dcf8ec787a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/28069796705"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.0",
      "date": "2026-06-24T02:00:32.000Z",
      "arch": "emscripten",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "419d7581fed6e067cd05effa8095c4e15b0b54e1771b3a029df4a0c11e15707a",
      "status": "success",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/28069796705"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-06-24T01:59:17.000Z",
      "arch": "x86_64",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "a99431447bb7c1d8b0933a3a340709c5dda1fbdbb1b6cc35d488e54110e289d5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/28069796705"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-06-24T01:59:06.000Z",
      "arch": "x86_64",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "778415090c3baaf944f9099c871c23a6bf375da218e951190b60dc84af9535a3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/28069796705"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-06-24T01:59:04.000Z",
      "arch": "x86_64",
      "commit": "09be1a095bea26f0efe26d4d3d706a9bb3238e14",
      "fileid": "d84d2ff7a517f3a1d770ececffad411eaa9afc5c1f08a0ddba365d974fd26555",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/modeloriented/actions/runs/28069796705"
    }
  ]
}