Skip to content

Commit

Permalink
Update _lasso.py - - use pyximport
Browse files Browse the repository at this point in the history
  • Loading branch information
thierrymoudiki authored Apr 23, 2024
1 parent 83c27eb commit 13f224e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions mlsauce/lasso/_lasso.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
from sklearn.base import BaseEstimator
from sklearn.base import RegressorMixin
from numpy.linalg import inv
try:
from . import _lassoc as mo
except ImportError:
import pyximport; pyximport.install()
import _lassoc as mo

import pyximport; pyximport.install()
import _lassoc as mo

from ..utils import get_beta

if platform.system() in ("Linux", "Darwin"):
Expand Down

0 comments on commit 13f224e

Please sign in to comment.