Skip to content

Commit

Permalink
Update _stump_classifier.py - - use pyximport
Browse files Browse the repository at this point in the history
  • Loading branch information
thierrymoudiki authored Apr 23, 2024
1 parent 8125c56 commit 6eb838b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mlsauce/stump/_stump_classifier.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import numpy as np
from sklearn.base import BaseEstimator
from sklearn.base import ClassifierMixin
from . import _stumpc as stumpc
try:
from . import _stumpc as stumpc
except ImportError:
import pyximport; pyximport.install()
import _stumpc as stumpc


class StumpClassifier(BaseEstimator, ClassifierMixin):
Expand Down

0 comments on commit 6eb838b

Please sign in to comment.