项目作者: amirhessam88

项目描述 :
Regression Error Characteristic (REC) Curves in Python
高级语言: Python
项目地址: git://github.com/amirhessam88/Regression-Error-Characteristic-Curve.git
创建时间: 2017-11-10T03:47:16Z
项目社区:https://github.com/amirhessam88/Regression-Error-Characteristic-Curve

开源协议:Apache License 2.0

下载


build
License
Forks
Stars


Regression Error Characteristic Curve in Python

Regression Error Characteristic (REC) curves can be used to visualize
the performance of the regressor models. REC
illustrates the absolute deviation tolerance versus the fraction
of the exemplars predicted correctly within the tolerance interval.
The resulting curve estimates the cumulative distribution
function of the error. The area over the REC curve (AOC),
which can be calculated via the area under the REC curve
(AOC = 1 - AUC) is a biased estimate of the expected
error. Furthermore, the coefficient of determination (R^2) can also
be calculated with respect to the AOC Reference 1. Likewise the
ROC curve, the shape of the REC curve can also be used
as a guidance for the users to reveal additional information
about the data modeling. The REC curve was implemented
in Python and the details of the error metrics and scaling of
the residuals are also available Reference 2.

Quick Start

Here is an exmple of using REC. To learn more about the details, you can check Examples:

  1. # plot REC curve
  2. from rec import RegressionErrorCharacteristic
  3. r = RegressionErrorCharacteristic(y_true, y_pred)
  4. r.plot()

rec

Better Option: SlickML

This algorithm is also implemented in more details in SlickML library.
For more info, please check out SlickML GitHub and SlickML API Docs.

  1. pip install slickml

Here is an example using SlickML to quickly visualize the regression metrics:

  1. # plot regression metrics
  2. from slickml.metrics import RegressionMetrics
  3. r = RegressionMetrics(y_true, y_pred)
  4. r.plot()

regmetrics

Contributing

Pull requests are more than welcome!

Citing REC

If you use REC in academic work, please consider citing my SlickML library.

Bibtex Entry:

  1. @software{slickml2020,
  2. title={SlickML: Slick Machine Learning in Python},
  3. author={Tahmassebi, Amirhessam and Smith, Trace},
  4. url={https://github.com/slickml/slick-ml},
  5. version={0.2.0},
  6. year={2021},
  7. }
  8. @article{tahmassebi2021slickml,
  9. title={Slickml: Slick machine learning in python},
  10. author={Tahmassebi, Amirhessam and Smith, Trace},
  11. journal={URL available at: https://github. com/slickml/slick-ml},
  12. year={2021}
  13. }