marinone94's picture
Training in progress, epoch 0
1ce325b
raw
history blame
590 Bytes
#ifndef LM_INTERPOLATE_TUNE_DERIVATIVES_H
#define LM_INTERPOLATE_TUNE_DERIVATIVES_H
#include "tune_matrix.hh"
#include <Eigen/Core>
#include <cmath>
namespace lm { namespace interpolate {
class Instances;
// Given tuning instances and model weights, computes the objective function (log probability), gradient, and Hessian.
// Returns log probability / number of instances.
Accum Derivatives(Instances &instances /* Doesn't modify but ReadExtensions is lazy */, const Vector &weights, Vector &gradient, Matrix &hessian);
}} // namespaces
#endif // LM_INTERPOLATE_TUNE_DERIVATIVES_H