Skip to content

ksachs/invenio-matcher-benchmark

 
 

Repository files navigation

Invenio-matcher benchmark

This repository contains test data and scripts in order to evaluate the accuracy of https://github.com/inveniosoftware-contrib/invenio-matcher with INSPIRE data.

How to run the benchmark

First, make sure your system has installed docker and docker-compose.

Clone this repository:

$ git clone https://github.com/inspirehep/invenio-matcher-benchmark.git
$ cd invenio-matcher-benchmark

Get the latest version of the Docker images:

$ docker-compose pull

Export variable to store Docker persistent data:

$ export DOCKER_DATA=~/inspirehep_docker_data/

Install all dependencies from INSPIRE (this can take ~10 minutes):

$ docker-compose -f docker-compose.deps.yml run --rm pip

Start all the Docker containers:

$ docker-compose up -d

Run the benchmark (specify folder(s) to run after match.py):

$ docker-compose run --rm web python match.py publisher_updates --output

After running all the files present in the folder publisher_updates, a final output will be produced:

#### STATS ####

Total analyzed: 2258

True positives: 1928

False positives: 7

True negatives: 0

False negatives: 323

Duplicate exact match: 0

Precision: 0.996382428941

Recall: 0.85650821857

F1 Score: 0.921165790731

About

Test data for invenio-matcher

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 84.0%
  • Shell 16.0%