StrctTerm.replace_scale()#
- StrctTerm.replace_scale(new, disallow_factorization=True)[source]#
Replace the scale variable and update the coefficient prior.
- Parameters:
- Return type:
Examples
>>> x = jnp.linspace(0.0, 1.0, 4) >>> basis = Basis(jnp.column_stack([jnp.ones_like(x), x]), xname="x") >>> term = StrctTerm(basis, penalty=None, scale=1.0) >>> term.replace_scale(lsl.Var.new_value(2.0)) >>> float(term.scale.value) 2.0