Log Dataset, Hyperparams & Metrics

jovian.log_dataset(data_dict=None, verbose=True, **data_args)[source]

Record dataset details for the current experiment

Parameters
  • data_dict (dict, optional) – A python dict to be recorded as dataset.

  • verbose (bool, optional) – By default it prints the acknowledgement, you can remove this by setting the argument to False.

  • **data_args (optional) – Instead of passing a dictionary, you can also pass each individual key-value pair as a argument (see example below)

Example
import jovian

path = 'data/mnist'
description = '28x28 images of handwritten digits (in grayscale)'

jovian.log_dataset(path=path, description=description)
# or
jovian.log_dataset({ 'path': path, 'description': description })
jovian.log_hyperparams(data_dict=None, verbose=True, **data_args)[source]

Record hyperparameters for the current experiment

Parameters
  • data_dict (dict, optional) – A python dict to be recorded as hyperparmeters.

  • verbose (bool, optional) – By default it prints the acknowledgement, you can remove this by setting the argument to False.

  • **data_args (optional) – Instead of passing a dictionary, you can also pass each individual key-value pair as a argument (see example below)

Example
import jovian
jovian.log_hyperparams(arch='cnn', lr=0.001)
# or
jovian.log_hyperparams({ 'arch': 'cnn', 'lr': 0.001 })
jovian.log_metrics(data_dict=None, verbose=True, **data_args)[source]

Record metrics for the current experiment

Parameters
  • data_dict (dict, optional) – A python dict to be recorded as metrics.

  • verbose (bool, optional) – By default it prints the acknowledgement, you can remove this by setting the argument to False.

  • **data_args (any, optional) – Instead of passing a dictionary, you can also pass each individual key-value pair as a argument (see example below)

Example
import jovian
jovian.log_metrics(epochs=1, train_loss=0.5,
                   val_loss=0.3, val_accuracy=0.9)
# or
jovian.log_metrics({ 'epochs': 1, 'train_loss': 0.5 })
jovian.reset(*record_types)[source]

Reset the tracked hyperparameters, metrics or dataset (for a fresh experiment)

Parameters

*record_types (strings, optional) – By default, resets all type of records. To reset specific type of records, pass arguments metrics, hyperparams, dataset

Example
import jovian
jovian.reset('hyperparams', 'metrics')