dblalock/bolt

AttributeError: module 'sklearn.linear_model' has no attribute 'ridge'

joshua-doolan opened this issue · 1 comments

When learning the clusters for MithralEncoder, at this line I ran into the following issue:

est = linear_model.ridge.Ridge(fit_intercept=False, alpha=lamda)

AttributeError: module 'sklearn.linear_model' has no attribute 'ridge'

Upon inspection, it seems that perhaps modifying the line to replace .ridge.Ridge with either .Ridge or ._ridge.Ridge may fix the issue. Is it possible there is an sklearn version mismatch with my installation?

Fixed. Thanks for the bug report @joshua-doolan!