22 #ifndef __MLPACK_METHODS_PERCEPTRON_PERCEPTRON_HPP
23 #define __MLPACK_METHODS_PERCEPTRON_PERCEPTRON_HPP
32 namespace perceptron {
43 template<
typename LearnPolicy = SimpleWeightUpdate,
44 typename WeightInitializationPolicy = ZeroInitialization,
45 typename MatType = arma::mat>
59 Perceptron(
const MatType& data,
const arma::Row<size_t>& labels,
int iterations);
69 void Classify(
const MatType& test, arma::Row<size_t>& predictedLabels);
81 Perceptron(
const Perceptron<>& other, MatType& data,
const arma::rowvec& D,
const arma::Row<size_t>& labels);
101 void Train(
const arma::rowvec& D);
107 #include "perceptron_impl.hpp"