mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 12:47:08 +00:00
Updating nnue to a new architecture including a newly trained net using recipe https://github.com/vondele/nettest/pull/395 and trainer https://github.com/official-stockfish/nnue-pytorch/pull/480. The recipe contains many small improvements additionally the newly relabled data. Thus this is a combined effort. Passed STC https://tests.stockfishchess.org/tests/view/6a429fd8f97ff95f78795110 ``` LLR: 2.94 (-2.94,2.94) <0.00,2.00> Total: 25312 W: 6725 L: 6422 D: 12165 Ptnml(0-2): 78, 2915, 6397, 3158, 108 ``` Passed LTC https://tests.stockfishchess.org/tests/view/6a434c4cf97ff95f78795235 ``` LLR: 2.94 (-2.94,2.94) <0.50,2.50> Total: 32814 W: 8655 L: 8345 D: 15814 Ptnml(0-2): 17, 3469, 9132, 3765, 24 ``` closes https://github.com/official-stockfish/Stockfish/pull/6938 Bench: 2639962 Co-authored-by: anematode <anematode@users.noreply.github.com> Co-authored-by: Joost VandeVondele <vondele@users.noreply.github.com> Co-authored-by: xu-shawn <xu-shawn@users.noreply.github.com>
56 lines
1.7 KiB
C++
56 lines
1.7 KiB
C++
/*
|
|
Stockfish, a UCI chess playing engine derived from Glaurung 2.1
|
|
Copyright (C) 2004-2026 The Stockfish developers (see AUTHORS file)
|
|
|
|
Stockfish is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
Stockfish is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef EVALUATE_H_INCLUDED
|
|
#define EVALUATE_H_INCLUDED
|
|
|
|
#include <string>
|
|
|
|
#include "types.h"
|
|
|
|
namespace Stockfish {
|
|
|
|
class Position;
|
|
|
|
namespace Eval {
|
|
|
|
// The default net name MUST follow the format nn-[SHA256 first 12 digits].nnue
|
|
// for the build process (profile-build and fishtest) to work. Do not change the
|
|
// name of the macro or the location where this macro is defined, as it is used
|
|
// in the Makefile/Fishtest.
|
|
#define EvalFileDefaultName "nn-2ab42c9eeb3e.nnue"
|
|
|
|
namespace NNUE {
|
|
class Network;
|
|
struct AccumulatorCaches;
|
|
class AccumulatorStack;
|
|
}
|
|
|
|
std::string trace(Position& pos, const Eval::NNUE::Network& network);
|
|
|
|
Value evaluate(const NNUE::Network& network,
|
|
const Position& pos,
|
|
Eval::NNUE::AccumulatorStack& accumulators,
|
|
Eval::NNUE::AccumulatorCaches& caches,
|
|
int optimism);
|
|
} // namespace Eval
|
|
|
|
} // namespace Stockfish
|
|
|
|
#endif // #ifndef EVALUATE_H_INCLUDED
|