Ohjeah / sparsereg

a collection of modern sparse (regularized) linear regression algorithms.
MIT License
63 stars 21 forks source link

Fix linear model warning #24

Closed briandesilva closed 4 years ago

briandesilva commented 4 years ago

Changed BaseOptimizer class so that it inherits from sklearn.linear_model.LinearRegression instead of sklearn.linear_model.base.LinearModel. sklearn was throwing a warning that we won't be able to import from sklearn.linear_model.base in the future, i.e.

  /home2/bdesilva/.local/lib/python3.6/site-packages/sklearn/utils/deprecation.py:144: FutureWarning: The sklearn.linear_model.base module is  deprecated in version 0.22 and will be removed in version 0.24. The corresponding classes / functions should instead be imported from sklearn.linear_model. Anything that cannot be imported from sklearn.linear_model is now part of the private API.
    warnings.warn(message, FutureWarning)

I also

briandesilva commented 4 years ago

Sorry, this pull request was meant to be submitted elsewhere.