better way to initialize LinearRegression
with params
#464
Labels
enhancement
New feature or request
LinearRegression
with params
#464
Creating a new
LinearRegression
instance is a bit awkward as theparams
have to be assigned in a separate call.We should enable a better approach. I see 3 options. I probably have a slight preference for option 2, but no strong opinion.
Option 1
Allow passing
params
to__init__
:Option 2
Create a classmethod
See
mesmer/mesmer/stats/_linear_regression.py
Lines 157 to 158 in ea98d40
Option 3
Split the class into methods...
The text was updated successfully, but these errors were encountered: