Git Product home page Git Product logo

Comments (4)

erdogant avatar erdogant commented on August 26, 2024

In order to help, you need to give a code example what you do and where it takes to much time.

from distfit.

valentynbez avatar valentynbez commented on August 26, 2024

I rechecked if that was a problem with my machine, but it doesn't look so.

import numpy
from distfit import distfit
from datetime import datetime 

dist = distfit(todf=True, method='discrete')
dist.fit_transform(np.random.binomial(1, 0.48, 250))

start_time = datetime.now() 
dist.plot()
# Next jupyter cell
print('Time elapsed (hh:mm:ss.ms) {}'.format(datetime.now() - start_time))

Out: Time elapsed (hh:mm:ss.ms) 0:02:50.604459

Python implementation: CPython
Python version : 3.9.2
IPython version : 7.22.0
numpy : 1.19.2

Compiler : MSC v.1916 64 bit (AMD64)
OS : Windows
Release : 10
Machine : AMD64
Processor : Intel64 Family 6 Model 142 Stepping 12, GenuineIntel
CPU cores : 8
Architecture: 64bit

from distfit.

valentynbez avatar valentynbez commented on August 26, 2024

Okay, I guess it was problem with my machine after all, restarting kernel reduced these times. Sorry.
Great library!

from distfit.

erdogant avatar erdogant commented on August 26, 2024

Great! Well you can speedup the proces by setting the parameter todf=False. Pandas is really a bottleneck. The results are also stored in a dict for further usage!

from distfit.

Related Issues (20)

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.