model module

class model.Model(client, uuid)

Bases: object

static add(client, name=None, class_name=None, config=None, revision='latest', **kwargs)

Add a model

Args:

name: name of the model class_name: class name, defaults to config value config: config, defaults to config value or ‘latest’ revision: model revision (defaults to ‘latest’) **kwargs: additional parameters to override the config

Returns:

new Model

property config

Model config

delete(force=False)

Delete this model Args:

force (bool): force deletion of dependent resources (default False)

property info

Model verbose info

is_compatible_with(dataset)

CLient-side check for compatibility of the model with a dataset. Checks that the dataset contains the required data for the model, and that number of (input/output) fields (resp scalars) are correct.

Args:

dataset: a Dataset object, to test compatibility with

Returns:

bool, indicating compatibility