StrctTensorProdTerm.terms#
- property StrctTensorProdTerm.terms: dict[str, StrctTerm | StrctInteractionTerm | IndexingTerm | RITerm | MRFTerm]#
Dictionary of terms contained in this tensor product.
Examples
>>> x = jnp.linspace(0.0, 1.0, 4) >>> y = jnp.linspace(1.0, 2.0, 4) >>> bx = Basis( ... jnp.column_stack([jnp.ones_like(x), x]), xname="x", penalty=jnp.eye(2) ... ) >>> by = Basis( ... jnp.column_stack([jnp.ones_like(y), y]), xname="y", penalty=jnp.eye(2) ... ) >>> term = StrctTensorProdTerm( ... StrctTerm.f(bx, scale=1.0), ... StrctTerm.f(by, scale=2.0), ... ) >>> sorted(term.terms) ['f(x)', 'f(y)', 'tx(x,y)']