Modelcontext

Properties


Methods

get_infos

get_infos()

Description

Retrieve some infos about this context

Examples

get_infos()

Returns

A (dict) with some infos


retrieve_experiment

retrieve_experiment()

Description


get_experiment

get_experiment()

Description

Retrieve source experiment of this context

It will raise an exception if this context has no experiment source

Examples

exp = model_context.get_experiment()

Returns

An Experiment object


get_dataset_version

get_dataset_version(
   name: str
)

Description

Retrieve dataset used to train or evaluate the model, by the name given when attached experiment and dataset.

It will raise an exception if this context has no dataset attached with given name.

Examples

dataset_version = model_context.retrieve_dataset("train")

Returns

A DatasetVersion object


retrieve_datasets

retrieve_datasets()

Description

Retrieve datasets used to train and evaluate (or else) the model

It will raise an exception if this context has no data

Examples

dataset_versions = model_context.retrieve_datasets()

Returns

A list of DatasetVersion objects