polars_online.Target

class polars_online.Target[source]

Bases: TypedDict

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

It is what polars_online.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: po.Target = {"column": "y", "name": "price"}   # as po.target("y", name="price")
print(price == po.target("y", name="price"))
True