shark::GenericDistTrainer Class Reference

#include <shark/Algorithms/Trainers/Distribution/GenericDistTrainer.h>

+ Inheritance diagram for shark::GenericDistTrainer:

Public Member Functions

void train (AbstractDistribution &abstractDist, const std::vector< double > &input) const
 
- Public Member Functions inherited from shark::DistTrainerContainer
const NormalTrainergetNormalTrainer () const
 
void setNormalTrainer (const NormalTrainer &normalTrainer)
 

Detailed Description

The trainer which is smart enough to train different kinds of distributions

Note
all train functions should be reentrant

Definition at line 46 of file GenericDistTrainer.h.

Member Function Documentation

§ train()

void shark::GenericDistTrainer::train ( AbstractDistribution abstractDist,
const std::vector< double > &  input 
) const
inline

Train an abstract distribution

Parameters
abstractDistthe distribution we want to train
inputthe input data used for training the dist
Exceptions
throwshark 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().


The documentation for this class was generated from the following file: