Comments (3)
Hello @s-banach ,
Thanks a lot for interest! I always add
export MKL_NUM_THREADS=1
export NUMEXPR_NUM_THREADS=1
export OMP_NUM_THREADS=1
in my .bashrc file. Is this fixing your problem?
from skglm.
Thanks for the answer!
For my own use, I googled "OMP_NUM_THREADS" and found this post: https://stackoverflow.com/a/53224849
It basically says "you can configure the number of cores before importing numpy
, after that you can't do anything".
I would like to run a linear model inside a package I'm writing, and be able to control the number of cores used regardless of what else the user has imported or how they have configured their environment.
I don't suppose there's any way I can do that, other than telling the end user "Configure your environment variables correctly before you run the package." :(
from skglm.
I just discovered threadpoolctl, so that should help somewhat. 😄
from skglm.
Related Issues (20)
- FEAT add sparse_coef_ property for ElasticNet and Lasso
- FEAT - Add alpha_max methods to estimators HOT 2
- DOC - Update the derivation equations of the positive Group Lasso penalty
- FEAT - Strata in COX model HOT 3
- FEAT - Support patsy built-in function for formula variable HOT 3
- FEAT - Add quadratic datafit with no access to the target HOT 5
- Poisson regression problems in skglm HOT 12
- FEAT - Add score to GeneralizedLinearEstimator based on its datafit
- FEAT - Make GeneralizedLinearEstimator compatible with GridSearchCV
- BUG ProxNewton with `ws_strategy="fixpoint"` is 100 times slower than with subdiff_dist strategy HOT 5
- TST - enable ``boundscheck`` in numba jit-compiled function in unittests
- BUG ProxNewton solver gets stuck with L0_5 penalty HOT 1
- FEAT add compute_alpha_max function
- DOC - Add tutorial for Group Estimators HOT 2
- Add datafit with log det datafit HOT 3
- Help with custom DataFit for Tweedie Regression HOT 6
- TST add sparse group lasso testing against GSROPTIM HOT 1
- FEAT - Add test against Gap safe for the sparse group Lasso HOT 1
- FEAT - Double quadratic datafit (quad-quad) HOT 5
- Pinball-loss: Unable to fit? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skglm.