from_parquet#
- classmethod Evaluator.from_parquet(input_dir: Path | str) Self[source]#
Class method to construct an instance of this class or a subclass. the parquet folder must have been created with the method
to_parquet(see above)- Parameters:
input_dir – Path to directory containing the metadata.yaml file along with the different parquet files
- Raises:
ValueError – Raised when the object name contained in
input_dict['__name__']is not the same as the name of the class this method is called from. For example, you can’t callEvaluator.from_parquet()with a folder created by aDetectionEvaluatorobject.- Returns:
New object of the same subclass as the method is caled from, containing data loaded from the parquet files in the input directory