SHOGUN v0.9.0
|
00001 /* 00002 * THIS IS A GENERATED FILE! DO NOT CHANGE THIS FILE! CHANGE THE 00003 * CORRESPONDING TEMPLAT FILE, PLEASE! 00004 -e */ 00005 00006 /* 00007 * This program is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 3 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * Written (W) 2009 Soeren Sonnenburg 00013 * Copyright (C) 2009 Fraunhofer Institute FIRST and Max-Planck-Society 00014 */ 00015 00016 #include "lib/common.h" 00017 #include "base/class_list.h" 00018 00019 #include <string.h> 00020 00021 #include "kernel/Kernel.h" 00022 00023 #include "classifier/LinearClassifier.h" 00024 #include "classifier/mkl/MKLClassification.h" 00025 #include "classifier/mkl/MKLMultiClass.h" 00026 #include "classifier/mkl/MKLOneClass.h" 00027 #include "classifier/svm/ScatterSVM.h" 00028 #include "classifier/svm/LibSVM.h" 00029 #include "classifier/svm/QPBSVMLib.h" 00030 #include "classifier/svm/GMNPSVM.h" 00031 #include "classifier/svm/MultiClassSVM.h" 00032 #include "classifier/svm/SVMOcas.h" 00033 #include "classifier/svm/SVMSGD.h" 00034 #include "classifier/svm/GNPPSVM.h" 00035 #include "classifier/svm/GMNPLib.h" 00036 #include "classifier/svm/SVM.h" 00037 #include "classifier/svm/LibSVMOneClass.h" 00038 #include "classifier/svm/SVMLin.h" 00039 #include "classifier/svm/GPBTSVM.h" 00040 #include "classifier/svm/GNPPLib.h" 00041 #include "classifier/svm/WDSVMOcas.h" 00042 #include "classifier/svm/MPDSVM.h" 00043 #include "classifier/svm/LibLinear.h" 00044 #include "classifier/svm/DomainAdaptationSVMLinear.h" 00045 #include "classifier/svm/SubGradientSVM.h" 00046 #include "classifier/svm/LibSVMMultiClass.h" 00047 #include "classifier/KNN.h" 00048 #include "classifier/KernelPerceptron.h" 00049 #include "classifier/Perceptron.h" 00050 #include "classifier/KernelMachine.h" 00051 #include "classifier/PluginEstimate.h" 00052 #include "structure/SegmentLoss.h" 00053 #include "structure/IntronList.h" 00054 #include "structure/DynProg.h" 00055 #include "structure/PlifMatrix.h" 00056 #include "structure/Plif.h" 00057 #include "structure/PlifArray.h" 00058 #include "features/Alphabet.h" 00059 #include "features/PolyFeatures.h" 00060 #include "features/CombinedDotFeatures.h" 00061 #include "features/ImplicitWeightedSpecFeatures.h" 00062 #include "features/CombinedFeatures.h" 00063 #include "features/WDFeatures.h" 00064 #include "features/RealFileFeatures.h" 00065 #include "features/StringFileFeatures.h" 00066 #include "features/DummyFeatures.h" 00067 #include "features/TOPFeatures.h" 00068 #include "features/SimpleFeatures.h" 00069 #include "features/HashedWDFeaturesTransposed.h" 00070 #include "features/FKFeatures.h" 00071 #include "features/Labels.h" 00072 #include "features/StringFeatures.h" 00073 #include "features/SNPFeatures.h" 00074 #include "features/LBPPyrDotFeatures.h" 00075 #include "features/SparsePolyFeatures.h" 00076 #include "features/ExplicitSpecFeatures.h" 00077 #include "features/SparseFeatures.h" 00078 #include "features/HashedWDFeatures.h" 00079 #include "evaluation/PerformanceMeasures.h" 00080 #include "clustering/Hierarchical.h" 00081 #include "clustering/KMeans.h" 00082 #include "lib/Array.h" 00083 #include "lib/Cache.h" 00084 #include "lib/DynamicArrayPtr.h" 00085 #include "lib/List.h" 00086 #include "lib/AsciiFile.h" 00087 #include "lib/Signal.h" 00088 #include "lib/BitString.h" 00089 #include "lib/SimpleFile.h" 00090 #include "lib/Array3.h" 00091 #include "lib/BinaryStream.h" 00092 #include "lib/Time.h" 00093 #include "lib/MemoryMappedFile.h" 00094 #include "lib/DynamicArray.h" 00095 #include "lib/Array2.h" 00096 #include "lib/Hash.h" 00097 #include "lib/BinaryFile.h" 00098 #include "lib/SerializableAsciiFile.h" 00099 #include "lib/Set.h" 00100 #include "kernel/AvgDiagKernelNormalizer.h" 00101 #include "kernel/SimpleLocalityImprovedStringKernel.h" 00102 #include "kernel/LocalityImprovedStringKernel.h" 00103 #include "kernel/ScatterKernelNormalizer.h" 00104 #include "kernel/FirstElementKernelNormalizer.h" 00105 #include "kernel/GaussianShiftKernel.h" 00106 #include "kernel/CustomKernel.h" 00107 #include "kernel/SqrtDiagKernelNormalizer.h" 00108 #include "kernel/GaussianKernel.h" 00109 #include "kernel/AUCKernel.h" 00110 #include "kernel/IdentityKernelNormalizer.h" 00111 #include "kernel/RidgeKernelNormalizer.h" 00112 #include "kernel/ZeroMeanCenterKernelNormalizer.h" 00113 #include "kernel/RegulatoryModulesStringKernel.h" 00114 #include "kernel/PolyMatchStringKernel.h" 00115 #include "kernel/PolyMatchWordStringKernel.h" 00116 #include "kernel/WeightedDegreeStringKernel.h" 00117 #include "kernel/OligoStringKernel.h" 00118 #include "kernel/CombinedKernel.h" 00119 #include "kernel/LocalAlignmentStringKernel.h" 00120 #include "kernel/FixedDegreeStringKernel.h" 00121 #include "kernel/Chi2Kernel.h" 00122 #include "kernel/MultitaskKernelMaskPairNormalizer.h" 00123 #include "kernel/PyramidChi2.h" 00124 #include "kernel/LinearKernel.h" 00125 #include "kernel/MultitaskKernelTreeNormalizer.h" 00126 #include "kernel/CommWordStringKernel.h" 00127 #include "kernel/SNPStringKernel.h" 00128 #include "kernel/DistanceKernel.h" 00129 #include "kernel/GaussianMatchStringKernel.h" 00130 #include "kernel/SpectrumRBFKernel.h" 00131 #include "kernel/MultitaskKernelPlifNormalizer.h" 00132 #include "kernel/HistogramIntersectionKernel.h" 00133 #include "kernel/HistogramWordStringKernel.h" 00134 #include "kernel/WeightedDegreePositionStringKernel.h" 00135 #include "kernel/LinearStringKernel.h" 00136 #include "kernel/WeightedDegreeRBFKernel.h" 00137 #include "kernel/TensorProductPairKernel.h" 00138 #include "kernel/SalzbergWordStringKernel.h" 00139 #include "kernel/DiceKernelNormalizer.h" 00140 #include "kernel/PolyKernel.h" 00141 #include "kernel/SigmoidKernel.h" 00142 #include "kernel/GaussianShortRealKernel.h" 00143 #include "kernel/DiagKernel.h" 00144 #include "kernel/VarianceKernelNormalizer.h" 00145 #include "kernel/ConstKernel.h" 00146 #include "kernel/TanimotoKernelNormalizer.h" 00147 #include "kernel/MultitaskKernelNormalizer.h" 00148 #include "kernel/CommUlongStringKernel.h" 00149 #include "kernel/MatchWordStringKernel.h" 00150 #include "kernel/SpectrumMismatchRBFKernel.h" 00151 #include "kernel/WeightedCommWordStringKernel.h" 00152 #include "kernel/SparseSpatialSampleStringKernel.h" 00153 #include "kernel/MultitaskKernelMaskNormalizer.h" 00154 #include "preproc/LogPlusOne.h" 00155 #include "preproc/SortUlongString.h" 00156 #include "preproc/SortWordString.h" 00157 #include "preproc/NormOne.h" 00158 #include "preproc/PruneVarSubMean.h" 00159 #include "preproc/NormDerivativeLem3.h" 00160 #include "preproc/DecompressString.h" 00161 #include "distance/ManhattanWordDistance.h" 00162 #include "distance/BrayCurtisDistance.h" 00163 #include "distance/HammingWordDistance.h" 00164 #include "distance/CanberraWordDistance.h" 00165 #include "distance/ChiSquareDistance.h" 00166 #include "distance/MinkowskiMetric.h" 00167 #include "distance/ManhattanMetric.h" 00168 #include "distance/TanimotoDistance.h" 00169 #include "distance/CosineDistance.h" 00170 #include "distance/EuclidianDistance.h" 00171 #include "distance/SparseEuclidianDistance.h" 00172 #include "distance/GeodesicMetric.h" 00173 #include "distance/ChebyshewMetric.h" 00174 #include "distance/CustomDistance.h" 00175 #include "distance/JensenMetric.h" 00176 #include "distance/KernelDistance.h" 00177 #include "distance/CanberraMetric.h" 00178 #include "regression/svr/LibSVR.h" 00179 #include "regression/svr/MKLRegression.h" 00180 #include "distributions/Histogram.h" 00181 #include "distributions/HMM.h" 00182 #include "distributions/GHMM.h" 00183 #include "distributions/LinearHMM.h" 00184 #include "genomic_signals/SignalModel.h" 00185 00186 00187 using namespace shogun; 00188 00189 static CSGObject* __new_CLinearClassifier(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLinearClassifier(): NULL; } 00190 static CSGObject* __new_CMKLClassification(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMKLClassification(): NULL; } 00191 static CSGObject* __new_CMKLMultiClass(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMKLMultiClass(): NULL; } 00192 static CSGObject* __new_CMKLOneClass(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMKLOneClass(): NULL; } 00193 static CSGObject* __new_CScatterSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CScatterSVM(): NULL; } 00194 static CSGObject* __new_CLibSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLibSVM(): NULL; } 00195 static CSGObject* __new_CQPBSVMLib(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CQPBSVMLib(): NULL; } 00196 static CSGObject* __new_CGMNPSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGMNPSVM(): NULL; } 00197 static CSGObject* __new_CMultiClassSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMultiClassSVM(): NULL; } 00198 static CSGObject* __new_CSVMOcas(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSVMOcas(): NULL; } 00199 static CSGObject* __new_CSVMSGD(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSVMSGD(): NULL; } 00200 static CSGObject* __new_CGNPPSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGNPPSVM(): NULL; } 00201 static CSGObject* __new_CGMNPLib(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGMNPLib(): NULL; } 00202 static CSGObject* __new_CSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSVM(): NULL; } 00203 static CSGObject* __new_CLibSVMOneClass(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLibSVMOneClass(): NULL; } 00204 static CSGObject* __new_CSVMLin(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSVMLin(): NULL; } 00205 static CSGObject* __new_CGPBTSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGPBTSVM(): NULL; } 00206 static CSGObject* __new_CGNPPLib(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGNPPLib(): NULL; } 00207 static CSGObject* __new_CWDSVMOcas(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CWDSVMOcas(): NULL; } 00208 static CSGObject* __new_CMPDSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMPDSVM(): NULL; } 00209 static CSGObject* __new_CLibLinear(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLibLinear(): NULL; } 00210 static CSGObject* __new_CDomainAdaptationSVMLinear(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDomainAdaptationSVMLinear(): NULL; } 00211 static CSGObject* __new_CSubGradientSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSubGradientSVM(): NULL; } 00212 static CSGObject* __new_CLibSVMMultiClass(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLibSVMMultiClass(): NULL; } 00213 static CSGObject* __new_CKNN(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CKNN(): NULL; } 00214 static CSGObject* __new_CKernelPerceptron(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CKernelPerceptron(): NULL; } 00215 static CSGObject* __new_CPerceptron(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPerceptron(): NULL; } 00216 static CSGObject* __new_CKernelMachine(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CKernelMachine(): NULL; } 00217 static CSGObject* __new_CPluginEstimate(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPluginEstimate(): NULL; } 00218 static CSGObject* __new_CSegmentLoss(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSegmentLoss(): NULL; } 00219 static CSGObject* __new_CIntronList(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CIntronList(): NULL; } 00220 static CSGObject* __new_CDynProg(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDynProg(): NULL; } 00221 static CSGObject* __new_CPlifMatrix(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPlifMatrix(): NULL; } 00222 static CSGObject* __new_CPlif(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPlif(): NULL; } 00223 static CSGObject* __new_CPlifArray(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPlifArray(): NULL; } 00224 static CSGObject* __new_CAlphabet(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CAlphabet(): NULL; } 00225 static CSGObject* __new_CPolyFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPolyFeatures(): NULL; } 00226 static CSGObject* __new_CCombinedDotFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCombinedDotFeatures(): NULL; } 00227 static CSGObject* __new_CImplicitWeightedSpecFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CImplicitWeightedSpecFeatures(): NULL; } 00228 static CSGObject* __new_CCombinedFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCombinedFeatures(): NULL; } 00229 static CSGObject* __new_CWDFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CWDFeatures(): NULL; } 00230 static CSGObject* __new_CRealFileFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CRealFileFeatures(): NULL; } 00231 static CSGObject* __new_CDummyFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDummyFeatures(): NULL; } 00232 static CSGObject* __new_CTOPFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CTOPFeatures(): NULL; } 00233 static CSGObject* __new_CHashedWDFeaturesTransposed(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHashedWDFeaturesTransposed(): NULL; } 00234 static CSGObject* __new_CFKFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CFKFeatures(): NULL; } 00235 static CSGObject* __new_CLabels(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLabels(): NULL; } 00236 static CSGObject* __new_CSNPFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSNPFeatures(): NULL; } 00237 static CSGObject* __new_CLBPPyrDotFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLBPPyrDotFeatures(): NULL; } 00238 static CSGObject* __new_CSparsePolyFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSparsePolyFeatures(): NULL; } 00239 static CSGObject* __new_CExplicitSpecFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CExplicitSpecFeatures(): NULL; } 00240 static CSGObject* __new_CHashedWDFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHashedWDFeatures(): NULL; } 00241 static CSGObject* __new_CPerformanceMeasures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPerformanceMeasures(): NULL; } 00242 static CSGObject* __new_CHierarchical(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHierarchical(): NULL; } 00243 static CSGObject* __new_CKMeans(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CKMeans(): NULL; } 00244 static CSGObject* __new_CMath(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMath(): NULL; } 00245 static CSGObject* __new_CDynamicArrayPtr(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDynamicArrayPtr(): NULL; } 00246 static CSGObject* __new_CListElement(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CListElement(): NULL; } 00247 static CSGObject* __new_CList(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CList(): NULL; } 00248 static CSGObject* __new_CAsciiFile(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CAsciiFile(): NULL; } 00249 static CSGObject* __new_CSignal(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSignal(): NULL; } 00250 static CSGObject* __new_CBitString(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CBitString(): NULL; } 00251 static CSGObject* __new_CTime(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CTime(): NULL; } 00252 static CSGObject* __new_CHash(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHash(): NULL; } 00253 static CSGObject* __new_CBinaryFile(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CBinaryFile(): NULL; } 00254 static CSGObject* __new_CSerializableAsciiFile(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSerializableAsciiFile(): NULL; } 00255 static CSGObject* __new_CAvgDiagKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CAvgDiagKernelNormalizer(): NULL; } 00256 static CSGObject* __new_CSimpleLocalityImprovedStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSimpleLocalityImprovedStringKernel(): NULL; } 00257 static CSGObject* __new_CLocalityImprovedStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLocalityImprovedStringKernel(): NULL; } 00258 static CSGObject* __new_CScatterKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CScatterKernelNormalizer(): NULL; } 00259 static CSGObject* __new_CFirstElementKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CFirstElementKernelNormalizer(): NULL; } 00260 static CSGObject* __new_CGaussianShiftKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGaussianShiftKernel(): NULL; } 00261 static CSGObject* __new_CCustomKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCustomKernel(): NULL; } 00262 static CSGObject* __new_CSqrtDiagKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSqrtDiagKernelNormalizer(): NULL; } 00263 static CSGObject* __new_CGaussianKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGaussianKernel(): NULL; } 00264 static CSGObject* __new_CAUCKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CAUCKernel(): NULL; } 00265 static CSGObject* __new_CIdentityKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CIdentityKernelNormalizer(): NULL; } 00266 static CSGObject* __new_CRidgeKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CRidgeKernelNormalizer(): NULL; } 00267 static CSGObject* __new_CZeroMeanCenterKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CZeroMeanCenterKernelNormalizer(): NULL; } 00268 static CSGObject* __new_CRegulatoryModulesStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CRegulatoryModulesStringKernel(): NULL; } 00269 static CSGObject* __new_CPolyMatchStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPolyMatchStringKernel(): NULL; } 00270 static CSGObject* __new_CPolyMatchWordStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPolyMatchWordStringKernel(): NULL; } 00271 static CSGObject* __new_CWeightedDegreeStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CWeightedDegreeStringKernel(): NULL; } 00272 static CSGObject* __new_COligoStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new COligoStringKernel(): NULL; } 00273 static CSGObject* __new_CCombinedKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCombinedKernel(): NULL; } 00274 static CSGObject* __new_CLocalAlignmentStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLocalAlignmentStringKernel(): NULL; } 00275 static CSGObject* __new_CFixedDegreeStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CFixedDegreeStringKernel(): NULL; } 00276 static CSGObject* __new_CChi2Kernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CChi2Kernel(): NULL; } 00277 static CSGObject* __new_CMultitaskKernelMaskPairNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMultitaskKernelMaskPairNormalizer(): NULL; } 00278 static CSGObject* __new_CPyramidChi2(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPyramidChi2(): NULL; } 00279 static CSGObject* __new_CLinearKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLinearKernel(): NULL; } 00280 static CSGObject* __new_CNode(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CNode(): NULL; } 00281 static CSGObject* __new_CTaxonomy(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CTaxonomy(): NULL; } 00282 static CSGObject* __new_CMultitaskKernelTreeNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMultitaskKernelTreeNormalizer(): NULL; } 00283 static CSGObject* __new_CCommWordStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCommWordStringKernel(): NULL; } 00284 static CSGObject* __new_CSNPStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSNPStringKernel(): NULL; } 00285 static CSGObject* __new_CDistanceKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDistanceKernel(): NULL; } 00286 static CSGObject* __new_CGaussianMatchStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGaussianMatchStringKernel(): NULL; } 00287 static CSGObject* __new_CSpectrumRBFKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSpectrumRBFKernel(): NULL; } 00288 static CSGObject* __new_CMultitaskKernelPlifNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMultitaskKernelPlifNormalizer(): NULL; } 00289 static CSGObject* __new_CHistogramIntersectionKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHistogramIntersectionKernel(): NULL; } 00290 static CSGObject* __new_CHistogramWordStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHistogramWordStringKernel(): NULL; } 00291 static CSGObject* __new_CWeightedDegreePositionStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CWeightedDegreePositionStringKernel(): NULL; } 00292 static CSGObject* __new_CLinearStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLinearStringKernel(): NULL; } 00293 static CSGObject* __new_CWeightedDegreeRBFKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CWeightedDegreeRBFKernel(): NULL; } 00294 static CSGObject* __new_CTensorProductPairKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CTensorProductPairKernel(): NULL; } 00295 static CSGObject* __new_CSalzbergWordStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSalzbergWordStringKernel(): NULL; } 00296 static CSGObject* __new_CDiceKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDiceKernelNormalizer(): NULL; } 00297 static CSGObject* __new_CPolyKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPolyKernel(): NULL; } 00298 static CSGObject* __new_CSigmoidKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSigmoidKernel(): NULL; } 00299 static CSGObject* __new_CGaussianShortRealKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGaussianShortRealKernel(): NULL; } 00300 static CSGObject* __new_CDiagKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDiagKernel(): NULL; } 00301 static CSGObject* __new_CVarianceKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CVarianceKernelNormalizer(): NULL; } 00302 static CSGObject* __new_CConstKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CConstKernel(): NULL; } 00303 static CSGObject* __new_CTanimotoKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CTanimotoKernelNormalizer(): NULL; } 00304 static CSGObject* __new_CMultitaskKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMultitaskKernelNormalizer(): NULL; } 00305 static CSGObject* __new_CCommUlongStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCommUlongStringKernel(): NULL; } 00306 static CSGObject* __new_CMatchWordStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMatchWordStringKernel(): NULL; } 00307 static CSGObject* __new_CSpectrumMismatchRBFKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSpectrumMismatchRBFKernel(): NULL; } 00308 static CSGObject* __new_CWeightedCommWordStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CWeightedCommWordStringKernel(): NULL; } 00309 static CSGObject* __new_CSparseSpatialSampleStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSparseSpatialSampleStringKernel(): NULL; } 00310 static CSGObject* __new_CMultitaskKernelMaskNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMultitaskKernelMaskNormalizer(): NULL; } 00311 static CSGObject* __new_CLogPlusOne(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLogPlusOne(): NULL; } 00312 static CSGObject* __new_CSortUlongString(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSortUlongString(): NULL; } 00313 static CSGObject* __new_CSortWordString(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSortWordString(): NULL; } 00314 static CSGObject* __new_CNormOne(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CNormOne(): NULL; } 00315 static CSGObject* __new_CPruneVarSubMean(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPruneVarSubMean(): NULL; } 00316 static CSGObject* __new_CNormDerivativeLem3(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CNormDerivativeLem3(): NULL; } 00317 static CSGObject* __new_CManhattanWordDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CManhattanWordDistance(): NULL; } 00318 static CSGObject* __new_CBrayCurtisDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CBrayCurtisDistance(): NULL; } 00319 static CSGObject* __new_CHammingWordDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHammingWordDistance(): NULL; } 00320 static CSGObject* __new_CCanberraWordDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCanberraWordDistance(): NULL; } 00321 static CSGObject* __new_CChiSquareDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CChiSquareDistance(): NULL; } 00322 static CSGObject* __new_CMinkowskiMetric(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMinkowskiMetric(): NULL; } 00323 static CSGObject* __new_CManhattanMetric(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CManhattanMetric(): NULL; } 00324 static CSGObject* __new_CTanimotoDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CTanimotoDistance(): NULL; } 00325 static CSGObject* __new_CCosineDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCosineDistance(): NULL; } 00326 static CSGObject* __new_CEuclidianDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CEuclidianDistance(): NULL; } 00327 static CSGObject* __new_CSparseEuclidianDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSparseEuclidianDistance(): NULL; } 00328 static CSGObject* __new_CGeodesicMetric(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGeodesicMetric(): NULL; } 00329 static CSGObject* __new_CChebyshewMetric(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CChebyshewMetric(): NULL; } 00330 static CSGObject* __new_CCustomDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCustomDistance(): NULL; } 00331 static CSGObject* __new_CJensenMetric(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CJensenMetric(): NULL; } 00332 static CSGObject* __new_CKernelDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CKernelDistance(): NULL; } 00333 static CSGObject* __new_CCanberraMetric(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCanberraMetric(): NULL; } 00334 static CSGObject* __new_CLibSVR(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLibSVR(): NULL; } 00335 static CSGObject* __new_CMKLRegression(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMKLRegression(): NULL; } 00336 static CSGObject* __new_CHistogram(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHistogram(): NULL; } 00337 static CSGObject* __new_CHMM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHMM(): NULL; } 00338 static CSGObject* __new_CGHMM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGHMM(): NULL; } 00339 static CSGObject* __new_CLinearHMM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLinearHMM(): NULL; } 00340 static CSGObject* __new_CSignalModel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSignalModel(): NULL; } 00341 00342 00343 static CSGObject* __new_CStringFileFeatures(EPrimitiveType g) { switch (g) { case PT_BOOL: return new CStringFileFeatures<bool>(); case PT_CHAR: return new CStringFileFeatures<char>(); case PT_INT8: return new CStringFileFeatures<int8_t>(); case PT_UINT8: return new CStringFileFeatures<uint8_t>(); case PT_INT16: return new CStringFileFeatures<int16_t>(); case PT_UINT16: return new CStringFileFeatures<uint16_t>(); case PT_INT32: return new CStringFileFeatures<int32_t>(); case PT_UINT32: return new CStringFileFeatures<uint32_t>(); case PT_INT64: return new CStringFileFeatures<int64_t>(); case PT_UINT64: return new CStringFileFeatures<uint64_t>(); case PT_FLOAT32: return new CStringFileFeatures<float32_t>(); case PT_FLOAT64: return new CStringFileFeatures<float64_t>(); case PT_FLOATMAX: return new CStringFileFeatures<floatmax_t>(); case PT_SGOBJECT: return NULL; } return NULL; } 00344 static CSGObject* __new_CSimpleFeatures(EPrimitiveType g) { switch (g) { case PT_BOOL: return new CSimpleFeatures<bool>(); case PT_CHAR: return new CSimpleFeatures<char>(); case PT_INT8: return new CSimpleFeatures<int8_t>(); case PT_UINT8: return new CSimpleFeatures<uint8_t>(); case PT_INT16: return new CSimpleFeatures<int16_t>(); case PT_UINT16: return new CSimpleFeatures<uint16_t>(); case PT_INT32: return new CSimpleFeatures<int32_t>(); case PT_UINT32: return new CSimpleFeatures<uint32_t>(); case PT_INT64: return new CSimpleFeatures<int64_t>(); case PT_UINT64: return new CSimpleFeatures<uint64_t>(); case PT_FLOAT32: return new CSimpleFeatures<float32_t>(); case PT_FLOAT64: return new CSimpleFeatures<float64_t>(); case PT_FLOATMAX: return new CSimpleFeatures<floatmax_t>(); case PT_SGOBJECT: return NULL; } return NULL; } 00345 static CSGObject* __new_CStringFeatures(EPrimitiveType g) { switch (g) { case PT_BOOL: return new CStringFeatures<bool>(); case PT_CHAR: return new CStringFeatures<char>(); case PT_INT8: return new CStringFeatures<int8_t>(); case PT_UINT8: return new CStringFeatures<uint8_t>(); case PT_INT16: return new CStringFeatures<int16_t>(); case PT_UINT16: return new CStringFeatures<uint16_t>(); case PT_INT32: return new CStringFeatures<int32_t>(); case PT_UINT32: return new CStringFeatures<uint32_t>(); case PT_INT64: return new CStringFeatures<int64_t>(); case PT_UINT64: return new CStringFeatures<uint64_t>(); case PT_FLOAT32: return new CStringFeatures<float32_t>(); case PT_FLOAT64: return new CStringFeatures<float64_t>(); case PT_FLOATMAX: return new CStringFeatures<floatmax_t>(); case PT_SGOBJECT: return NULL; } return NULL; } 00346 static CSGObject* __new_CSparseFeatures(EPrimitiveType g) { switch (g) { case PT_BOOL: return new CSparseFeatures<bool>(); case PT_CHAR: return new CSparseFeatures<char>(); case PT_INT8: return new CSparseFeatures<int8_t>(); case PT_UINT8: return new CSparseFeatures<uint8_t>(); case PT_INT16: return new CSparseFeatures<int16_t>(); case PT_UINT16: return new CSparseFeatures<uint16_t>(); case PT_INT32: return new CSparseFeatures<int32_t>(); case PT_UINT32: return new CSparseFeatures<uint32_t>(); case PT_INT64: return new CSparseFeatures<int64_t>(); case PT_UINT64: return new CSparseFeatures<uint64_t>(); case PT_FLOAT32: return new CSparseFeatures<float32_t>(); case PT_FLOAT64: return new CSparseFeatures<float64_t>(); case PT_FLOATMAX: return new CSparseFeatures<floatmax_t>(); case PT_SGOBJECT: return NULL; } return NULL; } 00347 static CSGObject* __new_CArray(EPrimitiveType g) { switch (g) { case PT_BOOL: return new CArray<bool>(); case PT_CHAR: return new CArray<char>(); case PT_INT8: return new CArray<int8_t>(); case PT_UINT8: return new CArray<uint8_t>(); case PT_INT16: return new CArray<int16_t>(); case PT_UINT16: return new CArray<uint16_t>(); case PT_INT32: return new CArray<int32_t>(); case PT_UINT32: return new CArray<uint32_t>(); case PT_INT64: return new CArray<int64_t>(); case PT_UINT64: return new CArray<uint64_t>(); case PT_FLOAT32: return new CArray<float32_t>(); case PT_FLOAT64: return new CArray<float64_t>(); case PT_FLOATMAX: return new CArray<floatmax_t>(); case PT_SGOBJECT: return NULL; } return NULL; } 00348 static CSGObject* __new_CCache(EPrimitiveType g) { switch (g) { case PT_BOOL: return new CCache<bool>(); case PT_CHAR: return new CCache<char>(); case PT_INT8: return new CCache<int8_t>(); case PT_UINT8: return new CCache<uint8_t>(); case PT_INT16: return new CCache<int16_t>(); case PT_UINT16: return new CCache<uint16_t>(); case PT_INT32: return new CCache<int32_t>(); case PT_UINT32: return new CCache<uint32_t>(); case PT_INT64: return new CCache<int64_t>(); case PT_UINT64: return new CCache<uint64_t>(); case PT_FLOAT32: return new CCache<float32_t>(); case PT_FLOAT64: return new CCache<float64_t>(); case PT_FLOATMAX: return new CCache<floatmax_t>(); case PT_SGOBJECT: return NULL; } return NULL; } 00349 static CSGObject* __new_CSimpleFile(EPrimitiveType g) { switch (g) { case PT_BOOL: return new CSimpleFile<bool>(); case PT_CHAR: return new CSimpleFile<char>(); case PT_INT8: return new CSimpleFile<int8_t>(); case PT_UINT8: return new CSimpleFile<uint8_t>(); case PT_INT16: return new CSimpleFile<int16_t>(); case PT_UINT16: return new CSimpleFile<uint16_t>(); case PT_INT32: return new CSimpleFile<int32_t>(); case PT_UINT32: return new CSimpleFile<uint32_t>(); case PT_INT64: return new CSimpleFile<int64_t>(); case PT_UINT64: return new CSimpleFile<uint64_t>(); case PT_FLOAT32: return new CSimpleFile<float32_t>(); case PT_FLOAT64: return new CSimpleFile<float64_t>(); case PT_FLOATMAX: return new CSimpleFile<floatmax_t>(); case PT_SGOBJECT: return NULL; } return NULL; } 00350 static CSGObject* __new_CArray3(EPrimitiveType g) { switch (g) { case PT_BOOL: return new CArray3<bool>(); case PT_CHAR: return new CArray3<char>(); case PT_INT8: return new CArray3<int8_t>(); case PT_UINT8: return new CArray3<uint8_t>(); case PT_INT16: return new CArray3<int16_t>(); case PT_UINT16: return new CArray3<uint16_t>(); case PT_INT32: return new CArray3<int32_t>(); case PT_UINT32: return new CArray3<uint32_t>(); case PT_INT64: return new CArray3<int64_t>(); case PT_UINT64: return new CArray3<uint64_t>(); case PT_FLOAT32: return new CArray3<float32_t>(); case PT_FLOAT64: return new CArray3<float64_t>(); case PT_FLOATMAX: return new CArray3<floatmax_t>(); case PT_SGOBJECT: return NULL; } return NULL; } 00351 static CSGObject* __new_CBinaryStream(EPrimitiveType g) { switch (g) { case PT_BOOL: return new CBinaryStream<bool>(); case PT_CHAR: return new CBinaryStream<char>(); case PT_INT8: return new CBinaryStream<int8_t>(); case PT_UINT8: return new CBinaryStream<uint8_t>(); case PT_INT16: return new CBinaryStream<int16_t>(); case PT_UINT16: return new CBinaryStream<uint16_t>(); case PT_INT32: return new CBinaryStream<int32_t>(); case PT_UINT32: return new CBinaryStream<uint32_t>(); case PT_INT64: return new CBinaryStream<int64_t>(); case PT_UINT64: return new CBinaryStream<uint64_t>(); case PT_FLOAT32: return new CBinaryStream<float32_t>(); case PT_FLOAT64: return new CBinaryStream<float64_t>(); case PT_FLOATMAX: return new CBinaryStream<floatmax_t>(); case PT_SGOBJECT: return NULL; } return NULL; } 00352 static CSGObject* __new_CMemoryMappedFile(EPrimitiveType g) { switch (g) { case PT_BOOL: return new CMemoryMappedFile<bool>(); case PT_CHAR: return new CMemoryMappedFile<char>(); case PT_INT8: return new CMemoryMappedFile<int8_t>(); case PT_UINT8: return new CMemoryMappedFile<uint8_t>(); case PT_INT16: return new CMemoryMappedFile<int16_t>(); case PT_UINT16: return new CMemoryMappedFile<uint16_t>(); case PT_INT32: return new CMemoryMappedFile<int32_t>(); case PT_UINT32: return new CMemoryMappedFile<uint32_t>(); case PT_INT64: return new CMemoryMappedFile<int64_t>(); case PT_UINT64: return new CMemoryMappedFile<uint64_t>(); case PT_FLOAT32: return new CMemoryMappedFile<float32_t>(); case PT_FLOAT64: return new CMemoryMappedFile<float64_t>(); case PT_FLOATMAX: return new CMemoryMappedFile<floatmax_t>(); case PT_SGOBJECT: return NULL; } return NULL; } 00353 static CSGObject* __new_CDynamicArray(EPrimitiveType g) { switch (g) { case PT_BOOL: return new CDynamicArray<bool>(); case PT_CHAR: return new CDynamicArray<char>(); case PT_INT8: return new CDynamicArray<int8_t>(); case PT_UINT8: return new CDynamicArray<uint8_t>(); case PT_INT16: return new CDynamicArray<int16_t>(); case PT_UINT16: return new CDynamicArray<uint16_t>(); case PT_INT32: return new CDynamicArray<int32_t>(); case PT_UINT32: return new CDynamicArray<uint32_t>(); case PT_INT64: return new CDynamicArray<int64_t>(); case PT_UINT64: return new CDynamicArray<uint64_t>(); case PT_FLOAT32: return new CDynamicArray<float32_t>(); case PT_FLOAT64: return new CDynamicArray<float64_t>(); case PT_FLOATMAX: return new CDynamicArray<floatmax_t>(); case PT_SGOBJECT: return NULL; } return NULL; } 00354 static CSGObject* __new_CArray2(EPrimitiveType g) { switch (g) { case PT_BOOL: return new CArray2<bool>(); case PT_CHAR: return new CArray2<char>(); case PT_INT8: return new CArray2<int8_t>(); case PT_UINT8: return new CArray2<uint8_t>(); case PT_INT16: return new CArray2<int16_t>(); case PT_UINT16: return new CArray2<uint16_t>(); case PT_INT32: return new CArray2<int32_t>(); case PT_UINT32: return new CArray2<uint32_t>(); case PT_INT64: return new CArray2<int64_t>(); case PT_UINT64: return new CArray2<uint64_t>(); case PT_FLOAT32: return new CArray2<float32_t>(); case PT_FLOAT64: return new CArray2<float64_t>(); case PT_FLOATMAX: return new CArray2<floatmax_t>(); case PT_SGOBJECT: return NULL; } return NULL; } 00355 static CSGObject* __new_CSet(EPrimitiveType g) { switch (g) { case PT_BOOL: return new CSet<bool>(); case PT_CHAR: return new CSet<char>(); case PT_INT8: return new CSet<int8_t>(); case PT_UINT8: return new CSet<uint8_t>(); case PT_INT16: return new CSet<int16_t>(); case PT_UINT16: return new CSet<uint16_t>(); case PT_INT32: return new CSet<int32_t>(); case PT_UINT32: return new CSet<uint32_t>(); case PT_INT64: return new CSet<int64_t>(); case PT_UINT64: return new CSet<uint64_t>(); case PT_FLOAT32: return new CSet<float32_t>(); case PT_FLOAT64: return new CSet<float64_t>(); case PT_FLOATMAX: return new CSet<floatmax_t>(); case PT_SGOBJECT: return NULL; } return NULL; } 00356 static CSGObject* __new_CDecompressString(EPrimitiveType g) { switch (g) { case PT_BOOL: return new CDecompressString<bool>(); case PT_CHAR: return new CDecompressString<char>(); case PT_INT8: return new CDecompressString<int8_t>(); case PT_UINT8: return new CDecompressString<uint8_t>(); case PT_INT16: return new CDecompressString<int16_t>(); case PT_UINT16: return new CDecompressString<uint16_t>(); case PT_INT32: return new CDecompressString<int32_t>(); case PT_UINT32: return new CDecompressString<uint32_t>(); case PT_INT64: return new CDecompressString<int64_t>(); case PT_UINT64: return new CDecompressString<uint64_t>(); case PT_FLOAT32: return new CDecompressString<float32_t>(); case PT_FLOAT64: return new CDecompressString<float64_t>(); case PT_FLOATMAX: return new CDecompressString<floatmax_t>(); case PT_SGOBJECT: return NULL; } return NULL; } 00357 00358 00359 typedef CSGObject* (*new_sgserializable_t)(EPrimitiveType generic); 00360 typedef struct 00361 { 00362 const char* m_class_name; 00363 new_sgserializable_t m_new_sgserializable; 00364 } class_list_entry_t; 00365 00366 static class_list_entry_t class_list[] = { 00367 {m_class_name: "LinearClassifier", m_new_sgserializable: __new_CLinearClassifier}, 00368 {m_class_name: "MKLClassification", m_new_sgserializable: __new_CMKLClassification}, 00369 {m_class_name: "MKLMultiClass", m_new_sgserializable: __new_CMKLMultiClass}, 00370 {m_class_name: "MKLOneClass", m_new_sgserializable: __new_CMKLOneClass}, 00371 {m_class_name: "ScatterSVM", m_new_sgserializable: __new_CScatterSVM}, 00372 {m_class_name: "LibSVM", m_new_sgserializable: __new_CLibSVM}, 00373 {m_class_name: "QPBSVMLib", m_new_sgserializable: __new_CQPBSVMLib}, 00374 {m_class_name: "GMNPSVM", m_new_sgserializable: __new_CGMNPSVM}, 00375 {m_class_name: "MultiClassSVM", m_new_sgserializable: __new_CMultiClassSVM}, 00376 {m_class_name: "SVMOcas", m_new_sgserializable: __new_CSVMOcas}, 00377 {m_class_name: "SVMSGD", m_new_sgserializable: __new_CSVMSGD}, 00378 {m_class_name: "GNPPSVM", m_new_sgserializable: __new_CGNPPSVM}, 00379 {m_class_name: "GMNPLib", m_new_sgserializable: __new_CGMNPLib}, 00380 {m_class_name: "SVM", m_new_sgserializable: __new_CSVM}, 00381 {m_class_name: "LibSVMOneClass", m_new_sgserializable: __new_CLibSVMOneClass}, 00382 {m_class_name: "SVMLin", m_new_sgserializable: __new_CSVMLin}, 00383 {m_class_name: "GPBTSVM", m_new_sgserializable: __new_CGPBTSVM}, 00384 {m_class_name: "GNPPLib", m_new_sgserializable: __new_CGNPPLib}, 00385 {m_class_name: "WDSVMOcas", m_new_sgserializable: __new_CWDSVMOcas}, 00386 {m_class_name: "MPDSVM", m_new_sgserializable: __new_CMPDSVM}, 00387 {m_class_name: "LibLinear", m_new_sgserializable: __new_CLibLinear}, 00388 {m_class_name: "DomainAdaptationSVMLinear", m_new_sgserializable: __new_CDomainAdaptationSVMLinear}, 00389 {m_class_name: "SubGradientSVM", m_new_sgserializable: __new_CSubGradientSVM}, 00390 {m_class_name: "LibSVMMultiClass", m_new_sgserializable: __new_CLibSVMMultiClass}, 00391 {m_class_name: "KNN", m_new_sgserializable: __new_CKNN}, 00392 {m_class_name: "KernelPerceptron", m_new_sgserializable: __new_CKernelPerceptron}, 00393 {m_class_name: "Perceptron", m_new_sgserializable: __new_CPerceptron}, 00394 {m_class_name: "KernelMachine", m_new_sgserializable: __new_CKernelMachine}, 00395 {m_class_name: "PluginEstimate", m_new_sgserializable: __new_CPluginEstimate}, 00396 {m_class_name: "SegmentLoss", m_new_sgserializable: __new_CSegmentLoss}, 00397 {m_class_name: "IntronList", m_new_sgserializable: __new_CIntronList}, 00398 {m_class_name: "DynProg", m_new_sgserializable: __new_CDynProg}, 00399 {m_class_name: "PlifMatrix", m_new_sgserializable: __new_CPlifMatrix}, 00400 {m_class_name: "Plif", m_new_sgserializable: __new_CPlif}, 00401 {m_class_name: "PlifArray", m_new_sgserializable: __new_CPlifArray}, 00402 {m_class_name: "Alphabet", m_new_sgserializable: __new_CAlphabet}, 00403 {m_class_name: "PolyFeatures", m_new_sgserializable: __new_CPolyFeatures}, 00404 {m_class_name: "CombinedDotFeatures", m_new_sgserializable: __new_CCombinedDotFeatures}, 00405 {m_class_name: "ImplicitWeightedSpecFeatures", m_new_sgserializable: __new_CImplicitWeightedSpecFeatures}, 00406 {m_class_name: "CombinedFeatures", m_new_sgserializable: __new_CCombinedFeatures}, 00407 {m_class_name: "WDFeatures", m_new_sgserializable: __new_CWDFeatures}, 00408 {m_class_name: "RealFileFeatures", m_new_sgserializable: __new_CRealFileFeatures}, 00409 {m_class_name: "DummyFeatures", m_new_sgserializable: __new_CDummyFeatures}, 00410 {m_class_name: "TOPFeatures", m_new_sgserializable: __new_CTOPFeatures}, 00411 {m_class_name: "HashedWDFeaturesTransposed", m_new_sgserializable: __new_CHashedWDFeaturesTransposed}, 00412 {m_class_name: "FKFeatures", m_new_sgserializable: __new_CFKFeatures}, 00413 {m_class_name: "Labels", m_new_sgserializable: __new_CLabels}, 00414 {m_class_name: "SNPFeatures", m_new_sgserializable: __new_CSNPFeatures}, 00415 {m_class_name: "LBPPyrDotFeatures", m_new_sgserializable: __new_CLBPPyrDotFeatures}, 00416 {m_class_name: "SparsePolyFeatures", m_new_sgserializable: __new_CSparsePolyFeatures}, 00417 {m_class_name: "ExplicitSpecFeatures", m_new_sgserializable: __new_CExplicitSpecFeatures}, 00418 {m_class_name: "HashedWDFeatures", m_new_sgserializable: __new_CHashedWDFeatures}, 00419 {m_class_name: "PerformanceMeasures", m_new_sgserializable: __new_CPerformanceMeasures}, 00420 {m_class_name: "Hierarchical", m_new_sgserializable: __new_CHierarchical}, 00421 {m_class_name: "KMeans", m_new_sgserializable: __new_CKMeans}, 00422 {m_class_name: "Math", m_new_sgserializable: __new_CMath}, 00423 {m_class_name: "DynamicArrayPtr", m_new_sgserializable: __new_CDynamicArrayPtr}, 00424 {m_class_name: "ListElement", m_new_sgserializable: __new_CListElement}, 00425 {m_class_name: "List", m_new_sgserializable: __new_CList}, 00426 {m_class_name: "AsciiFile", m_new_sgserializable: __new_CAsciiFile}, 00427 {m_class_name: "Signal", m_new_sgserializable: __new_CSignal}, 00428 {m_class_name: "BitString", m_new_sgserializable: __new_CBitString}, 00429 {m_class_name: "Time", m_new_sgserializable: __new_CTime}, 00430 {m_class_name: "Hash", m_new_sgserializable: __new_CHash}, 00431 {m_class_name: "BinaryFile", m_new_sgserializable: __new_CBinaryFile}, 00432 {m_class_name: "SerializableAsciiFile", m_new_sgserializable: __new_CSerializableAsciiFile}, 00433 {m_class_name: "AvgDiagKernelNormalizer", m_new_sgserializable: __new_CAvgDiagKernelNormalizer}, 00434 {m_class_name: "SimpleLocalityImprovedStringKernel", m_new_sgserializable: __new_CSimpleLocalityImprovedStringKernel}, 00435 {m_class_name: "LocalityImprovedStringKernel", m_new_sgserializable: __new_CLocalityImprovedStringKernel}, 00436 {m_class_name: "ScatterKernelNormalizer", m_new_sgserializable: __new_CScatterKernelNormalizer}, 00437 {m_class_name: "FirstElementKernelNormalizer", m_new_sgserializable: __new_CFirstElementKernelNormalizer}, 00438 {m_class_name: "GaussianShiftKernel", m_new_sgserializable: __new_CGaussianShiftKernel}, 00439 {m_class_name: "CustomKernel", m_new_sgserializable: __new_CCustomKernel}, 00440 {m_class_name: "SqrtDiagKernelNormalizer", m_new_sgserializable: __new_CSqrtDiagKernelNormalizer}, 00441 {m_class_name: "GaussianKernel", m_new_sgserializable: __new_CGaussianKernel}, 00442 {m_class_name: "AUCKernel", m_new_sgserializable: __new_CAUCKernel}, 00443 {m_class_name: "IdentityKernelNormalizer", m_new_sgserializable: __new_CIdentityKernelNormalizer}, 00444 {m_class_name: "RidgeKernelNormalizer", m_new_sgserializable: __new_CRidgeKernelNormalizer}, 00445 {m_class_name: "ZeroMeanCenterKernelNormalizer", m_new_sgserializable: __new_CZeroMeanCenterKernelNormalizer}, 00446 {m_class_name: "RegulatoryModulesStringKernel", m_new_sgserializable: __new_CRegulatoryModulesStringKernel}, 00447 {m_class_name: "PolyMatchStringKernel", m_new_sgserializable: __new_CPolyMatchStringKernel}, 00448 {m_class_name: "PolyMatchWordStringKernel", m_new_sgserializable: __new_CPolyMatchWordStringKernel}, 00449 {m_class_name: "WeightedDegreeStringKernel", m_new_sgserializable: __new_CWeightedDegreeStringKernel}, 00450 {m_class_name: "OligoStringKernel", m_new_sgserializable: __new_COligoStringKernel}, 00451 {m_class_name: "CombinedKernel", m_new_sgserializable: __new_CCombinedKernel}, 00452 {m_class_name: "LocalAlignmentStringKernel", m_new_sgserializable: __new_CLocalAlignmentStringKernel}, 00453 {m_class_name: "FixedDegreeStringKernel", m_new_sgserializable: __new_CFixedDegreeStringKernel}, 00454 {m_class_name: "Chi2Kernel", m_new_sgserializable: __new_CChi2Kernel}, 00455 {m_class_name: "MultitaskKernelMaskPairNormalizer", m_new_sgserializable: __new_CMultitaskKernelMaskPairNormalizer}, 00456 {m_class_name: "PyramidChi2", m_new_sgserializable: __new_CPyramidChi2}, 00457 {m_class_name: "LinearKernel", m_new_sgserializable: __new_CLinearKernel}, 00458 {m_class_name: "Node", m_new_sgserializable: __new_CNode}, 00459 {m_class_name: "Taxonomy", m_new_sgserializable: __new_CTaxonomy}, 00460 {m_class_name: "MultitaskKernelTreeNormalizer", m_new_sgserializable: __new_CMultitaskKernelTreeNormalizer}, 00461 {m_class_name: "CommWordStringKernel", m_new_sgserializable: __new_CCommWordStringKernel}, 00462 {m_class_name: "SNPStringKernel", m_new_sgserializable: __new_CSNPStringKernel}, 00463 {m_class_name: "DistanceKernel", m_new_sgserializable: __new_CDistanceKernel}, 00464 {m_class_name: "GaussianMatchStringKernel", m_new_sgserializable: __new_CGaussianMatchStringKernel}, 00465 {m_class_name: "SpectrumRBFKernel", m_new_sgserializable: __new_CSpectrumRBFKernel}, 00466 {m_class_name: "MultitaskKernelPlifNormalizer", m_new_sgserializable: __new_CMultitaskKernelPlifNormalizer}, 00467 {m_class_name: "HistogramIntersectionKernel", m_new_sgserializable: __new_CHistogramIntersectionKernel}, 00468 {m_class_name: "HistogramWordStringKernel", m_new_sgserializable: __new_CHistogramWordStringKernel}, 00469 {m_class_name: "WeightedDegreePositionStringKernel", m_new_sgserializable: __new_CWeightedDegreePositionStringKernel}, 00470 {m_class_name: "LinearStringKernel", m_new_sgserializable: __new_CLinearStringKernel}, 00471 {m_class_name: "WeightedDegreeRBFKernel", m_new_sgserializable: __new_CWeightedDegreeRBFKernel}, 00472 {m_class_name: "TensorProductPairKernel", m_new_sgserializable: __new_CTensorProductPairKernel}, 00473 {m_class_name: "SalzbergWordStringKernel", m_new_sgserializable: __new_CSalzbergWordStringKernel}, 00474 {m_class_name: "DiceKernelNormalizer", m_new_sgserializable: __new_CDiceKernelNormalizer}, 00475 {m_class_name: "PolyKernel", m_new_sgserializable: __new_CPolyKernel}, 00476 {m_class_name: "SigmoidKernel", m_new_sgserializable: __new_CSigmoidKernel}, 00477 {m_class_name: "GaussianShortRealKernel", m_new_sgserializable: __new_CGaussianShortRealKernel}, 00478 {m_class_name: "DiagKernel", m_new_sgserializable: __new_CDiagKernel}, 00479 {m_class_name: "VarianceKernelNormalizer", m_new_sgserializable: __new_CVarianceKernelNormalizer}, 00480 {m_class_name: "ConstKernel", m_new_sgserializable: __new_CConstKernel}, 00481 {m_class_name: "TanimotoKernelNormalizer", m_new_sgserializable: __new_CTanimotoKernelNormalizer}, 00482 {m_class_name: "MultitaskKernelNormalizer", m_new_sgserializable: __new_CMultitaskKernelNormalizer}, 00483 {m_class_name: "CommUlongStringKernel", m_new_sgserializable: __new_CCommUlongStringKernel}, 00484 {m_class_name: "MatchWordStringKernel", m_new_sgserializable: __new_CMatchWordStringKernel}, 00485 {m_class_name: "SpectrumMismatchRBFKernel", m_new_sgserializable: __new_CSpectrumMismatchRBFKernel}, 00486 {m_class_name: "WeightedCommWordStringKernel", m_new_sgserializable: __new_CWeightedCommWordStringKernel}, 00487 {m_class_name: "SparseSpatialSampleStringKernel", m_new_sgserializable: __new_CSparseSpatialSampleStringKernel}, 00488 {m_class_name: "MultitaskKernelMaskNormalizer", m_new_sgserializable: __new_CMultitaskKernelMaskNormalizer}, 00489 {m_class_name: "LogPlusOne", m_new_sgserializable: __new_CLogPlusOne}, 00490 {m_class_name: "SortUlongString", m_new_sgserializable: __new_CSortUlongString}, 00491 {m_class_name: "SortWordString", m_new_sgserializable: __new_CSortWordString}, 00492 {m_class_name: "NormOne", m_new_sgserializable: __new_CNormOne}, 00493 {m_class_name: "PruneVarSubMean", m_new_sgserializable: __new_CPruneVarSubMean}, 00494 {m_class_name: "NormDerivativeLem3", m_new_sgserializable: __new_CNormDerivativeLem3}, 00495 {m_class_name: "ManhattanWordDistance", m_new_sgserializable: __new_CManhattanWordDistance}, 00496 {m_class_name: "BrayCurtisDistance", m_new_sgserializable: __new_CBrayCurtisDistance}, 00497 {m_class_name: "HammingWordDistance", m_new_sgserializable: __new_CHammingWordDistance}, 00498 {m_class_name: "CanberraWordDistance", m_new_sgserializable: __new_CCanberraWordDistance}, 00499 {m_class_name: "ChiSquareDistance", m_new_sgserializable: __new_CChiSquareDistance}, 00500 {m_class_name: "MinkowskiMetric", m_new_sgserializable: __new_CMinkowskiMetric}, 00501 {m_class_name: "ManhattanMetric", m_new_sgserializable: __new_CManhattanMetric}, 00502 {m_class_name: "TanimotoDistance", m_new_sgserializable: __new_CTanimotoDistance}, 00503 {m_class_name: "CosineDistance", m_new_sgserializable: __new_CCosineDistance}, 00504 {m_class_name: "EuclidianDistance", m_new_sgserializable: __new_CEuclidianDistance}, 00505 {m_class_name: "SparseEuclidianDistance", m_new_sgserializable: __new_CSparseEuclidianDistance}, 00506 {m_class_name: "GeodesicMetric", m_new_sgserializable: __new_CGeodesicMetric}, 00507 {m_class_name: "ChebyshewMetric", m_new_sgserializable: __new_CChebyshewMetric}, 00508 {m_class_name: "CustomDistance", m_new_sgserializable: __new_CCustomDistance}, 00509 {m_class_name: "JensenMetric", m_new_sgserializable: __new_CJensenMetric}, 00510 {m_class_name: "KernelDistance", m_new_sgserializable: __new_CKernelDistance}, 00511 {m_class_name: "CanberraMetric", m_new_sgserializable: __new_CCanberraMetric}, 00512 {m_class_name: "LibSVR", m_new_sgserializable: __new_CLibSVR}, 00513 {m_class_name: "MKLRegression", m_new_sgserializable: __new_CMKLRegression}, 00514 {m_class_name: "Histogram", m_new_sgserializable: __new_CHistogram}, 00515 {m_class_name: "HMM", m_new_sgserializable: __new_CHMM}, 00516 {m_class_name: "GHMM", m_new_sgserializable: __new_CGHMM}, 00517 {m_class_name: "LinearHMM", m_new_sgserializable: __new_CLinearHMM}, 00518 {m_class_name: "SignalModel", m_new_sgserializable: __new_CSignalModel}, 00519 {m_class_name: "StringFileFeatures", m_new_sgserializable: __new_CStringFileFeatures}, 00520 {m_class_name: "SimpleFeatures", m_new_sgserializable: __new_CSimpleFeatures}, 00521 {m_class_name: "StringFeatures", m_new_sgserializable: __new_CStringFeatures}, 00522 {m_class_name: "SparseFeatures", m_new_sgserializable: __new_CSparseFeatures}, 00523 {m_class_name: "Array", m_new_sgserializable: __new_CArray}, 00524 {m_class_name: "Cache", m_new_sgserializable: __new_CCache}, 00525 {m_class_name: "SimpleFile", m_new_sgserializable: __new_CSimpleFile}, 00526 {m_class_name: "Array3", m_new_sgserializable: __new_CArray3}, 00527 {m_class_name: "BinaryStream", m_new_sgserializable: __new_CBinaryStream}, 00528 {m_class_name: "MemoryMappedFile", m_new_sgserializable: __new_CMemoryMappedFile}, 00529 {m_class_name: "DynamicArray", m_new_sgserializable: __new_CDynamicArray}, 00530 {m_class_name: "Array2", m_new_sgserializable: __new_CArray2}, 00531 {m_class_name: "Set", m_new_sgserializable: __new_CSet}, 00532 {m_class_name: "DecompressString", m_new_sgserializable: __new_CDecompressString}, 00533 00534 {m_class_name: NULL, m_new_sgserializable: NULL} 00535 }; 00536 00537 CSGObject* shogun::new_sgserializable(const char* sgserializable_name, 00538 EPrimitiveType generic) 00539 { 00540 for (class_list_entry_t* i=class_list; i->m_class_name != NULL; 00541 i++) 00542 { 00543 if (strncmp(i->m_class_name, sgserializable_name, STRING_LEN) == 0) 00544 return i->m_new_sgserializable(generic); 00545 } 00546 00547 return NULL; 00548 }