#include <shark/Algorithms/Trainers/Distribution/GenericDistTrainer.h>
Public Member Functions | |
void | train (AbstractDistribution &abstractDist, const std::vector< double > &input) const |
![]() | |
const NormalTrainer & | getNormalTrainer () const |
void | setNormalTrainer (const NormalTrainer &normalTrainer) |
The trainer which is smart enough to train different kinds of distributions
Definition at line 46 of file GenericDistTrainer.h.
|
inline |
Train an abstract distribution
abstractDist | the distribution we want to train |
input | the input data used for training the dist |
throw | shark exception if training attempt for this distribution failed |
Definition at line 56 of file GenericDistTrainer.h.
References shark::DistTrainerContainer::getNormalTrainer(), and SHARKEXCEPTION.
Referenced by shark::NBClassifierTrainer< InputType, OutputType >::train().