rheon.OutputColumnNotFoundError¶
- class rheon.OutputColumnNotFoundError[source]¶
Bases:
ColumnNotFoundErrorThe error raised when a spec’s output column is not in the frame a scoring function reads.
It is a
ColumnNotFoundError, soValueErrorcatches it, and, fromrheon.polars, Polars’ ownColumnNotFoundError, as they catch any other missing column.Examples
This code reads
dffrom 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
rheon.polars.eval.metrics()and the other scoring functions ofrheon.polars.eval, which raise it.