skdatasets.utils.estimator.json2estimator

skdatasets.utils.estimator.json2estimator(estimator, **kwargs)[source]

Instantiate a Scikit-learn estimator from a json file.

Instantiate a Scikit-learn estimator from a json file passing its path as argument.

Parameters:
  • estimator (str) – Path of the json file containing the estimator specification.

  • **kwargs (dict) – Dictionary of optional keyword arguments.

Returns:

estimator – Instantiated Scikit-learn estimator.

Return type:

Estimator