naokikob / neugusR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repository contains a tool is for NN-guided synthesis of recursive list predicates. The technical background is found in the following paper.

Naoki Kobayashi, Minchao Wu,
"Neural Network-Guided Synthesis of Recursive List Functions", Proceedings of TACAS 2023, pp.227-245, 2023

How to install the formula synthesizer

run

dune build learnMp.exe

You need to install dune and ocaml-torch (by running 'opam install torch') in advance.

How to run the formula synthesizer

run

learn.sh <options> <datafile>

options

  • -epochs : the number of epochs (default: 20000)
  • -nodes : the number of hidden nodes in the first (hidden) layer (default: 4)
  • -nodes2 : the number of hidden nodes in the second layer (default: 4)
  • -rate: learning rate

Example:

./learn.sh -nodes2 8 -rate 0.01 -epochs 10000 data/small/sorted0.dat

About

License:Apache License 2.0


Languages

Language:OCaml 99.2%Language:Shell 0.8%