Skip to content

Simple API to run load and evaluate datasets based on tasks and input data #1327

Open
@yoavkatz

Description

We need a simple way for a user to load a Unitxt dataset based on existing files or data structures.
This is required for ilab (@Roni-Friedman ) and also for other use cases.

I thought that maybe a dataframe is a common interface that everyone knows.

load_dataset(task="tasks.classification.multi_class", test_set = pd.from_csv("test.csv"))
load_dataset(task="tasks.classification.multi_class", test_set = pd.from_csv("test.csv"), train_set=pd.from_csv("train.csv" )

And

evaluate(predications, task="tasks.classification.multi_class", test_set = pd.from_csv("test.csv"))

The assumption is that the fields of input dataframe are the same as the task, and a clear error message will be presented if not.

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions