Name
learn_sampset_boxT_learn_sampset_boxLearnSampsetBoxLearnSampsetBox — Train the classifier with one data set.
Warning
learn_sampset_boxlearn_sampset_boxLearnSampsetBoxLearnSampsetBoxLearnSampsetBox is obsolete and is only provided for
reasons of backward compatibility. New applications should use the
MLP, SVM, KNN or GMM operators instead.
void LearnSampsetBox(const HTuple& ClassifHandle, const HTuple& SampKey, const HTuple& Outfile, const HTuple& NSamples, const HTuple& StopError, const HTuple& ErrorN)
void HFeatureSet::LearnSampsetBox(const HClassBox& ClassifHandle, const HString& Outfile, Hlong NSamples, double StopError, Hlong ErrorN) const
void HFeatureSet::LearnSampsetBox(const HClassBox& ClassifHandle, const char* Outfile, Hlong NSamples, double StopError, Hlong ErrorN) const
void HClassBox::LearnSampsetBox(const HFeatureSet& SampKey, const HString& Outfile, Hlong NSamples, double StopError, Hlong ErrorN) const
void HClassBox::LearnSampsetBox(const HFeatureSet& SampKey, const char* Outfile, Hlong NSamples, double StopError, Hlong ErrorN) const
static void HOperatorSet.LearnSampsetBox(HTuple classifHandle, HTuple sampKey, HTuple outfile, HTuple NSamples, HTuple stopError, HTuple errorN)
void HFeatureSet.LearnSampsetBox(HClassBox classifHandle, string outfile, int NSamples, double stopError, int errorN)
void HClassBox.LearnSampsetBox(HFeatureSet sampKey, string outfile, int NSamples, double stopError, int errorN)
learn_sampset_boxlearn_sampset_boxLearnSampsetBoxLearnSampsetBoxLearnSampsetBox trains the classifier with data for the
key SampKeySampKeySampKeySampKeysampKey (see read_sampsetread_sampsetReadSampsetReadSampsetReadSampset). The training sequence
is terminated at least after NSamplesNSamplesNSamplesNSamplesNSamples examples.
If NSamplesNSamplesNSamplesNSamplesNSamples is bigger than the number of examples in
SampKeySampKeySampKeySampKeysampKey, then a cyclic start at the beginning occurs.
If the error underpasses the value StopErrorStopErrorStopErrorStopErrorstopError, then the training
sequence is prematurely terminated. StopErrorStopErrorStopErrorStopErrorstopError is calculated with
N / ErrorN. Whereby N means the number of examples which were wrong
classified during the last ErrorNErrorNErrorNErrorNerrorN training examples.
Typically ErrorNErrorNErrorNErrorNerrorN is the number of examples in SampKeySampKeySampKeySampKeysampKey
and NSamplesNSamplesNSamplesNSamplesNSamples is a multiple of it.
If you want a data set with 100 examples to run 5 times at most and if you
want it to terminate with an error lower than 5%, then the corresponding
values are NSamplesNSamplesNSamplesNSamplesNSamples = 500, ErrorNErrorNErrorNErrorNerrorN = 100 and
StopErrorStopErrorStopErrorStopErrorstopError = 0.05.
A protocol of the training activity is going to be written in file
OutfileOutfileOutfileOutfileoutfile.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
This operator modifies the state of the following input parameter:
The value of this parameter may not be shared across multiple threads without external synchronization.
Handle of the classifier.
Number of the data set to train.
Name of the protocol file.
Default value:
'training_prot'
"training_prot"
"training_prot"
"training_prot"
"training_prot"
Number of arrays of attributes to learn.
Default value: 500
Classification error for termination.
Default value: 0.05
Error during the assignment.
Default value: 100
learn_sampset_boxlearn_sampset_boxLearnSampsetBoxLearnSampsetBoxLearnSampsetBox returns 2 (H_MSG_TRUE).
An exception is raised if key SampKeySampKeySampKeySampKeysampKey does not exist
or there are problems while opening the file.
create_class_boxcreate_class_boxCreateClassBoxCreateClassBoxCreateClassBox
test_sampset_boxtest_sampset_boxTestSampsetBoxTestSampsetBoxTestSampsetBox,
enquire_class_boxenquire_class_boxEnquireClassBoxEnquireClassBoxEnquireClassBox,
write_class_boxwrite_class_boxWriteClassBoxWriteClassBoxWriteClassBox,
close_class_boxclose_class_boxCloseClassBoxCloseClassBoxCloseClassBox,
clear_sampsetclear_sampsetClearSampsetClearSampsetClearSampset
test_sampset_boxtest_sampset_boxTestSampsetBoxTestSampsetBoxTestSampsetBox,
enquire_class_boxenquire_class_boxEnquireClassBoxEnquireClassBoxEnquireClassBox,
learn_class_boxlearn_class_boxLearnClassBoxLearnClassBoxLearnClassBox,
read_sampsetread_sampsetReadSampsetReadSampsetReadSampset
Foundation