rheon.OutputColumnNotFoundError

class rheon.OutputColumnNotFoundError[source]

Bases: ColumnNotFoundError

The error raised when a spec’s output column is not in the frame a scoring function reads.

It is a ColumnNotFoundError, so ValueError catches it, and, from rheon.polars, Polars’ own ColumnNotFoundError, as they catch any other missing column.

Examples

This code reads df from Example data:

try:
    rp.eval.metrics(df, "ridge")   # a frame without the bank's output
except rheon.OutputColumnNotFoundError as e:
    print(type(e).__name__)
OutputColumnNotFoundError

See also