mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 13:17:44 +00:00
Pass the new loss function to update_parameters
This commit is contained in:
@@ -195,8 +195,11 @@ namespace Eval::NNUE {
|
||||
uint64_t epoch,
|
||||
bool verbose,
|
||||
double learning_rate,
|
||||
Learner::CalcGradFunc calc_grad)
|
||||
Learner::CalcGradFunc calc_grad,
|
||||
Learner::CalcLossFunc calc_loss)
|
||||
{
|
||||
using namespace Learner::Autograd::UnivariateStatic;
|
||||
|
||||
assert(batch_size > 0);
|
||||
|
||||
learning_rate /= batch_size;
|
||||
|
||||
Reference in New Issue
Block a user