GithubHelp home page GithubHelp logo

Comments (3)

PABannier avatar PABannier commented on June 1, 2024 3

Screen Shot 2022-07-27 at 11 11 05 AM

Difficult to say. Prefer to use -X importtime flags in Python interpreter for a better visualization of import times

from skglm.

Badr-MOUFAD avatar Badr-MOUFAD commented on June 1, 2024 1

We shall close this @mathurinm?
our slow import time relative to scikit-learn is due to the fact that scikit-learn is being imported when importing skglm.

from skglm.

Badr-MOUFAD avatar Badr-MOUFAD commented on June 1, 2024

I think it has to do more with importing our dependencies, namely, numba, sklearn, scipy among others.

Through the example below I managed to reduce the import time to 0.15 on my local machine.

import time

start = time.time()
import scipy
end = time.time()
print(f"time to import scipy: {end - start}")

start = time.time()
import sklearn
end = time.time()
print(f"time to import scikit learn: {end - start}")

start = time.time()
import numba
end = time.time()
print(f"time to import numba: {end - start}")

start = time.time()
import skglm
end = time.time()
print(f"time to import skglm: {end - start}")

Ouput

time to import scipy: 0.16607046127319336
time to import scikit learn: 0.4579463005065918
time to import numba: 0.2870755195617676
time to import skglm: 0.14461469650268555

from skglm.

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.