disable material scaling in datagen
bench: 1181803
This commit is contained in:
1 parent
4c4e6d15c8
commit
0f849c1b7f
2 files changed
+6
-5
No files matched your search
+3
-2
@@ -187,8 +187,9 @@ int Forward(const Board& board, const Network& net) {
|
||||
return (eval * SCALE) / (QA * QB);
|
||||
}
|
||||
|
||||
int16_t Network::Evaluate(const Board& board) {
|
||||
const int materialScale = 2048
|
||||
int16_t Network::Evaluate(const Board& board, bool datagen) {
|
||||
// Disabled in datagen
|
||||
const int materialScale = datagen ? 4096 : 2048
|
||||
+ 90 * board.pieces[Knight].PopCount()
|
||||
+ 90 * board.pieces[Bishop].PopCount()
|
||||
+ 180 * board.pieces[Rook].PopCount()
|
||||
|
||||
Reference in new issue
Block a user