Exceptions
- exception substrafl.exceptions.ArgumentConflictError
Bases:
ValueErrorIncompatible value in the given arguments.
- exception substrafl.exceptions.CriterionReductionError
Bases:
ExceptionThe criterion reduction must be set to ‘mean’ to use the Newton-Raphson strategy.
- exception substrafl.exceptions.DampingFactorValueError
Bases:
ExceptionThe damping factor must be greater than 0 and less than or equal to 1
- exception substrafl.exceptions.DatasetSignatureError
Bases:
ExceptionThe __init__() function on the given torch Dataset must have data_from_opener and is_inference as parameters.
- exception substrafl.exceptions.DatasetTypeError
Bases:
ExceptionThe given torch Dataset should be a torch.utils.data.Dataset object and not an instance of it.
- exception substrafl.exceptions.DependencyCacheNotFoundError
Bases:
ExceptionNo cache directory found for the dependencies.
Bases:
ExceptionThe shared_states is empty. Ensure that the train method of the algorithm returns a StrategySharedState object.
- exception substrafl.exceptions.ExistingRegisteredMetricError
Bases:
ExceptionA metric with the same name is already registered.
- exception substrafl.exceptions.IncompatibleAlgoStrategyError
Bases:
ExceptionThis algo is not compatible with this strategy.
- exception substrafl.exceptions.IndexGeneratorSampleNoneError
Bases:
ExceptionTry to use the index generator without setting the number of samples.
- exception substrafl.exceptions.IndexGeneratorUpdateError
Bases:
ExceptionThe index generator has not been updated properly.
- exception substrafl.exceptions.InvalidDependenciesError
Bases:
ExceptionThe set of constraints given on dependencies cannot be solved or is otherwise invalid (wrong package name).
- exception substrafl.exceptions.InvalidMetricIdentifierError
Bases:
ExceptionA metric name or identifier cannot be a SubstraFL Outputidentifier.
- exception substrafl.exceptions.InvalidUserModuleError
Bases:
ExceptionThe local folder passed by the user as a dependency is not a valid Python module.
- exception substrafl.exceptions.KeyMetadataError
Bases:
Exceptionsubstrafl_version,substra_versionandsubstratools_versionkeys can’t be added to the experiment metadata.
- exception substrafl.exceptions.LenMetadataError
Bases:
ExceptionToo long additional metadata passed to the execute_experiment function to be shown on the Substra WebApp.
- exception substrafl.exceptions.LoadFileNotFoundError
Bases:
ExceptionThe given folder must contains the following files: function.tar.gz, metadata.json, the file entered in the
model_filekey of the dictionary.
- exception substrafl.exceptions.LoadLocalDependencyError
Bases:
ExceptionAll dependencies from the local input folder should be install by the user.
- exception substrafl.exceptions.LoadMetadataError
Bases:
ExceptionThe metadata.json file within the folder given as input must contain a
model_file
- exception substrafl.exceptions.MetricFunctionSignatureError
Bases:
ExceptionThe metric_function() function on the given torch Dataset must ONLY have data_from_opener and predictions as parameters.
- exception substrafl.exceptions.MetricFunctionTypeError
Bases:
ExceptionThe metric_function() must be of type function.
- exception substrafl.exceptions.MultipleTaskError
Bases:
ExceptionThe experiment from which to get the algo files can’t have multiple task tagged with the given round_idx or rank_idx hosted on the same organization.
- exception substrafl.exceptions.NegativeHessianMatrixError
Bases:
ExceptionHessian matrix is not positive semi-definite, the problem is not convex
- exception substrafl.exceptions.NumUpdatesValueError
Bases:
ExceptionThe num_update has been set to an non-authorize value.
- exception substrafl.exceptions.OptimizerValueError
Bases:
ExceptionThe optimizer value is incompatible with the _local_train function.
- exception substrafl.exceptions.ScaffoldLearningRateError
Bases:
ExceptionWhen using the
TorchScaffoldAlgo, a learning rate must be passed to the optimizer.
Bases:
ExceptionShared states error
- exception substrafl.exceptions.SubstraToolsDeprecationWarning
Bases:
DeprecationWarningThe substratools version used is deprecated.
- exception substrafl.exceptions.TaskNotFoundError
Bases:
ExceptionThe provided compute plan must contain a task:
hosted by the worker associated to the given client
tagged with the given round_idx or rank_idx
- exception substrafl.exceptions.TorchScaffoldAlgoParametersUpdateError
Bases:
ExceptionWhen using
TorchScaffoldAlgo,_scaffold_parameters_update()method must be called once for each update within the_local_train()method.
- exception substrafl.exceptions.UnfinishedTaskError
Bases:
ExceptionThe task from which to get the algo files shall be in status
STATUS_DONE.
- exception substrafl.exceptions.UnsupportedClientBackendTypeError
Bases:
ExceptionThe given client backend type is not supported by the function.
- exception substrafl.exceptions.UnsupportedPythonVersionError
Bases:
ExceptionThe Python version used is not supported by Substra.