#include <thrill/api/cache.hpp>
#include <thrill/api/dia.hpp>
#include <thrill/api/size.hpp>
#include <thrill/api/sum.hpp>
#include <thrill/common/logger.hpp>
#include <algorithm>
#include <array>
#include <cmath>
#include <functional>
#include <numeric>
#include <utility>
Go to the source code of this file.
|
| template<typename T , size_t dim> |
| T | calc_norm (const std::array< T, dim > &weights, const std::array< T, dim > &new_weights) |
| |
| template<typename T , size_t dim> |
| auto | gradient (const bool &y, const std::array< T, dim > &x, const std::array< T, dim > &w) |
| |
| template<typename T , size_t dim, typename InStack , typename Element = std::array<T, dim>> |
| auto | logit_test (const DIA< std::pair< bool, Element >, InStack > &data, const Element &weights) |
| |
| template<typename T , size_t dim, typename InStack , typename Element = std::array<T, dim>> |
| auto | logit_train (const DIA< std::pair< bool, Element >, InStack > &data, size_t max_iterations, double gamma=0.002, double epsilon=0.0001) |
| |
| template<typename T > |
| T | sigmoid (const T &x) |
| |
|
| static constexpr bool | debug = true |
| |
◆ LOGM
| #define LOGM LOGC(debug && ctx.my_rank() == 0) |
◆ THRILL_EXAMPLES_LOGISTIC_REGRESSION_LOGISTIC_REGRESSION_HEADER
| #define THRILL_EXAMPLES_LOGISTIC_REGRESSION_LOGISTIC_REGRESSION_HEADER |