Orange3 Conformal Prediction library
Project description
Conformal Prediction is an add-on for Orange3 data mining software package. It provides an extensive toolset for conformal prediction.
Installation
To install the add-on, run
python setup.py install
To register this add-on with Orange, but keep the code in the development directory (do not copy it to Python’s site-packages directory), run
python setup.py develop
Usage
The library in the add-on can be used in Python scripts. The add-on does not provide any GUI widgets.
The example below evaluates an inductive conformal predictor at 0.1 significance level on the Iris dataset (spliting it into a training and testing set in ratio 2:1). The nonconformity scores used by the conformal predictor are based on the probabilities returned by a Naive Bayes classifier.
import Orange import orangecontrib.conformal as cp tab = Orange.data.Table('iris') nc = cp.nonconformity.InverseProbability(Orange.classification.NaiveBayesLearner()) ic = cp.classification.InductiveClassifier(nc) r = cp.evaluation.run(ic, 0.1, cp.evaluation.RandomSampler(tab, 2, 1)) print(r.accuracy())
Documentation
Please see doc/Orange-ConformalPrediction.pdf. Documentation in other formats can also be built using Sphinx from the doc directory.
Online documentation is available at https://orange3-conformal.readthedocs.io.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file Orange3-Conformal-1.1.3.tar.gz
.
File metadata
- Download URL: Orange3-Conformal-1.1.3.tar.gz
- Upload date:
- Size: 3.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62c1975c2bdc2937ceeb7e16f81f2cbd3881fb73633b84a01200df4e09712b0e |
|
MD5 | 27dd64ed7289ce1c61284492d133f259 |
|
BLAKE2b-256 | 4bc5a6379b8fe35762e52e839975c2cedde55a848995004d9efc00416a72f072 |