{ "info": { "author": "Hiroyuki Yamasaki", "author_email": "yamasaki.phone@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License" ], "description": "# predictiveness-curve\n\n[![PyPi version](https://img.shields.io/pypi/v/predictiveness-curve.svg)](https://pypi.python.org/pypi/predictiveness-curve/) [![Python support](https://img.shields.io/badge/python-3.6+-blue.svg)](https://www.python.org/downloads/release/python-360/) [![License](https://img.shields.io/github/license/yamasakih/predictiveness-curve.svg)](https://github.com/yamasakih/predictiveness-curve/blob/master/LICENSE) [![Build Status](https://travis-ci.org/yamasakih/predictiveness-curve.svg?branch=master)](https://travis-ci.org/yamasakih/predictiveness-curve) [![codecov](https://codecov.io/gh/yamasakih/predictiveness-curve/branch/master/graph/badge.svg)](https://codecov.io/gh/yamasakih/predictiveness-curve) [![Downloads](https://pepy.tech/badge/predictiveness-curve)](https://pepy.tech/project/predictiveness-curve) [![Downloads](https://pepy.tech/badge/predictiveness-curve/month)](https://pepy.tech/project/predictiveness-curve/month) [![Downloads](https://pepy.tech/badge/predictiveness-curve/week)](https://pepy.tech/project/predictiveness-curve/week)\n\n## What's Predictiveness Curve?\nPredictiveness curve is a method to display two graphs simultaneously. In both figures, the x-axis is risk percentile, the y-axis of one figure is the value of risk, and the y-axis of the other figure is true positive fractions. This makes it possible to visualize whether the model of risk fits in the medical field and which value of risk should be used as the basis for the model. See [Am. J. Epidemiol. 2008; 167:362\u2013368](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2939738/) for details.\n\n## Install\n\nThis module implements functions to plot `Predictiveness Curve`. \nInstall with :\n\n`pip install predictiveness-curve`\n\n## Example\n\n```python\nfrom predictiveness_curve import plot_predictiveness_curve\nfrom sklearn.datasets import load_breast_cancer\nfrom sklearn.ensemble import RandomForestClassifier\nfrom sklearn.model_selection import train_test_split\n\ndata = load_breast_cancer()\ny = data.target\nX = data.data\n\ntraining_X, test_X, training_y, test_y = train_test_split(\n X, y, test_size=0.5, random_state=42)\n\nclsf = RandomForestClassifier(n_estimators=100, random_state=42)\nclsf.fit(training_X, training_y)\nprobabilities = clsf.predict_proba(test_X)[:, 1]\n\nplot_predictiveness_curve(probabilities, test_y)\n```\n\nSee [notebooks directory](https://github.com/yamasakih/predictiveness-curve/tree/master/notebooks) for details.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/yamasakih/predictiveness-curve", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "predictiveness-curve", "package_url": "https://pypi.org/project/predictiveness-curve/", "platform": "", "project_url": "https://pypi.org/project/predictiveness-curve/", "project_urls": { "Homepage": "https://github.com/yamasakih/predictiveness-curve" }, "release_url": "https://pypi.org/project/predictiveness-curve/0.2.2/", "requires_dist": null, "requires_python": ">=3.6", "summary": "Plot predictiveness curve", "version": "0.2.2" }, "last_serial": 5556475, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "bfa9520e8701656f03ae6fe5ec1404c5", "sha256": "d5113f2ac81c22536ec7045117df16f9bd6654c92c5b8cc024ccd768fc155f88" }, "downloads": -1, "filename": "predictiveness-curve-0.1.0.tar.gz", "has_sig": false, "md5_digest": "bfa9520e8701656f03ae6fe5ec1404c5", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 2561, "upload_time": "2019-06-09T09:28:13", "url": "https://files.pythonhosted.org/packages/10/b6/ed74ff6a769c4f0e0ac1f7bb9b2231ba60f25867cbffad9759919e18a9c0/predictiveness-curve-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "3d707b42fa1028a18644eeef4a7769cf", "sha256": "e18e77b794af2a589d5479f8102218a828a90e0cc82f0d28851f98ddabd6dc5e" }, "downloads": -1, "filename": "predictiveness-curve-0.2.0.tar.gz", "has_sig": false, "md5_digest": "3d707b42fa1028a18644eeef4a7769cf", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 1825, "upload_time": "2019-06-28T13:10:44", "url": "https://files.pythonhosted.org/packages/51/4c/0ff032d811b3f7ad51f3cfbbda26d4325b8e8c3d604d333d957d6209250b/predictiveness-curve-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "da8869ef1ab1559c1f67e55a2a18415f", "sha256": "137c37bf5747403d76012483b3a661cbc9216f756a7233fb8a2521f814c3dbaa" }, "downloads": -1, "filename": "predictiveness-curve-0.2.1.tar.gz", "has_sig": false, "md5_digest": "da8869ef1ab1559c1f67e55a2a18415f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 1831, "upload_time": "2019-06-28T13:33:28", "url": "https://files.pythonhosted.org/packages/34/28/6613bdf9a81ebfac3079cbe32a7edcdeacff9cba9eae409af62a2dd4a473/predictiveness-curve-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "2fb27b8f3f30098e866fe5506e1e437c", "sha256": "077b7b7ad6fab14eec3a629009bfc46893aff2b3d9d64c76a2a501191f568d19" }, "downloads": -1, "filename": "predictiveness-curve-0.2.2.tar.gz", "has_sig": false, "md5_digest": "2fb27b8f3f30098e866fe5506e1e437c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4847, "upload_time": "2019-07-19T13:29:38", "url": "https://files.pythonhosted.org/packages/61/d5/f986e54a09f18e693c94ba7c719e2783ea41d90d6056089cecc46067649c/predictiveness-curve-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2fb27b8f3f30098e866fe5506e1e437c", "sha256": "077b7b7ad6fab14eec3a629009bfc46893aff2b3d9d64c76a2a501191f568d19" }, "downloads": -1, "filename": "predictiveness-curve-0.2.2.tar.gz", "has_sig": false, "md5_digest": "2fb27b8f3f30098e866fe5506e1e437c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4847, "upload_time": "2019-07-19T13:29:38", "url": "https://files.pythonhosted.org/packages/61/d5/f986e54a09f18e693c94ba7c719e2783ea41d90d6056089cecc46067649c/predictiveness-curve-0.2.2.tar.gz" } ] }