8000 Merge pull request #5852 from nickyj88/master · scikit-learn/scikit-learn@2f76310 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2f76310

Browse files
committed
Merge pull request #5852 from nickyj88/master
[MRG + 1] remove string to array comparison in RandomizedLasso
2 parents 58c386c + 998848a commit 2f76310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/linear_model/randomized_l1.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def __init__(self, alpha='aic', scaling=.5, sample_fraction=.75,
330330
def _make_estimator_and_params(self, X, y):
331331
assert self.precompute in (True, False, None, 'auto')
332332
alpha = self.alpha
333-
if alpha in ('aic', 'bic'):
333+
if isinstance(alpha, six.string_types) and alpha in ('aic', 'bic'):
334334
model = LassoLarsIC(precompute=self.precompute,
335335
criterion=self.alpha,
336336
max_iter=self.max_iter,

0 commit comments

Comments
 (0)
0