-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
230 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
HS_SRC_DIR = app src test | ||
HS_O = --fast | ||
|
||
.PHONY: all build run test format clean | ||
|
||
all: format build | ||
|
||
############################################################ | ||
## nitta | ||
############################################################ | ||
|
||
build: | ||
stack build --fast --keep-going \ | ||
--haddock --no-haddock-deps \ | ||
--copy-bins --coverage \ | ||
--test --no-run-tests | ||
|
||
build-prod: | ||
stack build --ghc-options="-O2" nitta:nitta | ||
|
||
test: | ||
stack build --coverage --test $(HS_O) | ||
find src -name '*.hs' -exec grep -l '>>>' {} \; | xargs -t -L 1 -P 4 stack exec doctest | ||
|
||
format: | ||
fourmolu -m inplace $(HS_SRC_DIR) | ||
|
||
format-check: | ||
fourmolu -m check $(HS_SRC_DIR) | ||
|
||
lint: | ||
hlint $(HS_SRC_DIR) | ||
stack exec weeder | ||
|
||
clean: | ||
$(STACK) clean | ||
|
||
# Add additional targets and rules as needed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"output_dir": "evaluation", | ||
"nitta_run_command": "stack exec nitta --", | ||
"nitta_run_timeout_s": 60, | ||
"measurement_tries": 3, | ||
"examples": [ | ||
"fibonacci.lua", | ||
"pid.lua", | ||
"teacup.lua" | ||
], | ||
"constant_args": "-e", | ||
"with_ml_backend": true, | ||
"evaluated_args": { | ||
"preset": { | ||
"default-sota": "--method=StateOfTheArt", | ||
"default-td": "--method=TopDownByScore --depth-base=1.4" | ||
} | ||
} | ||
} |