Giter Site home page Giter Site logo

distribution-checker's Introduction

Distribution Checker

Python Distribution Checker for datas using Scipy package

Installation

pip install Distribution_Checker

Usage

from distribution_checker import Dist_Checker
import pandas as pd

# Load sample dataset
data = pd.read_csv('weight-height.csv')

# verbose=1 prints the log while fitting and verbose=0 doesn't
p = Dist_Checker(verbose=1)
p = p.fit(data)

# After fitting, you can get distribution sorted by Sum of Squered Error that fit your data, so the first distribution is the distribution that is closer to your data
p.get_distributions()

# You can also plot distributions and your data to see this visualy. top=10 means that you want to plot top 10 distributions that match your data
p.plot(top=25)

Output plot from weight-height.csv DataFrame image

Distributions list

            alpha, anglit, arcsine, argus, beta, betaprime, bradford,
            burr, burr12, cauchy, chi, chi2, cosine, crystalball,
            dgamma, dweibull, erlang, expon, exponnorm, exponweib,
            exponpow, f, fatiguelife, fisk, foldcauchy, foldnorm,
            genlogistic, gennorm, genpareto,weibull_max, wrapcauchy,
            genexpon, genextreme, gausshyper, gamma, gengamma, genhalflogistic,
            geninvgauss, gilbrat, gompertz, gumbel_r, gumbel_l, halfcauchy,
            halflogistic, halfnorm, halfgennorm, hypsecant, invgamma, invgauss,
            invweibull, johnsonsb, johnsonsu, kappa4, kappa3, ksone, kstwo,
            kstwobign, laplace, levy, levy_l, logistic, loggamma,
            loglaplace, lognorm, loguniform, lomax, maxwell, mielke, moyal,
            nakagami, norm, norminvgauss, pareto, pearson3,
            powerlaw, powerlognorm, powernorm, rdist, rayleigh, rice, recipinvgauss,
            semicircular, skewnorm, t, trapz, triang, truncexpon, truncnorm,
            tukeylambda, uniform, vonmises, vonmises_line, wald, weibull_min

Package page in pypi.org

If any problem was founded, feel free to inform me :)

distribution-checker's People

Contributors

amirhr098 avatar

Stargazers

 avatar

Watchers

 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.