Skip to content

Tutorial

Keisuke Okumura edited this page Jun 16, 2022 · 3 revisions

Setup

  1. Install Julia (≥v1.7).
  2. Clone this repo.
  3. Move to the code repo and initialize the project with the following script.
julia --project=. -e 'using Pkg; Pkg.instantiate()'

Now it is ready to play with the repo.

*Do not forget pull since I frequently update the repo

Tutorial 1 - Jupyter Lab

Jupyter Lab (on your browser) is started with the following script.

julia --project=. -e "using IJulia; jupyterlab()"

Open notebooks/toy-example.ipynb. You can see a toy example.

tmp

Tutorial 2 - Evaluation

julia --project=. --threads=auto 
> include("./scripts/eval.jl")
> @time main("./scripts/config/exp/02_sync.yaml", "instances.num=20")
Screen Shot 2022-06-16 at 12 32 00

You will get results in {code repo}/../data/exp/.

Screen Shot 2022-06-16 at 12 32 47
Clone this wiki locally