InputTransform#

class gpjax.xarray.InputTransform[source]#

Bases: ABC

A map from named input columns to the named columns of X.

A transform receives the columns in order, keyed by name, and returns a new ordered mapping. from_xarray() calls fit() on the training columns, and the GridSpec then applies the fitted transform to the training data and to every new grid, so both see the same encoding. Datetime inputs are already float days since their time origin.

fit(columns)[source]#

Return this transform fitted to the training columns.

The default returns the transform unchanged; override it when the transform learns a state from the training data.

Parameters:

columns (dict[str, ndarray])

Return type:

InputTransform