#include <shark/Data/SparseData.h>
#include <shark/ObjectiveFunctions/Loss/CrossEntropy.h>
#include <shark/Algorithms/Trainers/LinearSAGTrainer.h>
#include <shark/Core/Timer.h>
#include <iostream>
Go to the source code of this file.
Functions | |
template<class InputType > | |
void | run (LabeledData< InputType, unsigned int > const &data, double alpha, unsigned int epochs) |
int | main (int argc, char **argv) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 27 of file logistic_regression_SAG.cpp.
References shark::importSparseData(), run(), and shark::transformLabels().
void run | ( | LabeledData< InputType, unsigned int > const & | data, |
double | alpha, | ||
unsigned int | epochs | ||
) |
Definition at line 12 of file logistic_regression_SAG.cpp.
References shark::Classifier< LinearModel< VectorType > >::decisionFunction(), shark::LabeledData< InputT, LabelT >::inputs(), shark::LabeledData< InputT, LabelT >::labels(), shark::LinearSAGTrainer< InputType, LabelType >::setEpochs(), shark::Timer::stop(), and shark::LinearSAGTrainer< InputType, LabelType >::train().
Referenced by main().