cpi

CPI: Conditional Predictive Impact

https://github.com/bips-hb/cpi

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.3%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

CPI: Conditional Predictive Impact

Basic Info
Statistics
  • Stars: 12
  • Watchers: 3
  • Forks: 6
  • Open Issues: 6
  • Releases: 0
Created over 7 years ago · Last pushed over 1 year ago
Metadata Files
Readme Changelog

README.md

check-standard <!-- badges: end -->

Conditional Predictive Impact

David S. Watson, Marvin N. Wright

Introduction

The conditional predictive impact (CPI) is a measure of conditional independence. It can be calculated using any supervised learning algorithm, loss function, and knockoff sampler. We provide statistical inference procedures for the CPI without parametric assumptions or sparsity constraints. The method works with continuous and categorical data.

Installation

To install the ranger R package from CRAN, just run

R install.packages("cpi")

To install the development version from GitHub using devtools, run

R devtools::install_github("bips-hb/cpi")

Examples

Calculate CPI for random forest on iris data with 5-fold cross validation: ```R library(mlr3) library(mlr3learners) library(cpi)

cpi(task = tsk("iris"), learner = lrn("classif.ranger", predict_type = "prob"), resampling = rsmp("cv", folds = 5), measure = "classif.logloss", test = "t") ```

References

  • Watson D. S. & Wright, M. N. (2021). Testing conditional independence in supervised learning algorithms. Machine Learning. DOI: 10.1007/s10994-021-06030-6.

Owner

  • Name: BIPS
  • Login: bips-hb
  • Kind: organization
  • Location: Bremen, Germany

Leibniz Institute for Prevention Research and Epidemiology

GitHub Events

Total
  • Issues event: 1
  • Watch event: 2
  • Delete event: 4
  • Issue comment event: 1
  • Push event: 13
  • Pull request event: 12
  • Create event: 3
Last Year
  • Issues event: 1
  • Watch event: 2
  • Delete event: 4
  • Issue comment event: 1
  • Push event: 13
  • Pull request event: 12
  • Create event: 3

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 71
  • Total Committers: 2
  • Avg Commits per committer: 35.5
  • Development Distribution Score (DDS): 0.169
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Marvin Wright g****b@w****e 59
David Watson d****1@g****m 12
Committer Domains (Top 20 + Academic)
wrig.de: 1

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 4
  • Total pull requests: 17
  • Average time to close issues: about 16 hours
  • Average time to close pull requests: 19 days
  • Total issue authors: 2
  • Total pull request authors: 2
  • Average comments per issue: 1.5
  • Average comments per pull request: 0.18
  • Merged pull requests: 14
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 5
  • Average time to close issues: about 20 hours
  • Average time to close pull requests: about 1 hour
  • Issue authors: 2
  • Pull request authors: 1
  • Average comments per issue: 0.5
  • Average comments per pull request: 0.0
  • Merged pull requests: 5
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • mikoontz (3)
  • be-marc (1)
Pull Request Authors
  • mnwright (20)
  • mikoontz (3)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 256 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 2
  • Total maintainers: 1
cran.r-project.org: cpi

Conditional Predictive Impact

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 256 Last month
Rankings
Forks count: 11.3%
Stargazers count: 18.7%
Dependent packages count: 29.8%
Average: 34.4%
Dependent repos count: 35.5%
Downloads: 77.0%
Maintainers (1)
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • foreach * imports
  • knockoff * imports
  • lgr * imports
  • mlr3 * imports
  • BEST * suggests
  • doParallel * suggests
  • glmnet * suggests
  • knitr * suggests
  • mlr3learners * suggests
  • ranger * suggests
  • rmarkdown * suggests
  • testthat >= 3.0.0 suggests
.github/workflows/check-standard.yaml actions
  • actions/checkout v2 composite
  • actions/upload-artifact main composite
  • r-lib/actions/check-r-package v1 composite
  • r-lib/actions/setup-pandoc v1 composite
  • r-lib/actions/setup-r v1 composite
  • r-lib/actions/setup-r-dependencies v1 composite
.github/workflows/pkgdown.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/setup-pandoc v1 composite
  • r-lib/actions/setup-r v1 composite
  • r-lib/actions/setup-r-dependencies v1 composite