read_audit#

scikitplot.agent.read_audit(path)[source]#

Read a JSON Lines audit file.

Parameters:
pathstr or os.PathLike

A file written by JsonlAuditSink.

Returns:
list of dict
Raises:
ValueError

If a line is not a JSON object, naming the line.

Parameters:

path (str | PathLike[str])

Return type:

list[dict[str, Any]]