GithubHelp home page GithubHelp logo

kmedian / korr Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 3.0 1.82 MB

collection of utility functions for correlation analysis

License: Apache License 2.0

Python 100.00%
python correlation pearson spearman kendall eda matthews confusion-matrix correlation-analysis correlation-pairs

korr's People

Contributors

ulf1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

korr's Issues

add gitpod badge

[![Gitpod - Code Now](https://img.shields.io/badge/Gitpod-code%20now-blue.svg?longCache=true)](https://gitpod.io#https://github.com/kmedian/korr)

matplotlib changes causes warning

corrgram.py:40: MatplotlibDeprecationWarning: 
The set_clim function was deprecated in Matplotlib 3.1 and will be removed in 3.3. Use ScalarMappable.set_clim instead.
  cbar.set_clim(vmin=-1, vmax=+1)

autocorrect option for mcc

it's not really a bug but might cause trouble. If all predictions are TRUE or all are FALSE then mcc will return NaN. It's kind of the main advantage of using Matthews correlations that the program would crash in case a predictive model generates only FALSE or TRUE.

ToDo: Add an autocorrect option that would impute 0

def mcc(x, axis=0, autocorrect=False):
...
    cm = confusion(x[:, i], x[:, j])
    r[i, j] = confusion_to_mcc(cm)
    if autocorrect: r[i, j] = impute_zero(r[i, j])
    ...

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.