Skip to content

Commit

Permalink
expose pygam model penalties via spline_kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
bfurtwa committed Oct 20, 2023
1 parent c3ced63 commit b8038a7
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 b8038a7

Please sign in to comment.