Skip to content

Commit

Permalink
upd readme, log and purge some redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
Chronosymbolic committed Sep 11, 2023
1 parent b43357a commit 18b07e5
Show file tree
Hide file tree
Showing 5 changed files with 812 additions and 179 deletions.
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,18 @@ Artifact for the paper "Chronosymbolic Learning: Efficient CHC Solving with Symb
- See `./examples` for examples of how our tool works

## Requirement (To set up our environment)
Python (3.7.0 or higher, and anaconda recommended)
Python (3.7.0 or higher, and [Anaconda](https://www.anaconda.com/) recommended)

Install packages in `requirements.txt`:
- Install packages in `requirements.txt`: `pip install -r requirements.txt`

```
pip install -r requirements.txt
```
- May have to manually set up `PYTHONPATH` and `PATH` properly, `PYTHONPATH=$Z3_BIN/python`, `PATH=$PATH:$Z3_BIN`

May have to manually set up `PYTHONPATH` and `PATH` properly, `PYTHONPATH=$Z3_BIN/python`, `PATH=$PATH:$Z3_BIN`

Then, prepare the dataset following the instructions in `data/` folder.
- If the C5.0/LIBSVM binary cannot executed properly, may have to recompile them in your OS and specify the binary executable files in `utils/dt/dt.py` in `class C5DT`, `C5_exec_path` and `utils/svm/svm.py` in `class LibSVMLearner`, `svm_exec_path`

## Chronosymbolic Learning
- Support SMT-LIB2 format (check-sat) and Datalog format (rule-query)

- Have executable binaries of decision tree and SVM for Linux and MacOS, and can automatically adapt to the OS
- Have executable binaries of decision tree and SVM for Linux and MacOS, and can automatically adapt to the OS (Linux/Mac)

- Control flow implemented in `learner/run_agent.py` `run_Agent` function

Expand Down
6 changes: 4 additions & 2 deletions experiment/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## result_summary_safe.log
The log shows the running log of our reported experiment on ``Chronosymbolic-single''. This experiment runs a suite of instances using a fixed set of hyperparameters. The structure of the log is as follows:
## result_safe_summary.log and result_unsafe_summary.log
The logs are the running logs of our reported experiment on ``Chronosymbolic-single''. This experiment runs a suite of instances using a fixed set of hyperparameters.

The structure of the log is as follows:

1. The first 2 lines are the modules used.

Expand Down
File renamed without changes.
Loading

0 comments on commit 18b07e5

Please sign in to comment.