talk about IPP's evaluation

Discussion of chess software programming and technical issues.

Moderator: Ras

liuzy

talk about IPP's evaluation

Post by liuzy »

Can anyone explain the evaluation of IPP ?
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: talk about IPP's evaluation

Post by bob »

liuzy wrote:Can anyone explain the evaluation of IPP ?
It looks at the static position of the pieces on the board, and converts this to a numeric number that approximates the goodness or badness of the overall position.

:)
User avatar
rvida
Posts: 481
Joined: Thu Apr 16, 2009 12:00 pm
Location: Slovakia, EU

Re: talk about IPP's evaluation

Post by rvida »

liuzy wrote:Can anyone explain the evaluation of IPP ?
What exactly do you want to know? It's just the usual stuff... Pawn structure, piece mobility, king safety, etc...
It's not the most readable code on the planet. For studying evaluation function I would recommend more sane (human readable) sources like Stockfish, Crafty.
Dann Corbit
Posts: 12791
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: talk about IPP's evaluation

Post by Dann Corbit »

liuzy wrote:Can anyone explain the evaluation of IPP ?
The one thing it has that is new is material imbalance.
Read Kaufman's paper to understand that.

Consider (for instance) that an A or an H pawn is not as valuable as the others.
jarkkop
Posts: 198
Joined: Thu Mar 09, 2006 2:44 am
Location: Helsinki, Finland

Re: talk about IPP's evaluation

Post by jarkkop »

It has some terms that are strangely multiplied by 65536(<<16) and added together and then at the final stage divided by same 65536(>>16).
What does this achieve?
User avatar
Don
Posts: 5106
Joined: Tue Apr 29, 2008 4:27 pm

Re: talk about IPP's evaluation

Post by Don »

jarkkop wrote:It has some terms that are strangely multiplied by 65536(<<16) and added together and then at the final stage divided by same 65536(>>16).
What does this achieve?
That could be some mechanism to reduce rounding error while dealing with fractions as integers. That's my guess.
Karlo Bala
Posts: 373
Joined: Wed Mar 22, 2006 10:17 am
Location: Novi Sad, Serbia
Full name: Karlo Balla

Re: talk about IPP's evaluation

Post by Karlo Bala »

Don wrote:
jarkkop wrote:It has some terms that are strangely multiplied by 65536(<<16) and added together and then at the final stage divided by same 65536(>>16).
What does this achieve?
That could be some mechanism to reduce rounding error while dealing with fractions as integers. That's my guess.
Maybe it deals with opening and endgame value(like Fruit), but both at same time(pack two values into 32bit).
Best Regards,
Karlo Balla Jr.
User avatar
Don
Posts: 5106
Joined: Tue Apr 29, 2008 4:27 pm

Re: talk about IPP's evaluation

Post by Don »

Karlo Bala wrote:
Don wrote:
jarkkop wrote:It has some terms that are strangely multiplied by 65536(<<16) and added together and then at the final stage divided by same 65536(>>16).
What does this achieve?
That could be some mechanism to reduce rounding error while dealing with fractions as integers. That's my guess.
Maybe it deals with opening and endgame value(like Fruit), but both at same time(pack two values into 32bit).
Yes, that's probably it.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: talk about IPP's evaluation

Post by bob »

Don wrote:
jarkkop wrote:It has some terms that are strangely multiplied by 65536(<<16) and added together and then at the final stage divided by same 65536(>>16).
What does this achieve?
That could be some mechanism to reduce rounding error while dealing with fractions as integers. That's my guess.
I think I heard someone mention that it might keep the EG and MG scores combined, 16 bits per value, so that one is left shifted 16 bits. You could then add a constant to both EG and MG scores with one add, even if the values you add are different, since the constant could itself be the results of a shift/add which would still be a constant.
mcostalba
Posts: 2684
Joined: Sat Jun 14, 2008 9:17 pm

Re: talk about IPP's evaluation

Post by mcostalba »

bob wrote: I think I heard someone mention that it might keep the EG and MG scores combined, 16 bits per value, so that one is left shifted 16 bits.
Yes you guessed right. It saves both mid game and end game score in a 32 bit integer with a 16 bit word for each score.

At the end the combined score is splitted and the two values merged in the usual way to get the final score.