#include <LoadSaveHdf5.hh>
|
| ~LoadSaveHdf5Templ () |
|
void | checkParamsForLoadFeatureVectors (StDataCmdLine &cmdline) const |
| Just accesses all parameters, that are used in loadFeatureVectors() so that they are no longer unknwon to StDataCmdLine. More...
|
|
bool | checkParamsForLoadSubsetLabels (StDataCmdLine &cmdline) const |
| checks wether the "--subset_att" parameter was given. More...
|
|
bool | checkParamsForSaveClassificationResults (StDataCmdLine &cmdline) const |
| Just accesses all parameters, that are used in saveClassificationResults() so that they are no longer unknwon to StDataASCIIFile. More...
|
|
void | checkParamsForSaveModel (StDataCmdLine &cmdline) const |
| Just accesses all parameters, that are used in saveModel() so that they are no longer unknwon to StDataASCIIFile. More...
|
|
template<typename FV , typename ALGORITHMS > |
BasicSVMAdapter< FV, STDATA > * | createSVMAndLoadModel (StDataCmdLine &cmdline) const |
| create SVM from file and load Model data More...
|
|
template<typename FV > |
void | loadFeatureVectors (StDataCmdLine &cmdline, std::vector< FV > &featureVectors) |
| load feature vectors More...
|
|
void | loadSubsetLabels (StDataCmdLine &cmdline, std::vector< int > &subsetIndexByUID) |
| load feature vectors More...
|
|
void | saveClassificationResults (StDataCmdLine &cmdline, const std::vector< double > &results, const std::vector< StDataASCII > &details, bool saveDetails, std::ostream &os) const |
| save classification results. More...
|
|
template<typename FV > |
void | saveModel (StDataCmdLine &cmdline, BasicSVMAdapter< FV, STDATA > *svm, int detailLevel, std::ostream &os) const |
| save Model. More...
|
|
template<typename STDATATYPE>
class svt::LoadSaveHdf5Templ< STDATATYPE >
Definition at line 62 of file LoadSaveHdf5.hh.
◆ STDATA
template<typename STDATATYPE >
◆ ~LoadSaveHdf5Templ()
template<typename STDATATYPE >
◆ getParamInfosForLoadFeatureVectors()
template<typename STDATATYPE >
get information about the parameters, that are used in loadFeatureVectors().
The Infos are appended to the passed array
- Parameters
-
p | array of ParamInfos. The Infos will be appended to this array |
◆ checkParamsForLoadFeatureVectors()
template<typename STDATATYPE >
◆ loadFeatureVectors()
template<typename STDATATYPE >
template<typename FV >
load feature vectors
- Parameters
-
cmdline | command line parameters |
featureVectors | the loaded feature vectors |
- Exceptions
-
◆ getParamInfosForLoadSubsetLabels()
template<typename STDATATYPE >
get information about the parameters, that are used in loadSubsetLabels().
The Infos are appended to the passed array
- Parameters
-
p | array of ParamInfos. The Infos will be appended to this array |
◆ checkParamsForLoadSubsetLabels()
template<typename STDATATYPE >
checks wether the "--subset_att" parameter was given.
- Parameters
-
- Returns
- true: subset_att parameter was given
◆ loadSubsetLabels()
template<typename STDATATYPE >
load feature vectors
- Parameters
-
cmdline | command line parameters |
subsetIndexByUID | subset Index by Unique ID, could be directly used for Cross-validati on |
- Exceptions
-
◆ getParamInfosForSaveModel()
template<typename STDATATYPE >
get information about the parameters, that are used in saveModel().
The Infos are appended to the passed array
- Parameters
-
p | array of ParamInfos. The Infos will be appended to this array |
◆ checkParamsForSaveModel()
template<typename STDATATYPE >
◆ saveModel()
template<typename STDATATYPE >
template<typename FV >
save Model.
- Parameters
-
cmdline | command line parameters |
svm | the trained SVM |
detailLevel | wether to save additional training infos to model. 0: nothing, 1: only statistics, 2: training infos from all two-class trainings |
- Exceptions
-
◆ getParamInfosForCreateSVMAndLoadModel()
template<typename STDATATYPE >
get information about the parameters, that are used in createSVMAndLoadModel().
The Infos are appended to the passed array
- Parameters
-
p | array of ParamInfos. The Infos will be appended to this array |
◆ createSVMAndLoadModel()
template<typename STDATATYPE >
template<typename FV , typename ALGORITHMS >
create SVM from file and load Model data
- Parameters
-
cmdline | command line parameters |
modelFileName | file name of modelfile |
svm | (output) |
- Exceptions
-
- Returns
- created SVM with loaded Model. The ownership of this object goes to caller. So you are responsible to delete it after usage
◆ getParamInfosForSaveClassificationResults()
template<typename STDATATYPE >
get information about the parameters, that are used in createSVMAndLoadModel().
The Infos are appended to the passed array
- Parameters
-
p | array of ParamInfos. The Infos will be appended to this array |
◆ checkParamsForSaveClassificationResults()
template<typename STDATATYPE >
◆ saveClassificationResults()
template<typename STDATATYPE >
save classification results.
- Parameters
-
cmdline | the command line |
results | predicted labels for each feature vector |
details | additional classification details in key-value pairs for each feature vector |
saveDetails | wether to save the additional details in details vector |
os | output stream (usually std::cout) for additionally infos, like "saving ...", etc. |
The documentation for this class was generated from the following file: