rheon.Target

class rheon.Target[source]

Bases: TypedDict

A target column under a name of its own, written as a table.

It is what rheon.target() returns, and a [[specs]] target table in the command line’s TOML. column is the column the model learns, read as it is. name is the name its output fields carry, column’s when it is not given.

Examples

price: rp.Target = {"column": "y", "name": "price"}   # as rp.target("y", name="price")
print(price == rp.target("y", name="price"))
True