All Projects → mateuszbuda → ml-stat-util

mateuszbuda / ml-stat-util

Licence: MIT license
Statistical functions based on bootstrapping for computing confidence intervals and p-values comparing machine learning models and human readers

Programming Languages

Jupyter Notebook
11667 projects
python
139335 projects - #7 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to ml-stat-util

cvAUC
Computationally efficient confidence intervals for cross-validated AUC estimates in R
Stars: ✭ 22 (-45%)
Mutual labels:  confidence-intervals
scimple
➖➖➖🔶➖➖ Tidy Simultaneous Confidence Intervals for Multinomial Proportions
Stars: ✭ 12 (-70%)
Mutual labels:  confidence-intervals
wilson-score-interval
Wilson score interval implemented in javascript
Stars: ✭ 29 (-27.5%)
Mutual labels:  confidence-intervals
measures-of-effect-size-toolbox
Collection of Matlab functions for the computation of measures of effect size
Stars: ✭ 25 (-37.5%)
Mutual labels:  confidence-intervals
kickoff
Project Bootstrapping Tool
Stars: ✭ 22 (-45%)
Mutual labels:  bootstrapping
software-testing-resource-pack
Various files useful for manual testing and test automation etc.
Stars: ✭ 38 (-5%)
Mutual labels:  bootstrapping
modeltime.resample
Resampling Tools for Time Series Forecasting with Modeltime
Stars: ✭ 12 (-70%)
Mutual labels:  bootstrapping
mstrap
Machine bootstrapping tool with a focus on sensible defaults, conventions, and avoidance of vendoring
Stars: ✭ 14 (-65%)
Mutual labels:  bootstrapping
rsgem
Rootstrap way ® to generate gems
Stars: ✭ 26 (-35%)
Mutual labels:  bootstrapping
cutpointr
Optimal cutpoints in R: determining and validating optimal cutpoints in binary classification
Stars: ✭ 75 (+87.5%)
Mutual labels:  bootstrapping
ewstools
Python package for early warning signals (EWS) of bifurcations in time series data.
Stars: ✭ 29 (-27.5%)
Mutual labels:  bootstrapping

Machine Learning Statistical Utils

Docker setup for example jupyter notebook

docker build -t stat-util .
docker run --rm -p 8889:8889 -v `pwd`:/workspace stat-util

Use cases

Code for all use cases is provided in examples.ipynb notebook.

Evaluate a model with 95% confidence interval

from sklearn.metrics import roc_auc_score

import stat_util


score, ci_lower, ci_upper, scores = stat_util.score_ci(
    y_true, y_pred, score_fun=roc_auc_score
)

Compute p-value for comparison of two models

from sklearn.metrics import roc_auc_score

import stat_util


p, z = stat_util.pvalue(y_true, y_pred1, y_pred2, score_fun=roc_auc_score)

Compute mean performance with 95% confidence interval for a set of readers

import numpy as np
from sklearn.metrics import roc_auc_score

import stat_util


mean_score, ci_lower, ci_upper, scores = stat_util.score_stat_ci(
    y_true, y_pred_readers, score_fun=roc_auc_score, stat_fun=np.mean
)

Compute p-value for comparison of one model and a set of readers

import numpy as np
from sklearn.metrics import roc_auc_score

import stat_util


p, z = stat_util.pvalue_stat(
    y_true, y_pred, y_pred_readers, score_fun=roc_auc_score, stat_fun=np.mean
)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].