Loading Data for Evals
Loading data for Evals
For this example, we will consider the Loader
class. Other loaders also work similarly.
You can load data for evals from a JSON, Python Dictionary, or directly from your logged inferences on Athina.
Loading from a JSON file
That’s all you need to do to load your data!
To view the imported dataset as a pandas DataFrame:
Loading from a Python Dictionary
Loading logged inferences from Athina
Instead of generating inferences, you can just load inferences that you have already logged to Athina.
You can optionally apply filters to load a different subset of inferences from Athina
Output Format
The output format will be different for different Loaders.
The Loader
will return a List[DataPoint]
type after you call the load function of choice.