Template Class csv

Inheritance Relationships

Base Type

Class Documentation

template<class T>
class ioh::logger::csv : public ioh::logger::observer<T>

A class of logging csv files.

To activate logger functions as evaluating problems, a ‘logger’ must be added to problem by the statement ‘problem.add_logger(logger)’.

Public Functions

csv(const std::string output_directory = "./", const std::string folder_name = "IOHprofiler_test", const std::string algorithm_name = "algorithm", const std::string algorithm_info = "algorithm_info")
~csv()
void clear_logger()
template<typename V>
void add_attribute(const std::string name, const V value)
void delete_attribute(const std::string name)
void track_problem(int problem_id, int dimension, int instance, std::string problem_name, common::optimization_type maximization_minimization_flag)
void track_problem(const T &problem) override
void track_suite(std::string suite_name)
void track_suite(const suite::base<T> &suite) override
void open_info(int problem_id, int dimension, std::string problem_name)
void write_info(const int instance, const double best_y, const double best_transformed_y, const size_t evaluations, const double last_y, const double last_transformed_y, const size_t last_evaluations)
void write_line(size_t evaluations, double y, double best_so_far_y, double transformed_y, double best_so_far_transformed_y)
void do_log(const std::vector<double> &log_info) override
void write_line(const std::vector<double> &log_info)
void update_logger_info(size_t optimal_evaluations, double y, double transformed_y)
void set_parameters(const std::vector<std::shared_ptr<double>> &parameters)
void set_parameters(const std::vector<std::shared_ptr<double>> &parameters, const std::vector<std::string> &parameters_name)
void add_dynamic_attribute(const std::vector<std::shared_ptr<double>> &attributes)
void add_dynamic_attribute(const std::vector<std::shared_ptr<double>> &attributes, const std::vector<std::string> &attributes_name)
void set_dynamic_attributes_name(const std::vector<std::string> &attributes_name)
void set_dynamic_attributes_name(const std::vector<std::string> &attributes_name, const std::vector<double> &initial_attributes)
void set_dynamic_attributes(const std::vector<std::string> &attributes_name, const std::vector<double> &attributes)
void set_parameters_name(const std::vector<std::string> &parameters_name)
void set_parameters_name(const std::vector<std::string> &parameters_name, const std::vector<double> &initial_parameters)
void set_parameters(const std::vector<std::string> &parameters_name, const std::vector<double> &parameters)