estimator_attributes_to_file¶
- tsml_eval.utils.experiments.estimator_attributes_to_file(estimator, dir_path, estimator_name=None, max_depth=inf, max_list_shape=inf)[source]¶
Write the attributes of an estimator to file(s).
Write the attributes of an estimator to file at a given directory. The function will recursively write the attributes of any estimators or non-string sequences containing estimators found in the attributes of the input estimator to spearate files.
- Parameters:
- estimatorestimator instance
The estimator to write the attributes of.
- dir_pathstr
The directory to write the attribute files to.
- estimator_namestr or None, default=None
The name of the estimator. If None, the name of the estimator class will be used.
- max_depthint, default=np.inf
The maximum depth to go when recursively writing attributes of estimators.
- max_list_shapeint, default=np.inf
The maximum shape of a list to write when recursively writing attributes of contained estimators. i.e. for 0, no estimators contained in lists will be written, for 1, only estimators contained in 1-dimensional lists or the top level of a list will be written.