Skip to content

jonathan-laurent/kappa-counterfactuals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kappa resimulation algorithm

Here is an implementation of the resimulation algorithm for Kappa. It generates a random counterfactual trace given a reference trace and an intervention.

How to install

In order to build this repository, you need to install the KaSim API: opam install kappa-library. Then, just type make test.

How to use

The resimulator is mostly intended to be used as an OCaml library whose interface can be found at lib/resimulation.mli. However, a restricted subset of features is currently available through the bin/resimulate executable that can be used as follows:

resimulate TRACE_FILE -b RULE

resimulates the trace contained in the json file TRACE_FILE, blocking every instance of rule RULE.

About

Counterfactual reasoning in Kappa

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published