@@ -83,6 +83,28 @@ def persistent(
8383 prediction_metadata_fields : list [tuple [str , DataType ]] | None = None ,
8484 delete_if_exists : bool = False ,
8585 ):
86+ """
87+ Create a persistent file-based evaluator cache.
88+
89+ Parameters
90+ ----------
91+ path : str | Path
92+ Where to store the file-based cache.
93+ batch_size : int, default=10_000
94+ The target number of rows to buffer before writing to the cache. Defaults to 10_000.
95+ rows_per_file : int, default=100_000
96+ The target number of rows to store per cache file. Defaults to 100_000.
97+ compression : str, default="snappy"
98+ The compression methods used when writing cache files.
99+ datum_metadata_fields : list[tuple[str, DataType]], optional
100+ Optional datum metadata field definition.
101+ groundtruth_metadata_fields : list[tuple[str, DataType]], optional
102+ Optional ground truth annotation metadata field definition.
103+ prediction_metadata_fields : list[tuple[str, DataType]], optional
104+ Optional prediction metadata field definition.
105+ delete_if_exists : bool, default=False
106+ Option to delete any pre-exisiting cache at the given path.
107+ """
86108 path = Path (path )
87109 if delete_if_exists :
88110 cls .delete_at_path (path )
0 commit comments