TalkChess.com
Hosted by Your Move Chess & Games

Author Message
Sander Maassen vd Brink

Joined: 28 Jan 2017
Posts: 104
Location: The Netherlands

Post subject: Re: tuning for the uninformed    Posted: Fri Nov 24, 2017 9:30 am

flok wrote:
 sandermvdb wrote: The basic idea is pretty simple: calculate the error of the evaluation when it is compared to the actual outcome of the positions.

What do you mean by that?
Do you mean the following:
- fen as input
- calc move with an eval val
- calc eval of the move that should've been moved
- compare these two (how? percentual difference? or what?)

No. I mean:
- fen as input
- calculate evaluation
- calculate error: compare evaluation score with the actual outcome. If the evaluation calculates that white has a big advantage but black wins -> big error. The exact formula is described on the cpw. This is my (pseudo) implementation, where K=1.3:

 Code: public double calculateTotalError() {    double totalError = 0;    for (Entry entry : fens.entrySet()) { // fens contains all positions, including the outcome       ChessBoard cb = new ChessBoard(entry.getKey());       totalError += Math.pow(entry.getValue() - calculateSigmoid(Eval.calculateScore(cb)), 2);    }    totalError /= fens.size();    return totalError; } public double calculateSigmoid(int score) {    return 1 / (1 + Math.pow(10, -1.3 * score / 400)); }

_________________
https://github.com/sandermvdb/chess22k
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
Subject Author Date/Time
Folkert van Heusden Thu Nov 23, 2017 10:37 am
Henk van den Belt Thu Nov 23, 2017 11:49 am
Mehdi Amini Thu Nov 23, 2017 11:49 am
Henk van den Belt Thu Nov 23, 2017 11:53 am
Folkert van Heusden Thu Nov 23, 2017 12:26 pm
Henk van den Belt Thu Nov 23, 2017 12:44 pm
Alexandru Mosoi Thu Nov 23, 2017 2:07 pm
Folkert van Heusden Thu Nov 23, 2017 2:16 pm
Folkert van Heusden Thu Nov 23, 2017 5:34 pm
Sander Maassen vd Brink Thu Nov 23, 2017 6:47 pm
Henk van den Belt Thu Nov 23, 2017 7:21 pm
Sander Maassen vd Brink Thu Nov 23, 2017 7:26 pm
Henk van den Belt Thu Nov 23, 2017 7:36 pm
Sander Maassen vd Brink Thu Nov 23, 2017 7:43 pm
Martin Fierz Tue Dec 12, 2017 9:17 pm
Álvaro Begué Tue Dec 12, 2017 10:47 pm
Folkert van Heusden Fri Nov 24, 2017 9:15 am
Re: tuning for the uninformed Sander Maassen vd Brink Fri Nov 24, 2017 9:30 am
Robin Messemer Fri Nov 24, 2017 11:04 pm
Henk van den Belt Sat Nov 25, 2017 11:30 am
Robin Messemer Sat Nov 25, 2017 1:58 pm
Henk van den Belt Sat Nov 25, 2017 2:48 pm
Robert Pope Mon Nov 27, 2017 5:38 pm
Álvaro Begué Mon Nov 27, 2017 5:52 pm
Alexandru Mosoi Mon Nov 27, 2017 9:56 pm
Robert Pope Tue Nov 28, 2017 4:41 pm
Robin Messemer Tue Nov 28, 2017 7:23 pm
Álvaro Begué Tue Nov 28, 2017 7:37 pm
Jon Dart Thu Dec 14, 2017 3:09 pm
Álvaro Begué Thu Dec 14, 2017 3:15 pm
Jon Dart Sat Dec 02, 2017 3:02 pm
Jon Dart Sat Dec 02, 2017 2:58 pm
Erin Dame Sat Dec 02, 2017 10:50 am
Jon Dart Sat Dec 02, 2017 2:54 pm
Erin Dame Sat Dec 02, 2017 5:14 pm
Jon Dart Sat Dec 02, 2017 5:56 pm
Jon Dart Sat Dec 02, 2017 8:09 pm
Matthew R. Brades Sun Dec 03, 2017 10:09 am
Álvaro Begué Sun Dec 03, 2017 1:03 pm
Jon Dart Sun Dec 03, 2017 3:47 pm

 Jump to: Select a forum Computer Chess Club Forums----------------Computer Chess Club: General TopicsComputer Chess Club: Tournaments and MatchesComputer Chess Club: Programming and Technical DiscussionsComputer Chess Club: Engine Origins Other Forums----------------Chess Thinkers ForumChess Players ForumForum Help and Suggestions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum