ModelAPI

class verta.utils.ModelAPI(x=None, y=None)

A file-like and partially dict-like object representing a Verta model API.

Parameters:
  • x (list, pd.DataFrame, or pd.Series of {None, bool, int, float, str, dict, list}) – A sequence of inputs for the model this API describes.

  • y (list, pd.DataFrame, or pd.Series of {None, bool, int, float, str, dict, list}) – A sequence of outputs for the model this API describes.

static from_file(f)

Reads and returns a ModelAPI from a file.

Parameters:

f (str or file-like) – Model API JSON filesystem path or file.

Returns:

ModelAPI

to_dict()

Returns a copy of this model API as a dictionary.

Returns:

dict