PTMCoef.new_ridge()#
- classmethod PTMCoef.new_ridge(knots, scale, inference=None, name='', role='transformation_coef')[source]#
Create a ridge-penalized coefficient set.
- Parameters:
knots (
Any) – Knot vector for the spline basis. This method is compatible with knotsPTMKnots, but not withOnionKnots.scale (
Var) – Scale variable or node used for the coefficient prior.inference (
Any) – Optional inference specification for the latent parameter, aliesel.goose.MCMCSpecobject. (default:None)name (
str) – Optional base name for created variables. (default:'')role (
str) – Role assigned to the latent coefficient variable. (default:'transformation_coef')
- Return type:
Self- Returns:
PTMCoef – Configured coefficient with ridge penalty.