Skip to content

Commit

Permalink
Merge pull request #329 from syjytg/patch-1
Browse files Browse the repository at this point in the history
Improved Eval function candidate 2
  • Loading branch information
glinscott authored Apr 18, 2018
2 parents fea0b2d + 1e21d9e commit f4f82e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go/src/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func uploadNetwork(c *gin.Context) {
}

// TODO(gary): Make this more generic - upload to s3 for now
cmd := exec.Command("aws", "s3", "cp", network.Path, "s3://lczero/" + network.Path)
cmd := exec.Command("aws", "s3", "cp", network.Path, "s3://lczero/networks/")
err = cmd.Run()
if err != nil {
log.Println(err.Error())
Expand Down
2 changes: 1 addition & 1 deletion src/UCTSearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ void UCTSearch::dump_analysis(int64_t elapsed, bool force_output) {
std::string pvstring = get_pv(bh, *m_root, false);
float feval = m_root->get_eval(color);
// UCI-like output wants a depth and a cp, so convert winrate to a cp estimate.
int cp = 162 * tan(3.14 * (feval - 0.5));
int cp = 290.680623072 * tan(3.096181612 * (feval - 0.5));
// same for nodes to depth, assume nodes = 1.8 ^ depth.
int depth = log(float(m_nodes)) / log(1.8);
// To report nodes, use visits.
Expand Down

0 comments on commit f4f82e5

Please sign in to comment.