Skip to content

Commit

Permalink
Non-Functional Refactors (#72)
Browse files Browse the repository at this point in the history
Remove training code, simplify datagen and some engine code.

No functional change.

Bench: 2387354
  • Loading branch information
jw1912 authored Nov 13, 2024
1 parent 11f4b5a commit 98cbdb2
Show file tree
Hide file tree
Showing 33 changed files with 425 additions and 2,047 deletions.
218 changes: 1 addition & 217 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ uci-minimal = []
tunable = []

[workspace]
members = ["datagen", "train/policy", "train/value"]
members = ["datagen"]
resolver = "2"

[dependencies]
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ calculate many important search heuristics, e.g. CPUCT scaling

Functional patches are required to pass on montytest, with an STC followed by an LTC test.

Monty's networks are trained using [montytrain](https://github.com/official-monty/montytrain),
which itself is built on top of [bullet](https://github.com/jw1912/bullet).

Monty produces data in the formats found in [montyformat](https://github.com/official-monty/montyformat).

## ELO History

<div align="center">
Expand Down
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ fn main() {
let policy_file_name = extract_network_name("src/networks/policy.rs", "PolicyFileDefaultName");

// Define fixed paths where the networks will be stored
let value_path = "resources/value.network";
let policy_path = "resources/policy.network";
let value_path = "value.network";
let policy_path = "policy.network";

// Validate and download the network files if needed
validate_and_download_network(&value_file_name, &value_path);
Expand Down
2 changes: 1 addition & 1 deletion datagen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ authors = ["Jamie Whiting"]

[dependencies]
monty = { path = "../", features = ["datagen"] }
montyformat = { git = 'https://github.com/official-monty/montyformat.git', tag = "v0.2.0" }
montyformat = { git = 'https://github.com/official-monty/montyformat.git', tag = "v0.3.0" }
7 changes: 0 additions & 7 deletions datagen/src/dataformat.rs

This file was deleted.

Loading

0 comments on commit 98cbdb2

Please sign in to comment.