Skip to content

ProjectedAlphabet

from tensorsig.offset_coded_signatures.quotients import ProjectedAlphabet

Channel-major alphabet (channel, projected_code_letter).

temporal_degrees is deliberately optional: arbitrary learned or dense projections do not automatically carry Newton-degree semantics. Use :meth:newton for an ordered Newton/Pascal code, or declare other additive degrees explicitly when the projection is homogeneous for that grading.

width property

width: int

Number of projected letters.

newton classmethod

newton(code_dim: int, in_channels: int) -> 'ProjectedAlphabet'

Return the alphabet grading for ordered Newton/Pascal columns.

Source code in src/tensorsig/offset_coded_signatures/_lie_quotients/rules.py
@classmethod
def newton(cls, code_dim: int, in_channels: int) -> "ProjectedAlphabet":
    """Return the alphabet grading for ordered Newton/Pascal columns."""
    return cls(
        code_dim=code_dim,
        in_channels=in_channels,
        temporal_degrees=tuple(range(code_dim)),
    )