MCPcopy Index your code
hub / github.com/donlnz/nonconformist

github.com/donlnz/nonconformist @2.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 2.1.0 ↗ · + Follow
146 symbols 509 edges 18 files 55 documented · 38% updated 5y ago★ 47918 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

nonconformist

Python implementation of the conformal prediction framework [1].

Primarily to be used as an extension to the scikit-learn library.

API documentation: http://donlnz.github.io/nonconformist/

(API documentation is currently severely deprecated; for instructions on basic usage, please refer to README.ipynb, and the running examples available under /examples/ in the repository.)

Installation

Dependencies

nonconformist requires:

  • Python (tested under Python 3.5)
  • numpy
  • scipy
  • scikit-learn

User installation

The easiest way to install the latest release version is via pip:

pip install nonconformist

The development version is available here on github:

git clone https://github.com/donlnz/nonconformist

TODO

  • Exchangeability testing [2].
  • Interpolated p-values [3,4].
  • Conformal prediction trees [5].
  • Venn predictors [?]
  • Venn-ABERS predictors [?]
  • Nonparametric distribution prediction [?]

[1] Vovk, V., Gammerman, A., & Shafer, G. (2005). Algorithmic learning in a random world. Springer Science & Business Media.

[2] Fedorova, V., Gammerman, A., Nouretdinov, I., & Vovk, V. (2012). Plug-in martingales for testing exchangeability on-line. In Proceedings of the 29th International Conference on Machine Learning (ICML-12) (pp. 1639-1646).

[3] Carlsson, L., Ahlberg, E., Boström, H., Johansson, U., Linusson, & H. (2015). Modifications to p-values of Conformal Predictors. In Proceedings of the 3rd International Symposium on Statistical Learning and Data Sciences (SLDS 2015). (In press).

[4] Johansson, U., Ahlberg, E., Boström, H., Carlsson, L., Linusson, H., Sönströd, C. (2015). Handling Small Calibration Sets in Mondrian Inductive Conformal Regressors. In Proceedings of the 3rd International Symposium on Statistical Learning and Data Sciences (SLDS 2015). (In press).

[5] Johansson, U., Sönströd, C., Linusson, H., & Boström, H. (2014, October). Regression trees for streaming data with local performance guarantees. In Big Data (Big Data), 2014 IEEE International Conference on (pp. 461-470). IEEE.

Core symbols most depended-on inside this repo

calibrate
called by 10
nonconformist/icp.py
predict
called by 10
nonconformist/nc.py
cross_val_score
called by 9
nonconformist/evaluation.py
fit
called by 9
nonconformist/icp.py
create_nc
called by 8
nonconformist/nc.py
score_model
called by 8
examples/nc_factory.py
_reg_interval_size
called by 6
nonconformist/evaluation.py
fit
called by 5
nonconformist/nc.py

Shape

Method 87
Class 35
Function 24

Languages

Python100%

Modules by API surface

nonconformist/nc.py40 symbols
nonconformist/evaluation.py30 symbols
nonconformist/base.py27 symbols
nonconformist/icp.py23 symbols
nonconformist/acp.py18 symbols
nonconformist/cp.py5 symbols
docs/conf.py2 symbols
examples/nc_factory.py1 symbols

For agents

$ claude mcp add nonconformist \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact