IndexingTerm.nclusters

IndexingTerm.nclusters#

property IndexingTerm.nclusters: int#

Number of unique clusters in this term (equals the number of coefficients).

Examples

>>> basis = Basis(jnp.array([0, 1, 0, 1]), xname="group", penalty=None)
>>> IndexingTerm(basis, penalty=jnp.eye(2), scale=1.0).nclusters
2