12 #ifndef MLPACK_CORE_OPTIMIZERS_FW_UPDATE_CLASSIC_HPP 13 #define MLPACK_CORE_OPTIMIZERS_FW_UPDATE_CLASSIC_HPP 18 namespace optimization {
48 template<
typename FunctionType>
50 const arma::mat& oldCoords,
55 double gamma = 2.0 / (numIter + 2.0);
56 newCoords = (1.0 - gamma) * oldCoords + gamma * s;
UpdateClassic()
Construct the classic update rule for FrankWolfe algorithm.
The core includes that mlpack expects; standard C++ includes and Armadillo.
Use classic rule in the update step for FrankWolfe algorithm.
void Update(FunctionType &, const arma::mat &oldCoords, const arma::mat &s, arma::mat &newCoords, const size_t numIter)
Classic update rule for FrankWolfe.