Skip to content

Commit

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

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

from ..utils import get_beta

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

0 comments on commit 8a7e17a

Please sign in to comment.