|
Thrill
0.1
|
#include <thrill/api/cache.hpp>#include <thrill/api/dia.hpp>#include <thrill/api/generate.hpp>#include <thrill/api/print.hpp>#include <thrill/api/read_lines.hpp>#include <thrill/common/logger.hpp>#include <thrill/common/string.hpp>#include <tlx/cmdline_parser.hpp>#include <array>#include <random>#include <string>#include <tuple>#include <utility>#include <vector>#include "logistic_regression.hpp"
Include dependency graph for logistic_regression.cpp:Go to the source code of this file.
Macros | |
| #define | LOGM LOGC(debug && ctx.my_rank() == 0) |
Typedefs | |
| using | DataObject = std::pair< bool, Element > |
| using | Element = std::array< T, dim > |
| using | T = double |
Functions | |
| static auto | GenerateInput (api::Context &ctx, size_t size) |
| static auto | GenerateTestData (api::Context &ctx, size_t size) |
| int | main (int argc, char *argv[]) |
| template<typename Input > | |
| static auto | ReadInputFile (api::Context &ctx, const Input &input_path) |
| template<typename InputDIA > | |
| void | TestLogit (api::Context &ctx, const std::string &test_file, const InputDIA &input_dia, const Element &weights) |
| template<typename InputDIA > | |
| auto | TrainLogit (api::Context &ctx, const InputDIA &input_dia, size_t max_iterations, double gamma, double epsilon) |
Variables | |
| constexpr size_t | dim = 3 |
Definition at line 39 of file logistic_regression.cpp.
Referenced by TestLogit(), and TrainLogit().
| using DataObject = std::pair<bool, Element> |
Definition at line 37 of file logistic_regression.cpp.
Definition at line 36 of file logistic_regression.cpp.
| using T = double |
Definition at line 34 of file logistic_regression.cpp.
|
static |
Definition at line 66 of file logistic_regression.cpp.
References thrill::api::Generate().
Referenced by main().
|
static |
Definition at line 89 of file logistic_regression.cpp.
References thrill::api::Generate().
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 145 of file logistic_regression.cpp.
References CmdlineParser::add_bool(), CmdlineParser::add_double(), CmdlineParser::add_param_string(), CmdlineParser::add_param_stringlist(), CmdlineParser::add_size_t(), Context::enable_consume(), GenerateInput(), GenerateTestData(), CmdlineParser::print_result(), CmdlineParser::process(), ReadInputFile(), thrill::api::Run(), TestLogit(), and TrainLogit().
|
static |
Definition at line 42 of file logistic_regression.cpp.
References die_unless, dim, thrill::api::ReadLines(), and gen_data::value.
Referenced by main().
| void TestLogit | ( | api::Context & | ctx, |
| const std::string & | test_file, | ||
| const InputDIA & | input_dia, | ||
| const Element & | weights | ||
| ) |
| auto TrainLogit | ( | api::Context & | ctx, |
| const InputDIA & | input_dia, | ||
| size_t | max_iterations, | ||
| double | gamma, | ||
| double | epsilon | ||
| ) |
Definition at line 111 of file logistic_regression.cpp.
Referenced by main().
| constexpr size_t dim = 3 |
Definition at line 33 of file logistic_regression.cpp.
Referenced by examples::logistic_regression::calc_norm(), examples::logistic_regression::gradient(), examples::logistic_regression::logit_train(), ReadInputFile(), and TrainLogit().