UI classifier.
在文件 GUIClassifier.h 第 24 行定义.
Public 成员函数 | |
CGUIClassifier () | |
CGUIClassifier (CSGInterface *interface) | |
~CGUIClassifier () | |
bool | new_classifier (char *name, int32_t d=6, int32_t from_d=40) |
bool | set_max_train_time (float64_t max) |
bool | load (char *filename, char *type) |
bool | save (char *param) |
CLabels * | classify () |
CLabels * | classify_kernelmachine () |
CLabels * | classify_distancemachine () |
CLabels * | classify_linear () |
CLabels * | classify_byte_linear () |
bool | classify_example (int32_t idx, float64_t &result) |
CMachine * | get_classifier () |
bool | get_trained_classifier (float64_t *&weights, int32_t &rows, int32_t &cols, float64_t *&bias, int32_t &brows, int32_t &bcols, int32_t idx=-1) |
int32_t | get_num_svms () |
bool | get_svm (float64_t *&weights, int32_t &rows, int32_t &cols, float64_t *&bias, int32_t &brows, int32_t &bcols, int32_t idx=-1) |
bool | get_linear (float64_t *&weights, int32_t &rows, int32_t &cols, float64_t *&bias, int32_t &brows, int32_t &bcols) |
bool | get_clustering (float64_t *&weights, int32_t &rows, int32_t &cols, float64_t *&bias, int32_t &brows, int32_t &bcols) |
bool | set_perceptron_parameters (float64_t lernrate, int32_t maxiter) |
bool | set_svm_C (float64_t C1, float64_t C2) |
bool | set_svm_bufsize (int32_t bufsize) |
bool | set_svm_qpsize (int32_t qpsize) |
bool | set_svm_max_qpsize (int32_t max_qpsize) |
bool | set_svm_shrinking_enabled (bool enabled) |
bool | set_svm_nu (float64_t nu) |
bool | set_svm_batch_computation_enabled (bool enabled) |
bool | set_do_auc_maximization (bool do_auc) |
bool | set_svm_linadd_enabled (bool enabled) |
bool | set_svm_bias_enabled (bool enabled) |
bool | set_mkl_interleaved_enabled (bool enabled) |
bool | set_svm_epsilon (float64_t epsilon) |
bool | set_svr_tube_epsilon (float64_t tube_epsilon) |
bool | set_svm_mkl_parameters (float64_t weight_epsilon, float64_t C_mkl, float64_t mkl_norm) |
bool | set_mkl_block_norm (float64_t mkl_bnorm) |
bool | set_elasticnet_lambda (float64_t lambda) |
bool | set_svm_precompute_enabled (int32_t precompute) |
bool | set_krr_tau (float64_t tau=1) |
bool | set_solver (char *solver) |
bool | set_constraint_generator (char *cg) |
bool | train_mkl_multiclass () |
bool | train_mkl () |
bool | train_svm () |
bool | train_knn (int32_t k=3) |
bool | train_krr () |
bool | train_clustering (int32_t k=3, int32_t max_iter=1000) |
bool | train_linear (float64_t gamma=0) |
bool | train_sparse_linear () |
bool | train_wdocas () |
virtual const char * | get_name () const |
virtual CSGObject * | shallow_copy () const |
virtual CSGObject * | deep_copy () const |
virtual bool | is_generic (EPrimitiveType *generic) const |
template<class T > | |
void | set_generic () |
template<> | |
void | set_generic () |
template<> | |
void | set_generic () |
template<> | |
void | set_generic () |
template<> | |
void | set_generic () |
template<> | |
void | set_generic () |
template<> | |
void | set_generic () |
template<> | |
void | set_generic () |
template<> | |
void | set_generic () |
template<> | |
void | set_generic () |
template<> | |
void | set_generic () |
template<> | |
void | set_generic () |
template<> | |
void | set_generic () |
template<> | |
void | set_generic () |
template<> | |
void | set_generic () |
template<> | |
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 () |
SGStringList< char > | get_modelsel_names () |
void | print_modsel_params () |
char * | get_modsel_param_descr (const char *param_name) |
index_t | get_modsel_param_index (const char *param_name) |
void | build_gradient_parameter_dictionary (CMap< TParameter *, CSGObject * > *dict) |
virtual void | update_parameter_hash () |
virtual bool | parameter_hash_changed () |
virtual bool | equals (CSGObject *other, float64_t accuracy=0.0, bool tolerant=false) |
virtual CSGObject * | clone () |
Public 属性 | |
SGIO * | io |
Parallel * | parallel |
Version * | version |
Parameter * | m_parameters |
Parameter * | m_model_selection_parameters |
Parameter * | m_gradient_parameters |
uint32_t | m_hash |
Protected 成员函数 | |
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) |
Protected 属性 | |
CSGInterface * | ui |
CMachine * | classifier |
float64_t | max_train_time |
float64_t | perceptron_learnrate |
int32_t | perceptron_maxiter |
int32_t | svm_qpsize |
int32_t | svm_bufsize |
int32_t | svm_max_qpsize |
float64_t | mkl_norm |
float64_t | mkl_block_norm |
float64_t | ent_lambda |
float64_t | svm_weight_epsilon |
float64_t | svm_epsilon |
float64_t | svm_tube_epsilon |
float64_t | svm_nu |
float64_t | svm_C1 |
float64_t | svm_C2 |
float64_t | C_mkl |
float64_t | krr_tau |
bool | mkl_use_interleaved |
bool | svm_use_bias |
bool | svm_use_batch_computation |
bool | svm_use_linadd |
bool | svm_use_precompute |
bool | svm_use_precompute_subkernel |
bool | svm_use_precompute_subkernel_light |
bool | svm_use_shrinking |
bool | svm_do_auc_maximization |
CSVM * | constraint_generator |
ESolverType | solver_type |
CGUIClassifier | ( | ) |
constructor
在文件 GUIClassifier.h 第 28 行定义.
CGUIClassifier | ( | CSGInterface * | interface | ) |
~CGUIClassifier | ( | ) |
destructor
在文件 GUIClassifier.cpp 第 108 行定义.
|
inherited |
Builds a dictionary of all parameters in SGObject as well of those of SGObjects that are parameters of this object. Dictionary maps parameters to the objects that own them.
dict | dictionary of parameters to be built. |
在文件 SGObject.cpp 第 597 行定义.
CLabels * classify | ( | ) |
classify
在文件 GUIClassifier.cpp 第 1096 行定义.
CLabels * classify_byte_linear | ( | ) |
classify byte linear
在文件 GUIClassifier.cpp 第 1430 行定义.
CLabels * classify_distancemachine | ( | ) |
classify distance machine
在文件 GUIClassifier.cpp 第 1368 行定义.
bool classify_example | ( | int32_t | idx, |
float64_t & | result | ||
) |
CLabels * classify_kernelmachine | ( | ) |
classify kernel machine
在文件 GUIClassifier.cpp 第 1144 行定义.
CLabels * classify_linear | ( | ) |
classify linear
在文件 GUIClassifier.cpp 第 1405 行定义.
|
virtualinherited |
Creates a clone of the current object. This is done via recursively traversing all parameters, which corresponds to a deep copy. Calling equals on the cloned object always returns true although none of the memory of both objects overlaps.
在文件 SGObject.cpp 第 714 行定义.
|
virtualinherited |
A deep copy. All the instance variables will also be copied.
在文件 SGObject.cpp 第 198 行定义.
Recursively compares the current SGObject to another one. Compares all registered numerical parameters, recursion upon complex (SGObject) parameters. Does not compare pointers!
May be overwritten but please do with care! Should not be necessary in most cases.
other | object to compare with |
accuracy | accuracy to use for comparison (optional) |
tolerant | allows linient check on float equality (within accuracy) |
在文件 SGObject.cpp 第 618 行定义.
CMachine* get_classifier | ( | ) |
get classifier
在文件 GUIClassifier.h 第 62 行定义.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
在文件 SGObject.cpp 第 498 行定义.
|
inherited |
Returns description of a given parameter string, if it exists. SG_ERROR otherwise
param_name | name of the parameter |
在文件 SGObject.cpp 第 522 行定义.
|
inherited |
Returns index of model selection parameter with provided index
param_name | name of model selection parameter |
在文件 SGObject.cpp 第 535 行定义.
|
virtual |
int32_t get_num_svms | ( | ) |
get number of SVMs in Multiclass
在文件 GUIClassifier.cpp 第 1250 行定义.
|
virtualinherited |
If the SGSerializable is a class template then TRUE will be returned and GENERIC is set to the type of the generic.
generic | set to the type of the generic if returning TRUE |
在文件 SGObject.cpp 第 296 行定义.
bool load | ( | char * | filename, |
char * | type | ||
) |
load classifier from file
在文件 GUIClassifier.cpp 第 803 行定义.
|
virtualinherited |
Load this object from file. If it will fail (returning FALSE) then this object will contain inconsistent data and should not be used!
file | where to load from |
prefix | prefix for members |
在文件 SGObject.cpp 第 369 行定义.
|
protectedvirtualinherited |
Can (optionally) be overridden to post-initialize some member variables which are not PARAMETER::ADD'ed. Make sure that at first the overridden method BASE_CLASS::LOAD_SERIALIZABLE_POST is called.
ShogunException | will be thrown if an error occurs. |
被 CKernel, CWeightedDegreePositionStringKernel, CList, CAlphabet, CLinearHMM, CGaussianKernel, CInverseMultiQuadricKernel, CCircularKernel , 以及 CExponentialKernel 重载.
在文件 SGObject.cpp 第 426 行定义.
|
protectedvirtualinherited |
Can (optionally) be overridden to pre-initialize some member variables which are not PARAMETER::ADD'ed. Make sure that at first the overridden method BASE_CLASS::LOAD_SERIALIZABLE_PRE is called.
ShogunException | will be thrown if an error occurs. |
被 CDynamicArray< T >, CDynamicArray< float64_t >, CDynamicArray< float32_t >, CDynamicArray< int32_t >, CDynamicArray< char >, CDynamicArray< bool > , 以及 CDynamicObjectArray 重载.
在文件 SGObject.cpp 第 421 行定义.
bool new_classifier | ( | char * | name, |
int32_t | d = 6 , |
||
int32_t | from_d = 40 |
||
) |
create new classifier
在文件 GUIClassifier.cpp 第 114 行定义.
|
virtualinherited |
在文件 SGObject.cpp 第 262 行定义.
|
inherited |
prints all parameter registered for model selection and their type
在文件 SGObject.cpp 第 474 行定义.
|
virtualinherited |
bool save | ( | char * | param | ) |
|
virtualinherited |
Save this object to file.
file | where to save the object; will be closed during returning if PREFIX is an empty string. |
prefix | prefix for members |
在文件 SGObject.cpp 第 314 行定义.
|
protectedvirtualinherited |
Can (optionally) be overridden to post-initialize some member variables which are not PARAMETER::ADD'ed. Make sure that at first the overridden method BASE_CLASS::SAVE_SERIALIZABLE_POST is called.
ShogunException | will be thrown if an error occurs. |
被 CKernel 重载.
在文件 SGObject.cpp 第 436 行定义.
|
protectedvirtualinherited |
Can (optionally) be overridden to pre-initialize some member variables which are not PARAMETER::ADD'ed. Make sure that at first the overridden method BASE_CLASS::SAVE_SERIALIZABLE_PRE is called.
ShogunException | will be thrown if an error occurs. |
被 CKernel, CDynamicArray< T >, CDynamicArray< float64_t >, CDynamicArray< float32_t >, CDynamicArray< int32_t >, CDynamicArray< char >, CDynamicArray< bool > , 以及 CDynamicObjectArray 重载.
在文件 SGObject.cpp 第 431 行定义.
bool set_constraint_generator | ( | char * | cg | ) |
set constraint generator
在文件 GUIClassifier.cpp 第 1561 行定义.
bool set_do_auc_maximization | ( | bool | do_auc | ) |
bool set_elasticnet_lambda | ( | float64_t | lambda | ) |
|
inherited |
在文件 SGObject.cpp 第 41 行定义.
|
inherited |
在文件 SGObject.cpp 第 46 行定义.
|
inherited |
在文件 SGObject.cpp 第 51 行定义.
|
inherited |
在文件 SGObject.cpp 第 56 行定义.
|
inherited |
在文件 SGObject.cpp 第 61 行定义.
|
inherited |
在文件 SGObject.cpp 第 66 行定义.
|
inherited |
在文件 SGObject.cpp 第 71 行定义.
|
inherited |
在文件 SGObject.cpp 第 76 行定义.
|
inherited |
在文件 SGObject.cpp 第 81 行定义.
|
inherited |
在文件 SGObject.cpp 第 86 行定义.
|
inherited |
在文件 SGObject.cpp 第 91 行定义.
|
inherited |
在文件 SGObject.cpp 第 96 行定义.
|
inherited |
在文件 SGObject.cpp 第 101 行定义.
|
inherited |
在文件 SGObject.cpp 第 106 行定义.
|
inherited |
在文件 SGObject.cpp 第 111 行定义.
|
inherited |
set generic type to T
|
inherited |
|
inherited |
|
inherited |
bool set_krr_tau | ( | float64_t | tau = 1 | ) |
set KRR's tau
在文件 GUIClassifier.cpp 第 1497 行定义.
bool set_max_train_time | ( | float64_t | max | ) |
set maximum train time
在文件 GUIClassifier.cpp 第 892 行定义.
bool set_mkl_block_norm | ( | float64_t | mkl_bnorm | ) |
bool set_mkl_interleaved_enabled | ( | bool | enabled | ) |
bool set_perceptron_parameters | ( | float64_t | lernrate, |
int32_t | maxiter | ||
) |
bool set_solver | ( | char * | solver | ) |
set solver type
在文件 GUIClassifier.cpp 第 1510 行定义.
bool set_svm_batch_computation_enabled | ( | bool | enabled | ) |
bool set_svm_bias_enabled | ( | bool | enabled | ) |
bool set_svm_bufsize | ( | int32_t | bufsize | ) |
bool set_svm_epsilon | ( | float64_t | epsilon | ) |
bool set_svm_linadd_enabled | ( | bool | enabled | ) |
bool set_svm_max_qpsize | ( | int32_t | max_qpsize | ) |
bool set_svm_nu | ( | float64_t | nu | ) |
bool set_svm_precompute_enabled | ( | int32_t | precompute | ) |
set svm precompute enabled
precompute |
bool set_svm_qpsize | ( | int32_t | qpsize | ) |
bool set_svm_shrinking_enabled | ( | bool | enabled | ) |
bool set_svr_tube_epsilon | ( | float64_t | tube_epsilon | ) |
|
virtualinherited |
A shallow copy. All the SGObject instance variables will be simply assigned and SG_REF-ed.
被 CGaussianKernel 重载.
在文件 SGObject.cpp 第 192 行定义.
bool train_clustering | ( | int32_t | k = 3 , |
int32_t | max_iter = 1000 |
||
) |
train clustering
在文件 GUIClassifier.cpp 第 622 行定义.
bool train_knn | ( | int32_t | k = 3 | ) |
train K-nearest-neighbour
在文件 GUIClassifier.cpp 第 658 行定义.
bool train_krr | ( | ) |
train kernel ridge regression
在文件 GUIClassifier.cpp 第 685 行定义.
bool train_linear | ( | float64_t | gamma = 0 | ) |
bool train_mkl | ( | ) |
train MKL
在文件 GUIClassifier.cpp 第 457 行定义.
bool train_mkl_multiclass | ( | ) |
train MKL multiclass
在文件 GUIClassifier.cpp 第 411 行定义.
bool train_sparse_linear | ( | ) |
train sparse linear classifier
bool train_svm | ( | ) |
train SVM
在文件 GUIClassifier.cpp 第 526 行定义.
bool train_wdocas | ( | ) |
train WD OCAS
在文件 GUIClassifier.cpp 第 779 行定义.
|
inherited |
unset generic type
this has to be called in classes specializing a template class
在文件 SGObject.cpp 第 303 行定义.
|
virtualinherited |
Updates the hash of current parameter combination
在文件 SGObject.cpp 第 248 行定义.
|
protected |
C mkl
在文件 GUIClassifier.h 第 264 行定义.
|
protected |
classifier
在文件 GUIClassifier.h 第 232 行定义.
|
protected |
constraint generator
在文件 GUIClassifier.h 第 287 行定义.
|
protected |
ent lambda
在文件 GUIClassifier.h 第 250 行定义.
|
inherited |
io
在文件 SGObject.h 第 369 行定义.
|
protected |
krr tau
在文件 GUIClassifier.h 第 266 行定义.
|
inherited |
parameters wrt which we can compute gradients
在文件 SGObject.h 第 384 行定义.
|
inherited |
Hash of parameter values
在文件 SGObject.h 第 387 行定义.
|
inherited |
model selection parameters
在文件 SGObject.h 第 381 行定义.
|
inherited |
parameters
在文件 SGObject.h 第 378 行定义.
|
protected |
max train time
在文件 GUIClassifier.h 第 234 行定义.
|
protected |
mkl block norm
在文件 GUIClassifier.h 第 248 行定义.
|
protected |
mkl norm
在文件 GUIClassifier.h 第 246 行定义.
|
protected |
mkl use interleaved
在文件 GUIClassifier.h 第 268 行定义.
|
inherited |
parallel
在文件 SGObject.h 第 372 行定义.
|
protected |
perceptron learnrate
在文件 GUIClassifier.h 第 236 行定义.
|
protected |
perceptron maxiter
在文件 GUIClassifier.h 第 238 行定义.
|
protected |
solver type
在文件 GUIClassifier.h 第 289 行定义.
|
protected |
svm bufsize
在文件 GUIClassifier.h 第 242 行定义.
|
protected |
svm C1
在文件 GUIClassifier.h 第 260 行定义.
|
protected |
svm C2
在文件 GUIClassifier.h 第 262 行定义.
|
protected |
svm do auc maximization
在文件 GUIClassifier.h 第 284 行定义.
|
protected |
svm epsilon
在文件 GUIClassifier.h 第 254 行定义.
|
protected |
svm max qpsize
在文件 GUIClassifier.h 第 244 行定义.
|
protected |
svm nu
在文件 GUIClassifier.h 第 258 行定义.
|
protected |
svm qpsize
在文件 GUIClassifier.h 第 240 行定义.
|
protected |
svm tube epsilon
在文件 GUIClassifier.h 第 256 行定义.
|
protected |
svm use batch computation
在文件 GUIClassifier.h 第 272 行定义.
|
protected |
svm use bias
在文件 GUIClassifier.h 第 270 行定义.
|
protected |
svm use linadd
在文件 GUIClassifier.h 第 274 行定义.
|
protected |
svm use precompute
在文件 GUIClassifier.h 第 276 行定义.
|
protected |
svm use precompute subkernel
在文件 GUIClassifier.h 第 278 行定义.
|
protected |
svm use precompute subkernel light
在文件 GUIClassifier.h 第 280 行定义.
|
protected |
svm use shrinking
在文件 GUIClassifier.h 第 282 行定义.
|
protected |
svm weight epsilon
在文件 GUIClassifier.h 第 252 行定义.
|
protected |
ui
在文件 GUIClassifier.h 第 230 行定义.
|
inherited |
version
在文件 SGObject.h 第 375 行定义.