Thrill  0.1
logistic_regression.hpp File Reference
#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>
+ Include dependency graph for logistic_regression.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 examples
 
 examples::logistic_regression
 

Macros

#define LOGM   LOGC(debug && ctx.my_rank() == 0)
 
#define THRILL_EXAMPLES_LOGISTIC_REGRESSION_LOGISTIC_REGRESSION_HEADER
 

Functions

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)
 

Variables

static constexpr bool debug = true
 

Macro Definition Documentation

◆ LOGM

#define LOGM   LOGC(debug && ctx.my_rank() == 0)

Definition at line 29 of file logistic_regression.hpp.

◆ THRILL_EXAMPLES_LOGISTIC_REGRESSION_LOGISTIC_REGRESSION_HEADER

#define THRILL_EXAMPLES_LOGISTIC_REGRESSION_LOGISTIC_REGRESSION_HEADER

Definition at line 14 of file logistic_regression.hpp.