<commit_before>#include "utest.h"
#include "math/random.h"
#include "math/numeric.h"
#include "math/epsilon.h"
#include "functions/test.h"
#include "text/to_string.h"
#include "stoch_optimizer.h"

using namespace nano;

static void check_function(const function_t& function)
{
        const auto epochs = size_t(1000);
        const auto epoch_size = size_t(1000);
        const auto trials = size_t(20);

        const auto dims = function.problem().size();<commit_msg>use more epochs to have the unit test more robust<commit_after>#include "utest.h"
#include "math/random.h"
#include "math/numeric.h"
#include "math/epsilon.h"
#include "functions/test.h"
#include "text/to_string.h"
#include "stoch_optimizer.h"

using namespace nano;

static void check_function(const function_t& function)
{
        const auto epochs = size_t(5000);
        const auto epoch_size = size_t(1000);
        const auto trials = size_t(20);

        const auto dims = function.problem().size();
{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.020491803278688523, 'mean_word_length': 4.088541666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2839506', 'n_tokens_mistral': 341, 'n_tokens_neox': 317, 'n_words': 84}