Skip to content

Commit

Permalink
add compatibility with older np versions
Browse files Browse the repository at this point in the history
  • Loading branch information
csinva committed Aug 16, 2024
1 parent c9bb163 commit 7581f43
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion imodels/util/score.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@

import pandas as pd
import numpy as np
from sklearn.utils._mask import indices_to_mask
try:
from sklearn.utils._mask import indices_to_mask
except:
from sklearn.utils import indices_to_mask
from sklearn.linear_model import Lasso, LogisticRegression
from sklearn.linear_model._coordinate_descent import _alpha_grid
from sklearn.model_selection import cross_val_score
Expand Down

0 comments on commit 7581f43

Please sign in to comment.