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