2
0
mirror of https://github.com/boostorg/math.git synced 2026-02-24 04:02:18 +00:00

fixed a bunch of broken tests

This commit is contained in:
Maksym Zhelyeznyakov
2025-10-17 21:56:13 +02:00
parent b30a5577cf
commit 40b65990bd
5 changed files with 71 additions and 62 deletions

View File

@@ -9,12 +9,11 @@
#include <boost/math/optimization/nesterov.hpp>
namespace rdiff = boost::math::differentiation::reverse_mode;
namespace bopt = boost::math::optimization;
BOOST_AUTO_TEST_SUITE(basic_gradient_descent)
BOOST_AUTO_TEST_SUITE(nesterov_descent)
BOOST_AUTO_TEST_CASE_TEMPLATE(default_nesterov_test, T, all_float_types)
{
size_t NITER = 5;
T lr = T{ 1e-3 };
T lr = T{ 1e-4 };
T mu = T{ 0.95 };
RandomSample<T> rng{ T(-10), (10) };
std::vector<rdiff::rvar<T, 1>> x;