Skip to main content
QUICK REVIEW

[Paper Review] json2run: a tool for experiment design & analysis

Tommaso Urli|arXiv (Cornell University)|May 6, 2013
Scientific Computing and Data ManagementDecision Sciences1 references15 citations
TL;DR

json2run is a Python-based tool for automating experiment design, execution, and analysis in computational research, using a JSON-formatted parameter tree to define configurations and a MongoDB backend for result storage. It enables batch execution, parameter racing to optimize performance, and integrates with R for statistical analysis, significantly reducing manual overhead in algorithmic experimentation.

ABSTRACT

json2run is a tool to automate the running, storage and analysis of experiments. The main advantage of json2run is that it allows to describe a set of experiments concisely as a JSON-formatted parameter tree. It also supports parallel execution of experiments, automatic parameter tuning through the F-Race framework and storage and analysis of experiments with MongoDB and R.

Motivation & Objective

  • To automate the design, execution, and analysis of computational experiments in algorithmic research.
  • To reduce manual effort in managing parameter configurations and result collection across multiple runs.
  • To provide a flexible, extensible framework for comparing algorithm configurations using a hierarchical JSON-based parameter specification.
  • To support reproducible experimentation with built-in version control and database-backed result persistence.
  • To enable scalable analysis of experimental outcomes through integration with R and structured data retrieval.

Proposed method

  • Uses a hierarchical JSON structure to define experiment parameters, with nodes for discrete values, continuous intervals, file/directory inputs, and logical combinations (e.g., 'and', 'or' nodes).
  • Generates all valid parameter configurations by recursively traversing the JSON tree and applying combinatorial rules.
  • Supports post-processors to transform, merge, or filter generated configurations for complex parameter relationships.
  • Executes experiments via a command-line tool (j2r) that launches executables with generated command-line arguments.
  • Stores results in a MongoDB database using a document-oriented schema to handle heterogeneous and variable parameter sets.
  • Provides R script integration for querying, retrieving, and statistically analyzing results from the database.

Experimental results

Research questions

  • RQ1How can experiment configuration and execution be automated in a scalable and reproducible way for computational experiments?
  • RQ2What is the most effective way to represent complex parameter spaces with logical dependencies and combinations in a human-readable format?
  • RQ3How can results from heterogeneous experiments with varying parameter sets be efficiently stored and queried?
  • RQ4Can a unified framework reduce the engineering overhead of running and analyzing algorithmic experiments?
  • RQ5How can parameter racing be implemented to automatically identify optimal configurations based on performance metrics?

Key findings

  • json2run successfully automates the generation and execution of complex experiment batches using a declarative JSON configuration format.
  • The tool enables parameter racing to identify optimal configurations based on user-defined performance metrics such as solution cost or runtime.
  • Results are persistently stored in a MongoDB database, allowing for efficient querying, resumption, and long-term analysis.
  • The integration with R allows researchers to perform advanced statistical analysis on experimental outcomes using standard data retrieval functions.
  • The system supports resumption of interrupted experiments and provides detailed logging and metadata tracking, including source code versioning.
  • The tool has been successfully used in scheduling and timetabling research, demonstrating its utility in real-world algorithmic experimentation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.