GithubHelp home page GithubHelp logo

arpitg91 / performancescorecard Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 5.0 10 KB

Get performance metrics and graphs of a scorecard

Python 100.00%
auc roc ks lift-chart cumulative-gains-chart precision-recall-chart decile-analysis confusion-matrix kappa histogram

performancescorecard's Introduction

PerformanceScoreCard

Python script to automate the performance of scorecard. The script creates the charts for the following charts and profiles:

  • ROC, AUC, KS, Score@KS
  • Cumulative Gains Chart
  • Precision Recall Chart
  • Deciles Profile
  • Confusion Matrix
  • Histogram of classes
  • Quadratic weighted kappa
  • Linear weighted kappa
  • Kappa
  • Mean quadratic weighted kappa
  • Weighted mean quadratic weighted kappa

Functions

The fuctions can be called from another python script to get individual performances.

get_roc(df,score,target,title,plot=1)

get_cum_gains(df,score,target,title)

get_precision_recall(df,score,target,title)

get_deciles_analysis(df,score,target)

confusion_matrix(rater_a, rater_b, min_rating=None, max_rating=None)

histogram(ratings, min_rating=None, max_rating=None)

quadratic_weighted_kappa(rater_a, rater_b, min_rating=None, max_rating=None)

linear_weighted_kappa(rater_a, rater_b, min_rating=None, max_rating=None)

kappa(rater_a, rater_b, min_rating=None, max_rating=None)

mean_quadratic_weighted_kappa(kappas, weights=None)

weighted_mean_quadratic_weighted_kappa(solution, submission)

performancescorecard's People

Contributors

arpitg91 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.