mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-23 05:07:14 +00:00
Make all grad related functions in learn static. Pass calc_grad as a parameter.
This commit is contained in:
+2
-2
@@ -64,10 +64,10 @@ namespace Learner
|
||||
// rmse calculation is done in one thread, so it takes some time, so reducing the output is effective.
|
||||
constexpr std::size_t LEARN_RMSE_OUTPUT_INTERVAL = 1;
|
||||
|
||||
double calc_grad(Value shallow, const PackedSfenValue& psv);
|
||||
|
||||
// Learning from the generated game record
|
||||
void learn(std::istringstream& is);
|
||||
|
||||
using CalcGradFunc = double(Value, Value, int, int);
|
||||
}
|
||||
|
||||
#endif // ifndef _LEARN_H_
|
||||
|
||||
Reference in New Issue
Block a user