SHOGUN
v1.1.0
|
Class Histogram computes a histogram over all 16bit unsigned integers in the features.
Values in histogram are absolute counts (logarithmic)
Definition at line 26 of file Histogram.h.
Public Member Functions | |
CHistogram () | |
CHistogram (CStringFeatures< uint16_t > *f) | |
virtual | ~CHistogram () |
virtual bool | train (CFeatures *data=NULL) |
virtual int32_t | get_num_model_parameters () |
virtual float64_t | get_log_model_parameter (int32_t num_param) |
virtual float64_t | get_log_derivative (int32_t num_param, int32_t num_example) |
virtual float64_t | get_log_likelihood_example (int32_t num_example) |
virtual bool | set_histogram (SGVector< float64_t > histogram) |
virtual SGVector< float64_t > | get_histogram () |
virtual const char * | get_name () const |
![]() | |
CDistribution () | |
virtual | ~CDistribution () |
virtual int32_t | get_num_relevant_model_parameters () |
virtual float64_t | get_log_likelihood_sample () |
virtual SGVector< float64_t > | get_log_likelihood () |
virtual float64_t | get_model_parameter (int32_t num_param) |
virtual float64_t | get_derivative (int32_t num_param, int32_t num_example) |
virtual float64_t | get_likelihood_example (int32_t num_example) |
virtual void | set_features (CFeatures *f) |
virtual CFeatures * | get_features () |
virtual void | set_pseudo_count (float64_t pseudo) |
virtual float64_t | get_pseudo_count () |
![]() | |
CSGObject () | |
CSGObject (const CSGObject &orig) | |
virtual | ~CSGObject () |
virtual bool | is_generic (EPrimitiveType *generic) const |
template<class T > | |
void | set_generic () |
void | unset_generic () |
virtual void | print_serializable (const char *prefix="") |
virtual bool | save_serializable (CSerializableFile *file, const char *prefix="") |
virtual bool | load_serializable (CSerializableFile *file, const char *prefix="") |
void | set_global_io (SGIO *io) |
SGIO * | get_global_io () |
void | set_global_parallel (Parallel *parallel) |
Parallel * | get_global_parallel () |
void | set_global_version (Version *version) |
Version * | get_global_version () |
SGVector< char * > | get_modelsel_names () |
char * | get_modsel_param_descr (const char *param_name) |
index_t | get_modsel_param_index (const char *param_name) |
Protected Attributes | |
float64_t * | hist |
![]() | |
CFeatures * | features |
float64_t | pseudo_count |
Additional Inherited Members | |
![]() | |
SGIO * | io |
Parallel * | parallel |
Version * | version |
Parameter * | m_parameters |
Parameter * | m_model_selection_parameters |
![]() | |
virtual void | load_serializable_pre () throw (ShogunException) |
virtual void | load_serializable_post () throw (ShogunException) |
virtual void | save_serializable_pre () throw (ShogunException) |
virtual void | save_serializable_post () throw (ShogunException) |
CHistogram | ( | ) |
default constructor
Definition at line 20 of file Histogram.cpp.
CHistogram | ( | CStringFeatures< uint16_t > * | f | ) |
|
virtual |
Definition at line 33 of file Histogram.cpp.
|
virtual |
get logarithm of one example's derivative's likelihood
num_param | which example's param |
num_example | which example |
Implements CDistribution.
Definition at line 104 of file Histogram.cpp.
|
virtual |
get logarithm of one example's likelihood
num_example | which example |
Implements CDistribution.
Definition at line 82 of file Histogram.cpp.
|
virtual |
get logarithm of given model parameter
num_param | which param |
Implements CDistribution.
Definition at line 143 of file Histogram.cpp.
|
virtual |
|
virtual |
get number of model parameters
Implements CDistribution.
Definition at line 53 of file Histogram.h.
|
virtual |
learn distribution
data | training data (parameter can be avoided if distance or kernel-based classifiers are used and distance/kernels are initialized with train data) |
Implements CDistribution.
Definition at line 38 of file Histogram.cpp.
|
protected |
histogram
Definition at line 96 of file Histogram.h.