-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
good first issueGood for newcomersGood for newcomersreleasedIncluded in a releaseIncluded in a release
Description
Is your feature request related to a problem?
It's not possible to set the alpha parameter for regularization of elastic net regression.
Desired solution
- Add a new parameter
alpha: floatto the initializer ofsafeds.ml.regression.ElasticNetRegression - Raise a value error if
alpha< 0 - Warn if
alpha == 0-> Users should useLinearRegressioninstead - Pass it along to
alphaof the wrappedscikit-learnmodel in thefitmethod
Possible alternatives (optional)
No response
Screenshots (optional)
No response
Additional Context (optional)
- Use
warnings.warnto warn. - Use
with pytest.warnsto test that the warning is created.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomersreleasedIncluded in a releaseIncluded in a release
Type
Projects
Status
✔️ Done