_decode_hyperopt

getml.hyperopt._decode_hyperopt(rawStr)

A custom decoder function for RandomSearch, LatinHypercubeSearch, and GaussianHyperparameterSearch.

Parameters

rawStr (str) – string containing a valid JSON message.

Raises
  • KeyError – If not all required fields are present in rawStr to reconstruct a hyperparameter optimization search.

  • ValueError – If not all keys in rawStr have a trailing underscore.

  • TypeError – If rawStr is not of type dict.

Returns

Union[RandomSearch,:class:~getml.hyperopt.LatinHypercubeSearch,:class:~getml.hyperopt.GaussianHyperparameterSearch]