Skip to content

Commit

Permalink
expose pygam model penalties via spline_kwargs (#1132)
Browse files Browse the repository at this point in the history
  • Loading branch information
bfurtwa authored Oct 24, 2023
1 parent c3ced63 commit f3a6a0e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cellrank/models/_pygam_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ def __init__(
0,
spline_order=spline_order,
n_splines=n_knots,
penalties=["derivative", "l2"],
**_filter_kwargs(s, **{**{"lam": 3}, **spline_kwargs}),
**_filter_kwargs(s, **{**{"lam": 3, "penalties": ["derivative", "l2"]}, **spline_kwargs}),
)
link = GamLinkFunction(link)
distribution = GamDistribution(distribution)
Expand Down

0 comments on commit f3a6a0e

Please sign in to comment.