ModelOptions

class mouffet.options.model_options.ModelOptions(opts)[source]
get_intermediate_path(epoch, version=None, as_string=True)[source]

Get the path where intermediate weights for a specific epoch are saved

Parameters:
  • epoch (int) – The epoch for which the weights are saved

  • version (int, optional) – An optional version number to provide. If None, the current version number for saving will be used. If version is provided and positive, that number will be used. If it is negative, the previous version number will be used (whatever the value provided). Defaults to None.

  • as_string (bool, optional) – Returns the result as a string instead of a pathlib.Path. Defaults to True.

Returns:

[description]

Return type:

[type]