polars_online.Target¶
- class polars_online.Target[source]¶
Bases:
TypedDictA 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.columnis the column the model learns, read as it is.nameis 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