Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions benchmark/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Benchmarking DataTracer
This directory contains code for benchmarking the performance of `DataTracer`
on user-supplied datasets. The datasets for benchmarking can be found in the
`s3://tracer-data` bucket.

<p align="center">
<img src="benchmark.gif"/>
</p>

Each benchmark - `primary`, `foreign`, and `column` - can be executed by
running the following command

> datatracer-benchmark <BENCHMARK_TYPE> --csv /path/to/results.csv

which will (optionally) generate a CSV file with the benchmark results.

## Primary Key
Primary key detection is evaluated by:

- Accuracy. The percent of tables where the primary key was correctly identified.
- Inference time. The amount of time to infer the primary key for all tables.

We will use leave-one-out validation and report the test performance on each dataset
in the S3 bucket.

## Foreign Key
Foreign key detection is evaluated by:

- F1.
- Recall.
- Precision.
- Inference time.

Note that this assumes that the foreign key primitive returns a set of foreign keys;
in other words, for models that return a score for each candidate foreign key, this
assumes that thresholding is done.

We will use leave-one-out validation and report the test performance on each dataset
in the S3 bucket.

## Column Map
Column map detection is evaluated by:

- F1.
- Recall.
- Precision.
- Inference time.

Note that this assumes that the column map primitive returns a set of columns that it
thinks contributed to the target derived column. Since each dataset can have multiple
derived columns, this will report a F1/recall/precision/time tuple for each derived
column in the dataset.

We will use leave-one-out validation and report the test performance on each dataset
in the S3 bucket.
Binary file added benchmark/benchmark.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading