SHOGUN  v1.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
class_list.cpp
Go to the documentation of this file.
1 /*
2  * THIS IS A GENERATED FILE! DO NOT CHANGE THIS FILE! CHANGE THE
3  * CORRESPONDING TEMPLAT FILE, PLEASE!
4 -e */
5 
6 /*
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * Written (W) 2009 Soeren Sonnenburg
13  * Copyright (C) 2009 Fraunhofer Institute FIRST and Max-Planck-Society
14  */
15 
16 #include "lib/common.h"
17 #include "base/class_list.h"
18 
19 #include <string.h>
20 
21 #include "kernel/Kernel.h"
22 
23 #include "features/DummyFeatures.h"
24 #include "features/FKFeatures.h"
25 #include "features/Alphabet.h"
33 #include "features/WDFeatures.h"
35 #include "features/Subset.h"
40 #include "features/PolyFeatures.h"
41 #include "features/SNPFeatures.h"
44 #include "features/Labels.h"
47 #include "features/TOPFeatures.h"
49 #include "mathematics/Math.h"
50 #include "mathematics/Statistics.h"
51 #include "classifier/KNN.h"
55 #include "classifier/vw/VwParser.h"
67 #include "classifier/svm/SVMSGD.h"
68 #include "classifier/svm/SGDQN.h"
70 #include "classifier/svm/GPBTSVM.h"
72 #include "classifier/svm/MPDSVM.h"
74 #include "classifier/svm/GMNPLib.h"
78 #include "classifier/svm/GNPPLib.h"
81 #include "classifier/svm/LibSVM.h"
82 #include "classifier/svm/LaRank.h"
83 #include "classifier/svm/SVMOcas.h"
84 #include "classifier/svm/GNPPSVM.h"
85 #include "classifier/svm/GMNPSVM.h"
86 #include "classifier/svm/SVMLin.h"
88 #include "classifier/svm/SVM.h"
89 #include "classifier/svm/Tron.h"
91 #include "classifier/LDA.h"
92 #include "classifier/Perceptron.h"
93 #include "clustering/KMeans.h"
95 #include "clustering/GMM.h"
96 #include "ui/GUIPreprocessor.h"
97 #include "ui/GUIStructure.h"
98 #include "ui/GUIDistance.h"
99 #include "ui/GUIKernel.h"
100 #include "ui/GUIHMM.h"
101 #include "ui/GUIFeatures.h"
102 #include "ui/GUIClassifier.h"
103 #include "ui/GUIPluginEstimate.h"
104 #include "ui/GUITime.h"
105 #include "ui/GUILabels.h"
106 #include "ui/GUIMath.h"
108 #include "preprocessor/NormOne.h"
109 #include "preprocessor/LogPlusOne.h"
113 #include "preprocessor/PCA.h"
115 #include "preprocessor/KernelPCA.h"
123 #include "distance/JensenMetric.h"
126 #include "distance/CustomDistance.h"
128 #include "distance/KernelDistance.h"
129 #include "distance/CanberraMetric.h"
131 #include "distance/CosineDistance.h"
135 #include "distance/GeodesicMetric.h"
138 #include "structure/PlifMatrix.h"
139 #include "structure/Plif.h"
140 #include "structure/DynProg.h"
141 #include "structure/SegmentLoss.h"
142 #include "structure/IntronList.h"
143 #include "structure/PlifArray.h"
146 #include "io/BinaryFile.h"
147 #include "io/BinaryStream.h"
148 #include "io/AsciiFile.h"
149 #include "io/StreamingFile.h"
150 #include "io/ParseBuffer.h"
151 #include "io/StreamingVwCacheFile.h"
153 #include "io/SimpleFile.h"
154 #include "io/MemoryMappedFile.h"
155 #include "io/StreamingAsciiFile.h"
156 #include "io/IOBuffer.h"
159 #include "io/StreamingVwFile.h"
160 #include "loss/LogLoss.h"
161 #include "loss/HingeLoss.h"
162 #include "loss/SquaredLoss.h"
163 #include "loss/SmoothHingeLoss.h"
164 #include "loss/LogLossMargin.h"
165 #include "loss/SquaredHingeLoss.h"
174 #include "distributions/GHMM.h"
175 #include "distributions/HMM.h"
176 #include "distributions/Gaussian.h"
178 #include "distributions/Histogram.h"
179 #include "distributions/LinearHMM.h"
180 #include "machine/KernelMachine.h"
182 #include "machine/LinearMachine.h"
183 #include "machine/DistanceMachine.h"
185 #include "converter/DiffusionMaps.h"
192 #include "converter/Isomap.h"
197 #include "regression/svr/LibSVR.h"
198 #include "regression/KRR.h"
199 #include "lib/List.h"
200 #include "lib/Compressor.h"
201 #include "lib/Set.h"
202 #include "lib/Cache.h"
203 #include "lib/Time.h"
204 #include "lib/FibonacciHeap.h"
205 #include "lib/DynamicArray.h"
206 #include "lib/DynamicObjectArray.h"
207 #include "lib/Array2.h"
208 #include "lib/Hash.h"
209 #include "lib/Signal.h"
210 #include "lib/HashSet.h"
211 #include "lib/Array3.h"
212 #include "lib/BitString.h"
213 #include "lib/Array.h"
215 #include "kernel/CauchyKernel.h"
216 #include "kernel/LogKernel.h"
218 #include "kernel/SNPStringKernel.h"
220 #include "kernel/Chi2Kernel.h"
223 #include "kernel/SigmoidKernel.h"
225 #include "kernel/TStudentKernel.h"
227 #include "kernel/SphericalKernel.h"
230 #include "kernel/AUCKernel.h"
234 #include "kernel/WaveletKernel.h"
236 #include "kernel/GaussianKernel.h"
241 #include "kernel/BesselKernel.h"
242 #include "kernel/CustomKernel.h"
244 #include "kernel/PolyKernel.h"
249 #include "kernel/ConstKernel.h"
250 #include "kernel/PowerKernel.h"
256 #include "kernel/LinearKernel.h"
257 #include "kernel/CombinedKernel.h"
258 #include "kernel/CircularKernel.h"
265 #include "kernel/DistanceKernel.h"
272 #include "kernel/ANOVAKernel.h"
273 #include "kernel/PyramidChi2.h"
276 #include "kernel/DiagKernel.h"
279 #include "kernel/SplineKernel.h"
280 #include "kernel/WaveKernel.h"
284 using namespace shogun;
285 
286 static CSGObject* __new_CDummyFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDummyFeatures(): NULL; }
287 static CSGObject* __new_CFKFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CFKFeatures(): NULL; }
288 static CSGObject* __new_CAlphabet(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CAlphabet(): NULL; }
289 static CSGObject* __new_CImplicitWeightedSpecFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CImplicitWeightedSpecFeatures(): NULL; }
290 static CSGObject* __new_CExplicitSpecFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CExplicitSpecFeatures(): NULL; }
291 static CSGObject* __new_CCombinedDotFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCombinedDotFeatures(): NULL; }
292 static CSGObject* __new_CHashedWDFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHashedWDFeatures(): NULL; }
293 static CSGObject* __new_CCombinedFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCombinedFeatures(): NULL; }
294 static CSGObject* __new_CWDFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CWDFeatures(): NULL; }
295 static CSGObject* __new_CSubset(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSubset(): NULL; }
296 static CSGObject* __new_CStreamingVwFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CStreamingVwFeatures(): NULL; }
297 static CSGObject* __new_CRealFileFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CRealFileFeatures(): NULL; }
298 static CSGObject* __new_CPolyFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPolyFeatures(): NULL; }
299 static CSGObject* __new_CSNPFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSNPFeatures(): NULL; }
300 static CSGObject* __new_CLBPPyrDotFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLBPPyrDotFeatures(): NULL; }
301 static CSGObject* __new_CLabels(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLabels(): NULL; }
302 static CSGObject* __new_CHashedWDFeaturesTransposed(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHashedWDFeaturesTransposed(): NULL; }
303 static CSGObject* __new_CTOPFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CTOPFeatures(): NULL; }
304 static CSGObject* __new_CSparsePolyFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSparsePolyFeatures(): NULL; }
305 static CSGObject* __new_CMath(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMath(): NULL; }
306 static CSGObject* __new_CStatistics(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CStatistics(): NULL; }
307 static CSGObject* __new_CKNN(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CKNN(): NULL; }
308 static CSGObject* __new_CVwEnvironment(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CVwEnvironment(): NULL; }
309 static CSGObject* __new_CVwNonAdaptiveLearner(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CVwNonAdaptiveLearner(): NULL; }
310 static CSGObject* __new_CVwAdaptiveLearner(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CVwAdaptiveLearner(): NULL; }
311 static CSGObject* __new_CVwParser(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CVwParser(): NULL; }
312 static CSGObject* __new_CVwRegressor(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CVwRegressor(): NULL; }
313 static CSGObject* __new_CVwNativeCacheWriter(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CVwNativeCacheWriter(): NULL; }
314 static CSGObject* __new_CVwNativeCacheReader(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CVwNativeCacheReader(): NULL; }
315 static CSGObject* __new_CVowpalWabbit(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CVowpalWabbit(): NULL; }
316 static CSGObject* __new_CAveragedPerceptron(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CAveragedPerceptron(): NULL; }
317 static CSGObject* __new_CMKLClassification(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMKLClassification(): NULL; }
318 static CSGObject* __new_CMKLOneClass(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMKLOneClass(): NULL; }
319 static CSGObject* __new_CMKLMultiClass(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMKLMultiClass(): NULL; }
320 static CSGObject* __new_CPluginEstimate(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPluginEstimate(): NULL; }
321 static CSGObject* __new_CGaussianNaiveBayes(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGaussianNaiveBayes(): NULL; }
322 static CSGObject* __new_CLibSVMOneClass(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLibSVMOneClass(): NULL; }
323 static CSGObject* __new_CSVMSGD(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSVMSGD(): NULL; }
324 static CSGObject* __new_CSGDQN(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSGDQN(): NULL; }
325 static CSGObject* __new_CLibLinear(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLibLinear(): NULL; }
326 static CSGObject* __new_CGPBTSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGPBTSVM(): NULL; }
327 static CSGObject* __new_CQPBSVMLib(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CQPBSVMLib(): NULL; }
328 static CSGObject* __new_CMPDSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMPDSVM(): NULL; }
329 static CSGObject* __new_COnlineLibLinear(EPrimitiveType g) { return g == PT_NOT_GENERIC? new COnlineLibLinear(): NULL; }
330 static CSGObject* __new_CGMNPLib(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGMNPLib(): NULL; }
331 static CSGObject* __new_CLibSVMMultiClass(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLibSVMMultiClass(): NULL; }
332 static CSGObject* __new_CScatterSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CScatterSVM(): NULL; }
333 static CSGObject* __new_CMultiClassSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMultiClassSVM(): NULL; }
334 static CSGObject* __new_CGNPPLib(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGNPPLib(): NULL; }
335 static CSGObject* __new_CWDSVMOcas(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CWDSVMOcas(): NULL; }
336 static CSGObject* __new_CDomainAdaptationSVMLinear(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDomainAdaptationSVMLinear(): NULL; }
337 static CSGObject* __new_CLibSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLibSVM(): NULL; }
338 static CSGObject* __new_CLaRank(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLaRank(): NULL; }
339 static CSGObject* __new_CSVMOcas(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSVMOcas(): NULL; }
340 static CSGObject* __new_CGNPPSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGNPPSVM(): NULL; }
341 static CSGObject* __new_CGMNPSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGMNPSVM(): NULL; }
342 static CSGObject* __new_CSVMLin(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSVMLin(): NULL; }
343 static CSGObject* __new_CSubGradientSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSubGradientSVM(): NULL; }
344 static CSGObject* __new_CSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSVM(): NULL; }
345 static CSGObject* __new_CTron(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CTron(): NULL; }
346 static CSGObject* __new_COnlineSVMSGD(EPrimitiveType g) { return g == PT_NOT_GENERIC? new COnlineSVMSGD(): NULL; }
347 static CSGObject* __new_CLDA(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLDA(): NULL; }
348 static CSGObject* __new_CPerceptron(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPerceptron(): NULL; }
349 static CSGObject* __new_CKMeans(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CKMeans(): NULL; }
350 static CSGObject* __new_CHierarchical(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHierarchical(): NULL; }
351 static CSGObject* __new_CGMM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGMM(): NULL; }
352 static CSGObject* __new_CGUIPreprocessor(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGUIPreprocessor(): NULL; }
353 static CSGObject* __new_CGUIStructure(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGUIStructure(): NULL; }
354 static CSGObject* __new_CGUIDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGUIDistance(): NULL; }
355 static CSGObject* __new_CGUIKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGUIKernel(): NULL; }
356 static CSGObject* __new_CGUIHMM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGUIHMM(): NULL; }
357 static CSGObject* __new_CGUIFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGUIFeatures(): NULL; }
358 static CSGObject* __new_CGUIClassifier(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGUIClassifier(): NULL; }
359 static CSGObject* __new_CGUIPluginEstimate(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGUIPluginEstimate(): NULL; }
360 static CSGObject* __new_CGUITime(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGUITime(): NULL; }
361 static CSGObject* __new_CGUILabels(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGUILabels(): NULL; }
362 static CSGObject* __new_CGUIMath(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGUIMath(): NULL; }
363 static CSGObject* __new_CSortWordString(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSortWordString(): NULL; }
364 static CSGObject* __new_CNormOne(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CNormOne(): NULL; }
365 static CSGObject* __new_CLogPlusOne(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLogPlusOne(): NULL; }
366 static CSGObject* __new_CSortUlongString(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSortUlongString(): NULL; }
368 static CSGObject* __new_CPCA(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPCA(): NULL; }
369 static CSGObject* __new_CPruneVarSubMean(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPruneVarSubMean(): NULL; }
370 static CSGObject* __new_CKernelPCA(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CKernelPCA(): NULL; }
371 static CSGObject* __new_CRandomFourierGaussPreproc(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CRandomFourierGaussPreproc(): NULL; }
372 static CSGObject* __new_CParameterCombination(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CParameterCombination(): NULL; }
373 static CSGObject* __new_CGridSearchModelSelection(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGridSearchModelSelection(): NULL; }
374 static CSGObject* __new_CModelSelectionParameters(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CModelSelectionParameters(): NULL; }
375 static CSGObject* __new_CChebyshewMetric(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CChebyshewMetric(): NULL; }
376 static CSGObject* __new_CBrayCurtisDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CBrayCurtisDistance(): NULL; }
377 static CSGObject* __new_CEuclidianDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CEuclidianDistance(): NULL; }
378 static CSGObject* __new_CJensenMetric(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CJensenMetric(): NULL; }
379 static CSGObject* __new_CHammingWordDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHammingWordDistance(): NULL; }
380 static CSGObject* __new_CManhattanMetric(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CManhattanMetric(): NULL; }
381 static CSGObject* __new_CCustomDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCustomDistance(): NULL; }
382 static CSGObject* __new_CSparseEuclidianDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSparseEuclidianDistance(): NULL; }
383 static CSGObject* __new_CKernelDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CKernelDistance(): NULL; }
384 static CSGObject* __new_CCanberraMetric(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCanberraMetric(): NULL; }
385 static CSGObject* __new_CChiSquareDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CChiSquareDistance(): NULL; }
386 static CSGObject* __new_CCosineDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCosineDistance(): NULL; }
387 static CSGObject* __new_CMinkowskiMetric(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMinkowskiMetric(): NULL; }
388 static CSGObject* __new_CCanberraWordDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCanberraWordDistance(): NULL; }
389 static CSGObject* __new_CTanimotoDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CTanimotoDistance(): NULL; }
390 static CSGObject* __new_CGeodesicMetric(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGeodesicMetric(): NULL; }
391 static CSGObject* __new_CAttenuatedEuclidianDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CAttenuatedEuclidianDistance(): NULL; }
392 static CSGObject* __new_CManhattanWordDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CManhattanWordDistance(): NULL; }
393 static CSGObject* __new_CPlifMatrix(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPlifMatrix(): NULL; }
394 static CSGObject* __new_CPlif(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPlif(): NULL; }
395 static CSGObject* __new_CDynProg(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDynProg(): NULL; }
396 static CSGObject* __new_CSegmentLoss(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSegmentLoss(): NULL; }
397 static CSGObject* __new_CIntronList(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CIntronList(): NULL; }
398 static CSGObject* __new_CPlifArray(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPlifArray(): NULL; }
399 static CSGObject* __new_CSerializableAsciiFile(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSerializableAsciiFile(): NULL; }
400 static CSGObject* __new_CStreamingFileFromFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CStreamingFileFromFeatures(): NULL; }
401 static CSGObject* __new_CBinaryFile(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CBinaryFile(): NULL; }
402 static CSGObject* __new_CAsciiFile(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CAsciiFile(): NULL; }
403 static CSGObject* __new_CStreamingFile(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CStreamingFile(): NULL; }
404 static CSGObject* __new_CStreamingVwCacheFile(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CStreamingVwCacheFile(): NULL; }
405 static CSGObject* __new_CStreamingAsciiFile(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CStreamingAsciiFile(): NULL; }
406 static CSGObject* __new_CIOBuffer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CIOBuffer(): NULL; }
407 static CSGObject* __new_CStreamingVwFile(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CStreamingVwFile(): NULL; }
408 static CSGObject* __new_CLogLoss(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLogLoss(): NULL; }
409 static CSGObject* __new_CHingeLoss(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHingeLoss(): NULL; }
410 static CSGObject* __new_CSquaredLoss(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSquaredLoss(): NULL; }
411 static CSGObject* __new_CSmoothHingeLoss(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSmoothHingeLoss(): NULL; }
412 static CSGObject* __new_CLogLossMargin(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLogLossMargin(): NULL; }
413 static CSGObject* __new_CSquaredHingeLoss(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSquaredHingeLoss(): NULL; }
414 static CSGObject* __new_CMulticlassAccuracy(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMulticlassAccuracy(): NULL; }
415 static CSGObject* __new_CMeanSquaredError(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMeanSquaredError(): NULL; }
416 static CSGObject* __new_CCrossValidation(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCrossValidation(): NULL; }
417 static CSGObject* __new_CContingencyTableEvaluation(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CContingencyTableEvaluation(): NULL; }
418 static CSGObject* __new_CAccuracyMeasure(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CAccuracyMeasure(): NULL; }
419 static CSGObject* __new_CErrorRateMeasure(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CErrorRateMeasure(): NULL; }
420 static CSGObject* __new_CBALMeasure(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CBALMeasure(): NULL; }
421 static CSGObject* __new_CWRACCMeasure(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CWRACCMeasure(): NULL; }
422 static CSGObject* __new_CF1Measure(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CF1Measure(): NULL; }
423 static CSGObject* __new_CCrossCorrelationMeasure(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCrossCorrelationMeasure(): NULL; }
424 static CSGObject* __new_CRecallMeasure(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CRecallMeasure(): NULL; }
425 static CSGObject* __new_CPrecisionMeasure(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPrecisionMeasure(): NULL; }
426 static CSGObject* __new_CSpecificityMeasure(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSpecificityMeasure(): NULL; }
427 static CSGObject* __new_CPRCEvaluation(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPRCEvaluation(): NULL; }
429 static CSGObject* __new_CMeanAbsoluteError(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMeanAbsoluteError(): NULL; }
430 static CSGObject* __new_CROCEvaluation(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CROCEvaluation(): NULL; }
431 static CSGObject* __new_CGHMM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGHMM(): NULL; }
432 static CSGObject* __new_CHMM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHMM(): NULL; }
433 static CSGObject* __new_CGaussian(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGaussian(): NULL; }
434 static CSGObject* __new_CPositionalPWM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPositionalPWM(): NULL; }
435 static CSGObject* __new_CHistogram(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHistogram(): NULL; }
436 static CSGObject* __new_CLinearHMM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLinearHMM(): NULL; }
437 static CSGObject* __new_CKernelMachine(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CKernelMachine(): NULL; }
438 static CSGObject* __new_COnlineLinearMachine(EPrimitiveType g) { return g == PT_NOT_GENERIC? new COnlineLinearMachine(): NULL; }
439 static CSGObject* __new_CLinearMachine(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLinearMachine(): NULL; }
440 static CSGObject* __new_CDistanceMachine(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDistanceMachine(): NULL; }
442 static CSGObject* __new_CDiffusionMaps(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDiffusionMaps(): NULL; }
443 static CSGObject* __new_CLocallyLinearEmbedding(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLocallyLinearEmbedding(): NULL; }
447 static CSGObject* __new_CLocalTangentSpaceAlignment(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLocalTangentSpaceAlignment(): NULL; }
448 static CSGObject* __new_CKernelLocallyLinearEmbedding(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CKernelLocallyLinearEmbedding(): NULL; }
449 static CSGObject* __new_CIsomap(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CIsomap(): NULL; }
450 static CSGObject* __new_CLaplacianEigenmaps(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLaplacianEigenmaps(): NULL; }
451 static CSGObject* __new_CMultidimensionalScaling(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMultidimensionalScaling(): NULL; }
453 static CSGObject* __new_CMKLRegression(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMKLRegression(): NULL; }
454 static CSGObject* __new_CLibSVR(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLibSVR(): NULL; }
455 static CSGObject* __new_CKRR(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CKRR(): NULL; }
456 static CSGObject* __new_CListElement(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CListElement(): NULL; }
457 static CSGObject* __new_CList(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CList(): NULL; }
458 static CSGObject* __new_CCompressor(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCompressor(): NULL; }
459 static CSGObject* __new_CTime(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CTime(): NULL; }
460 static CSGObject* __new_CFibonacciHeap(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CFibonacciHeap(): NULL; }
461 static CSGObject* __new_CHash(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHash(): NULL; }
462 static CSGObject* __new_CSignal(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSignal(): NULL; }
463 static CSGObject* __new_CHashSet(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHashSet(): NULL; }
464 static CSGObject* __new_CBitString(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CBitString(): NULL; }
465 static CSGObject* __new_CExponentialKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CExponentialKernel(): NULL; }
466 static CSGObject* __new_CCauchyKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCauchyKernel(): NULL; }
467 static CSGObject* __new_CLogKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLogKernel(): NULL; }
468 static CSGObject* __new_CNode(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CNode(): NULL; }
469 static CSGObject* __new_CTaxonomy(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CTaxonomy(): NULL; }
471 static CSGObject* __new_CSNPStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSNPStringKernel(): NULL; }
473 static CSGObject* __new_CChi2Kernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CChi2Kernel(): NULL; }
476 static CSGObject* __new_CSigmoidKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSigmoidKernel(): NULL; }
477 static CSGObject* __new_CHistogramIntersectionKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHistogramIntersectionKernel(): NULL; }
478 static CSGObject* __new_CTStudentKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CTStudentKernel(): NULL; }
479 static CSGObject* __new_CFirstElementKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CFirstElementKernelNormalizer(): NULL; }
480 static CSGObject* __new_CSphericalKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSphericalKernel(): NULL; }
481 static CSGObject* __new_COligoStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new COligoStringKernel(): NULL; }
482 static CSGObject* __new_CPolyMatchStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPolyMatchStringKernel(): NULL; }
483 static CSGObject* __new_CAUCKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CAUCKernel(): NULL; }
484 static CSGObject* __new_CLocalAlignmentStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLocalAlignmentStringKernel(): NULL; }
485 static CSGObject* __new_CMultiquadricKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMultiquadricKernel(): NULL; }
486 static CSGObject* __new_CSpectrumRBFKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSpectrumRBFKernel(): NULL; }
487 static CSGObject* __new_CWaveletKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CWaveletKernel(): NULL; }
488 static CSGObject* __new_CDistantSegmentsKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDistantSegmentsKernel(): NULL; }
489 static CSGObject* __new_CGaussianKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGaussianKernel(): NULL; }
490 static CSGObject* __new_CLinearStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLinearStringKernel(): NULL; }
491 static CSGObject* __new_CScatterKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CScatterKernelNormalizer(): NULL; }
494 static CSGObject* __new_CBesselKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CBesselKernel(): NULL; }
495 static CSGObject* __new_CCustomKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCustomKernel(): NULL; }
496 static CSGObject* __new_CTanimotoKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CTanimotoKernelNormalizer(): NULL; }
497 static CSGObject* __new_CPolyKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPolyKernel(): NULL; }
498 static CSGObject* __new_CHistogramWordStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHistogramWordStringKernel(): NULL; }
500 static CSGObject* __new_CSalzbergWordStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSalzbergWordStringKernel(): NULL; }
501 static CSGObject* __new_CRationalQuadraticKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CRationalQuadraticKernel(): NULL; }
502 static CSGObject* __new_CConstKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CConstKernel(): NULL; }
503 static CSGObject* __new_CPowerKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPowerKernel(): NULL; }
504 static CSGObject* __new_CWeightedDegreeStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CWeightedDegreeStringKernel(): NULL; }
505 static CSGObject* __new_CIdentityKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CIdentityKernelNormalizer(): NULL; }
506 static CSGObject* __new_CLocalityImprovedStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLocalityImprovedStringKernel(): NULL; }
507 static CSGObject* __new_CFixedDegreeStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CFixedDegreeStringKernel(): NULL; }
508 static CSGObject* __new_CAvgDiagKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CAvgDiagKernelNormalizer(): NULL; }
509 static CSGObject* __new_CLinearKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLinearKernel(): NULL; }
510 static CSGObject* __new_CCombinedKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCombinedKernel(): NULL; }
511 static CSGObject* __new_CCircularKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCircularKernel(): NULL; }
512 static CSGObject* __new_CMultitaskKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMultitaskKernelNormalizer(): NULL; }
513 static CSGObject* __new_CSpectrumMismatchRBFKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSpectrumMismatchRBFKernel(): NULL; }
514 static CSGObject* __new_CGaussianShortRealKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGaussianShortRealKernel(): NULL; }
515 static CSGObject* __new_CGaussianShiftKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGaussianShiftKernel(): NULL; }
516 static CSGObject* __new_CTensorProductPairKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CTensorProductPairKernel(): NULL; }
518 static CSGObject* __new_CDistanceKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDistanceKernel(): NULL; }
519 static CSGObject* __new_CRidgeKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CRidgeKernelNormalizer(): NULL; }
520 static CSGObject* __new_CMatchWordStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMatchWordStringKernel(): NULL; }
521 static CSGObject* __new_CWeightedCommWordStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CWeightedCommWordStringKernel(): NULL; }
522 static CSGObject* __new_CVarianceKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CVarianceKernelNormalizer(): NULL; }
524 static CSGObject* __new_CInverseMultiQuadricKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CInverseMultiQuadricKernel(): NULL; }
525 static CSGObject* __new_CANOVAKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CANOVAKernel(): NULL; }
526 static CSGObject* __new_CPyramidChi2(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPyramidChi2(): NULL; }
527 static CSGObject* __new_CWeightedDegreeRBFKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CWeightedDegreeRBFKernel(): NULL; }
528 static CSGObject* __new_CGaussianMatchStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGaussianMatchStringKernel(): NULL; }
529 static CSGObject* __new_CDiagKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDiagKernel(): NULL; }
530 static CSGObject* __new_CPolyMatchWordStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPolyMatchWordStringKernel(): NULL; }
531 static CSGObject* __new_CCommUlongStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCommUlongStringKernel(): NULL; }
532 static CSGObject* __new_CSplineKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSplineKernel(): NULL; }
533 static CSGObject* __new_CWaveKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CWaveKernel(): NULL; }
534 static CSGObject* __new_CDiceKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDiceKernelNormalizer(): NULL; }
535 static CSGObject* __new_CCommWordStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCommWordStringKernel(): NULL; }
536 static CSGObject* __new_CSqrtDiagKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSqrtDiagKernelNormalizer(): NULL; }
537 static CSGObject* __new_CSimpleFeatures(EPrimitiveType g)
538 {
539  switch (g)
540  {
541  case PT_BOOL: return new CSimpleFeatures<bool>();
542  case PT_CHAR: return new CSimpleFeatures<char>();
543  case PT_INT8: return new CSimpleFeatures<int8_t>();
544  case PT_UINT8: return new CSimpleFeatures<uint8_t>();
545  case PT_INT16: return new CSimpleFeatures<int16_t>();
546  case PT_UINT16: return new CSimpleFeatures<uint16_t>();
547  case PT_INT32: return new CSimpleFeatures<int32_t>();
548  case PT_UINT32: return new CSimpleFeatures<uint32_t>();
549  case PT_INT64: return new CSimpleFeatures<int64_t>();
550  case PT_UINT64: return new CSimpleFeatures<uint64_t>();
551  case PT_FLOAT32: return new CSimpleFeatures<float32_t>();
552  case PT_FLOAT64: return new CSimpleFeatures<float64_t>();
553  case PT_FLOATMAX: return new CSimpleFeatures<floatmax_t>();
554  case PT_SGOBJECT: return NULL;
555  }
556  return NULL;
557 }
558 static CSGObject* __new_CSparseFeatures(EPrimitiveType g)
559 {
560  switch (g)
561  {
562  case PT_BOOL: return new CSparseFeatures<bool>();
563  case PT_CHAR: return new CSparseFeatures<char>();
564  case PT_INT8: return new CSparseFeatures<int8_t>();
565  case PT_UINT8: return new CSparseFeatures<uint8_t>();
566  case PT_INT16: return new CSparseFeatures<int16_t>();
567  case PT_UINT16: return new CSparseFeatures<uint16_t>();
568  case PT_INT32: return new CSparseFeatures<int32_t>();
569  case PT_UINT32: return new CSparseFeatures<uint32_t>();
570  case PT_INT64: return new CSparseFeatures<int64_t>();
571  case PT_UINT64: return new CSparseFeatures<uint64_t>();
572  case PT_FLOAT32: return new CSparseFeatures<float32_t>();
573  case PT_FLOAT64: return new CSparseFeatures<float64_t>();
574  case PT_FLOATMAX: return new CSparseFeatures<floatmax_t>();
575  case PT_SGOBJECT: return NULL;
576  }
577  return NULL;
578 }
579 static CSGObject* __new_CStreamingStringFeatures(EPrimitiveType g)
580 {
581  switch (g)
582  {
583  case PT_BOOL: return new CStreamingStringFeatures<bool>();
584  case PT_CHAR: return new CStreamingStringFeatures<char>();
585  case PT_INT8: return new CStreamingStringFeatures<int8_t>();
586  case PT_UINT8: return new CStreamingStringFeatures<uint8_t>();
587  case PT_INT16: return new CStreamingStringFeatures<int16_t>();
588  case PT_UINT16: return new CStreamingStringFeatures<uint16_t>();
589  case PT_INT32: return new CStreamingStringFeatures<int32_t>();
590  case PT_UINT32: return new CStreamingStringFeatures<uint32_t>();
591  case PT_INT64: return new CStreamingStringFeatures<int64_t>();
592  case PT_UINT64: return new CStreamingStringFeatures<uint64_t>();
593  case PT_FLOAT32: return new CStreamingStringFeatures<float32_t>();
594  case PT_FLOAT64: return new CStreamingStringFeatures<float64_t>();
595  case PT_FLOATMAX: return new CStreamingStringFeatures<floatmax_t>();
596  case PT_SGOBJECT: return NULL;
597  }
598  return NULL;
599 }
600 static CSGObject* __new_CStreamingSimpleFeatures(EPrimitiveType g)
601 {
602  switch (g)
603  {
604  case PT_BOOL: return new CStreamingSimpleFeatures<bool>();
605  case PT_CHAR: return new CStreamingSimpleFeatures<char>();
606  case PT_INT8: return new CStreamingSimpleFeatures<int8_t>();
607  case PT_UINT8: return new CStreamingSimpleFeatures<uint8_t>();
608  case PT_INT16: return new CStreamingSimpleFeatures<int16_t>();
609  case PT_UINT16: return new CStreamingSimpleFeatures<uint16_t>();
610  case PT_INT32: return new CStreamingSimpleFeatures<int32_t>();
611  case PT_UINT32: return new CStreamingSimpleFeatures<uint32_t>();
612  case PT_INT64: return new CStreamingSimpleFeatures<int64_t>();
613  case PT_UINT64: return new CStreamingSimpleFeatures<uint64_t>();
614  case PT_FLOAT32: return new CStreamingSimpleFeatures<float32_t>();
615  case PT_FLOAT64: return new CStreamingSimpleFeatures<float64_t>();
616  case PT_FLOATMAX: return new CStreamingSimpleFeatures<floatmax_t>();
617  case PT_SGOBJECT: return NULL;
618  }
619  return NULL;
620 }
621 static CSGObject* __new_CStringFileFeatures(EPrimitiveType g)
622 {
623  switch (g)
624  {
625  case PT_BOOL: return new CStringFileFeatures<bool>();
626  case PT_CHAR: return new CStringFileFeatures<char>();
627  case PT_INT8: return new CStringFileFeatures<int8_t>();
628  case PT_UINT8: return new CStringFileFeatures<uint8_t>();
629  case PT_INT16: return new CStringFileFeatures<int16_t>();
630  case PT_UINT16: return new CStringFileFeatures<uint16_t>();
631  case PT_INT32: return new CStringFileFeatures<int32_t>();
632  case PT_UINT32: return new CStringFileFeatures<uint32_t>();
633  case PT_INT64: return new CStringFileFeatures<int64_t>();
634  case PT_UINT64: return new CStringFileFeatures<uint64_t>();
635  case PT_FLOAT32: return new CStringFileFeatures<float32_t>();
636  case PT_FLOAT64: return new CStringFileFeatures<float64_t>();
637  case PT_FLOATMAX: return new CStringFileFeatures<floatmax_t>();
638  case PT_SGOBJECT: return NULL;
639  }
640  return NULL;
641 }
642 static CSGObject* __new_CStreamingSparseFeatures(EPrimitiveType g)
643 {
644  switch (g)
645  {
646  case PT_BOOL: return new CStreamingSparseFeatures<bool>();
647  case PT_CHAR: return new CStreamingSparseFeatures<char>();
648  case PT_INT8: return new CStreamingSparseFeatures<int8_t>();
649  case PT_UINT8: return new CStreamingSparseFeatures<uint8_t>();
650  case PT_INT16: return new CStreamingSparseFeatures<int16_t>();
651  case PT_UINT16: return new CStreamingSparseFeatures<uint16_t>();
652  case PT_INT32: return new CStreamingSparseFeatures<int32_t>();
653  case PT_UINT32: return new CStreamingSparseFeatures<uint32_t>();
654  case PT_INT64: return new CStreamingSparseFeatures<int64_t>();
655  case PT_UINT64: return new CStreamingSparseFeatures<uint64_t>();
656  case PT_FLOAT32: return new CStreamingSparseFeatures<float32_t>();
657  case PT_FLOAT64: return new CStreamingSparseFeatures<float64_t>();
658  case PT_FLOATMAX: return new CStreamingSparseFeatures<floatmax_t>();
659  case PT_SGOBJECT: return NULL;
660  }
661  return NULL;
662 }
663 static CSGObject* __new_CStringFeatures(EPrimitiveType g)
664 {
665  switch (g)
666  {
667  case PT_BOOL: return new CStringFeatures<bool>();
668  case PT_CHAR: return new CStringFeatures<char>();
669  case PT_INT8: return new CStringFeatures<int8_t>();
670  case PT_UINT8: return new CStringFeatures<uint8_t>();
671  case PT_INT16: return new CStringFeatures<int16_t>();
672  case PT_UINT16: return new CStringFeatures<uint16_t>();
673  case PT_INT32: return new CStringFeatures<int32_t>();
674  case PT_UINT32: return new CStringFeatures<uint32_t>();
675  case PT_INT64: return new CStringFeatures<int64_t>();
676  case PT_UINT64: return new CStringFeatures<uint64_t>();
677  case PT_FLOAT32: return new CStringFeatures<float32_t>();
678  case PT_FLOAT64: return new CStringFeatures<float64_t>();
679  case PT_FLOATMAX: return new CStringFeatures<floatmax_t>();
680  case PT_SGOBJECT: return NULL;
681  }
682  return NULL;
683 }
684 static CSGObject* __new_CDecompressString(EPrimitiveType g)
685 {
686  switch (g)
687  {
688  case PT_BOOL: return new CDecompressString<bool>();
689  case PT_CHAR: return new CDecompressString<char>();
690  case PT_INT8: return new CDecompressString<int8_t>();
691  case PT_UINT8: return new CDecompressString<uint8_t>();
692  case PT_INT16: return new CDecompressString<int16_t>();
693  case PT_UINT16: return new CDecompressString<uint16_t>();
694  case PT_INT32: return new CDecompressString<int32_t>();
695  case PT_UINT32: return new CDecompressString<uint32_t>();
696  case PT_INT64: return new CDecompressString<int64_t>();
697  case PT_UINT64: return new CDecompressString<uint64_t>();
698  case PT_FLOAT32: return new CDecompressString<float32_t>();
699  case PT_FLOAT64: return new CDecompressString<float64_t>();
700  case PT_FLOATMAX: return new CDecompressString<floatmax_t>();
701  case PT_SGOBJECT: return NULL;
702  }
703  return NULL;
704 }
705 static CSGObject* __new_CBinaryStream(EPrimitiveType g)
706 {
707  switch (g)
708  {
709  case PT_BOOL: return new CBinaryStream<bool>();
710  case PT_CHAR: return new CBinaryStream<char>();
711  case PT_INT8: return new CBinaryStream<int8_t>();
712  case PT_UINT8: return new CBinaryStream<uint8_t>();
713  case PT_INT16: return new CBinaryStream<int16_t>();
714  case PT_UINT16: return new CBinaryStream<uint16_t>();
715  case PT_INT32: return new CBinaryStream<int32_t>();
716  case PT_UINT32: return new CBinaryStream<uint32_t>();
717  case PT_INT64: return new CBinaryStream<int64_t>();
718  case PT_UINT64: return new CBinaryStream<uint64_t>();
719  case PT_FLOAT32: return new CBinaryStream<float32_t>();
720  case PT_FLOAT64: return new CBinaryStream<float64_t>();
721  case PT_FLOATMAX: return new CBinaryStream<floatmax_t>();
722  case PT_SGOBJECT: return NULL;
723  }
724  return NULL;
725 }
726 static CSGObject* __new_CParseBuffer(EPrimitiveType g)
727 {
728  switch (g)
729  {
730  case PT_BOOL: return new CParseBuffer<bool>();
731  case PT_CHAR: return new CParseBuffer<char>();
732  case PT_INT8: return new CParseBuffer<int8_t>();
733  case PT_UINT8: return new CParseBuffer<uint8_t>();
734  case PT_INT16: return new CParseBuffer<int16_t>();
735  case PT_UINT16: return new CParseBuffer<uint16_t>();
736  case PT_INT32: return new CParseBuffer<int32_t>();
737  case PT_UINT32: return new CParseBuffer<uint32_t>();
738  case PT_INT64: return new CParseBuffer<int64_t>();
739  case PT_UINT64: return new CParseBuffer<uint64_t>();
740  case PT_FLOAT32: return new CParseBuffer<float32_t>();
741  case PT_FLOAT64: return new CParseBuffer<float64_t>();
742  case PT_FLOATMAX: return new CParseBuffer<floatmax_t>();
743  case PT_SGOBJECT: return NULL;
744  }
745  return NULL;
746 }
748 {
749  switch (g)
750  {
751  case PT_BOOL: return new CStreamingFileFromStringFeatures<bool>();
752  case PT_CHAR: return new CStreamingFileFromStringFeatures<char>();
753  case PT_INT8: return new CStreamingFileFromStringFeatures<int8_t>();
754  case PT_UINT8: return new CStreamingFileFromStringFeatures<uint8_t>();
755  case PT_INT16: return new CStreamingFileFromStringFeatures<int16_t>();
756  case PT_UINT16: return new CStreamingFileFromStringFeatures<uint16_t>();
757  case PT_INT32: return new CStreamingFileFromStringFeatures<int32_t>();
758  case PT_UINT32: return new CStreamingFileFromStringFeatures<uint32_t>();
759  case PT_INT64: return new CStreamingFileFromStringFeatures<int64_t>();
760  case PT_UINT64: return new CStreamingFileFromStringFeatures<uint64_t>();
761  case PT_FLOAT32: return new CStreamingFileFromStringFeatures<float32_t>();
762  case PT_FLOAT64: return new CStreamingFileFromStringFeatures<float64_t>();
763  case PT_FLOATMAX: return new CStreamingFileFromStringFeatures<floatmax_t>();
764  case PT_SGOBJECT: return NULL;
765  }
766  return NULL;
767 }
768 static CSGObject* __new_CSimpleFile(EPrimitiveType g)
769 {
770  switch (g)
771  {
772  case PT_BOOL: return new CSimpleFile<bool>();
773  case PT_CHAR: return new CSimpleFile<char>();
774  case PT_INT8: return new CSimpleFile<int8_t>();
775  case PT_UINT8: return new CSimpleFile<uint8_t>();
776  case PT_INT16: return new CSimpleFile<int16_t>();
777  case PT_UINT16: return new CSimpleFile<uint16_t>();
778  case PT_INT32: return new CSimpleFile<int32_t>();
779  case PT_UINT32: return new CSimpleFile<uint32_t>();
780  case PT_INT64: return new CSimpleFile<int64_t>();
781  case PT_UINT64: return new CSimpleFile<uint64_t>();
782  case PT_FLOAT32: return new CSimpleFile<float32_t>();
783  case PT_FLOAT64: return new CSimpleFile<float64_t>();
784  case PT_FLOATMAX: return new CSimpleFile<floatmax_t>();
785  case PT_SGOBJECT: return NULL;
786  }
787  return NULL;
788 }
789 static CSGObject* __new_CMemoryMappedFile(EPrimitiveType g)
790 {
791  switch (g)
792  {
793  case PT_BOOL: return new CMemoryMappedFile<bool>();
794  case PT_CHAR: return new CMemoryMappedFile<char>();
795  case PT_INT8: return new CMemoryMappedFile<int8_t>();
796  case PT_UINT8: return new CMemoryMappedFile<uint8_t>();
797  case PT_INT16: return new CMemoryMappedFile<int16_t>();
798  case PT_UINT16: return new CMemoryMappedFile<uint16_t>();
799  case PT_INT32: return new CMemoryMappedFile<int32_t>();
800  case PT_UINT32: return new CMemoryMappedFile<uint32_t>();
801  case PT_INT64: return new CMemoryMappedFile<int64_t>();
802  case PT_UINT64: return new CMemoryMappedFile<uint64_t>();
803  case PT_FLOAT32: return new CMemoryMappedFile<float32_t>();
804  case PT_FLOAT64: return new CMemoryMappedFile<float64_t>();
805  case PT_FLOATMAX: return new CMemoryMappedFile<floatmax_t>();
806  case PT_SGOBJECT: return NULL;
807  }
808  return NULL;
809 }
811 {
812  switch (g)
813  {
814  case PT_BOOL: return new CStreamingFileFromSparseFeatures<bool>();
815  case PT_CHAR: return new CStreamingFileFromSparseFeatures<char>();
816  case PT_INT8: return new CStreamingFileFromSparseFeatures<int8_t>();
817  case PT_UINT8: return new CStreamingFileFromSparseFeatures<uint8_t>();
818  case PT_INT16: return new CStreamingFileFromSparseFeatures<int16_t>();
819  case PT_UINT16: return new CStreamingFileFromSparseFeatures<uint16_t>();
820  case PT_INT32: return new CStreamingFileFromSparseFeatures<int32_t>();
821  case PT_UINT32: return new CStreamingFileFromSparseFeatures<uint32_t>();
822  case PT_INT64: return new CStreamingFileFromSparseFeatures<int64_t>();
823  case PT_UINT64: return new CStreamingFileFromSparseFeatures<uint64_t>();
824  case PT_FLOAT32: return new CStreamingFileFromSparseFeatures<float32_t>();
825  case PT_FLOAT64: return new CStreamingFileFromSparseFeatures<float64_t>();
826  case PT_FLOATMAX: return new CStreamingFileFromSparseFeatures<floatmax_t>();
827  case PT_SGOBJECT: return NULL;
828  }
829  return NULL;
830 }
832 {
833  switch (g)
834  {
835  case PT_BOOL: return new CStreamingFileFromSimpleFeatures<bool>();
836  case PT_CHAR: return new CStreamingFileFromSimpleFeatures<char>();
837  case PT_INT8: return new CStreamingFileFromSimpleFeatures<int8_t>();
838  case PT_UINT8: return new CStreamingFileFromSimpleFeatures<uint8_t>();
839  case PT_INT16: return new CStreamingFileFromSimpleFeatures<int16_t>();
840  case PT_UINT16: return new CStreamingFileFromSimpleFeatures<uint16_t>();
841  case PT_INT32: return new CStreamingFileFromSimpleFeatures<int32_t>();
842  case PT_UINT32: return new CStreamingFileFromSimpleFeatures<uint32_t>();
843  case PT_INT64: return new CStreamingFileFromSimpleFeatures<int64_t>();
844  case PT_UINT64: return new CStreamingFileFromSimpleFeatures<uint64_t>();
845  case PT_FLOAT32: return new CStreamingFileFromSimpleFeatures<float32_t>();
846  case PT_FLOAT64: return new CStreamingFileFromSimpleFeatures<float64_t>();
847  case PT_FLOATMAX: return new CStreamingFileFromSimpleFeatures<floatmax_t>();
848  case PT_SGOBJECT: return NULL;
849  }
850  return NULL;
851 }
852 static CSGObject* __new_CSet(EPrimitiveType g)
853 {
854  switch (g)
855  {
856  case PT_BOOL: return new CSet<bool>();
857  case PT_CHAR: return new CSet<char>();
858  case PT_INT8: return new CSet<int8_t>();
859  case PT_UINT8: return new CSet<uint8_t>();
860  case PT_INT16: return new CSet<int16_t>();
861  case PT_UINT16: return new CSet<uint16_t>();
862  case PT_INT32: return new CSet<int32_t>();
863  case PT_UINT32: return new CSet<uint32_t>();
864  case PT_INT64: return new CSet<int64_t>();
865  case PT_UINT64: return new CSet<uint64_t>();
866  case PT_FLOAT32: return new CSet<float32_t>();
867  case PT_FLOAT64: return new CSet<float64_t>();
868  case PT_FLOATMAX: return new CSet<floatmax_t>();
869  case PT_SGOBJECT: return NULL;
870  }
871  return NULL;
872 }
873 static CSGObject* __new_CCache(EPrimitiveType g)
874 {
875  switch (g)
876  {
877  case PT_BOOL: return new CCache<bool>();
878  case PT_CHAR: return new CCache<char>();
879  case PT_INT8: return new CCache<int8_t>();
880  case PT_UINT8: return new CCache<uint8_t>();
881  case PT_INT16: return new CCache<int16_t>();
882  case PT_UINT16: return new CCache<uint16_t>();
883  case PT_INT32: return new CCache<int32_t>();
884  case PT_UINT32: return new CCache<uint32_t>();
885  case PT_INT64: return new CCache<int64_t>();
886  case PT_UINT64: return new CCache<uint64_t>();
887  case PT_FLOAT32: return new CCache<float32_t>();
888  case PT_FLOAT64: return new CCache<float64_t>();
889  case PT_FLOATMAX: return new CCache<floatmax_t>();
890  case PT_SGOBJECT: return NULL;
891  }
892  return NULL;
893 }
894 static CSGObject* __new_CDynamicArray(EPrimitiveType g)
895 {
896  switch (g)
897  {
898  case PT_BOOL: return new CDynamicArray<bool>();
899  case PT_CHAR: return new CDynamicArray<char>();
900  case PT_INT8: return new CDynamicArray<int8_t>();
901  case PT_UINT8: return new CDynamicArray<uint8_t>();
902  case PT_INT16: return new CDynamicArray<int16_t>();
903  case PT_UINT16: return new CDynamicArray<uint16_t>();
904  case PT_INT32: return new CDynamicArray<int32_t>();
905  case PT_UINT32: return new CDynamicArray<uint32_t>();
906  case PT_INT64: return new CDynamicArray<int64_t>();
907  case PT_UINT64: return new CDynamicArray<uint64_t>();
908  case PT_FLOAT32: return new CDynamicArray<float32_t>();
909  case PT_FLOAT64: return new CDynamicArray<float64_t>();
910  case PT_FLOATMAX: return new CDynamicArray<floatmax_t>();
911  case PT_SGOBJECT: return NULL;
912  }
913  return NULL;
914 }
915 static CSGObject* __new_CDynamicObjectArray(EPrimitiveType g)
916 {
917  switch (g)
918  {
919  case PT_BOOL: return new CDynamicObjectArray<bool>();
920  case PT_CHAR: return new CDynamicObjectArray<char>();
921  case PT_INT8: return new CDynamicObjectArray<int8_t>();
922  case PT_UINT8: return new CDynamicObjectArray<uint8_t>();
923  case PT_INT16: return new CDynamicObjectArray<int16_t>();
924  case PT_UINT16: return new CDynamicObjectArray<uint16_t>();
925  case PT_INT32: return new CDynamicObjectArray<int32_t>();
926  case PT_UINT32: return new CDynamicObjectArray<uint32_t>();
927  case PT_INT64: return new CDynamicObjectArray<int64_t>();
928  case PT_UINT64: return new CDynamicObjectArray<uint64_t>();
929  case PT_FLOAT32: return new CDynamicObjectArray<float32_t>();
930  case PT_FLOAT64: return new CDynamicObjectArray<float64_t>();
931  case PT_FLOATMAX: return new CDynamicObjectArray<floatmax_t>();
932  case PT_SGOBJECT: return NULL;
933  }
934  return NULL;
935 }
936 static CSGObject* __new_CArray2(EPrimitiveType g)
937 {
938  switch (g)
939  {
940  case PT_BOOL: return new CArray2<bool>();
941  case PT_CHAR: return new CArray2<char>();
942  case PT_INT8: return new CArray2<int8_t>();
943  case PT_UINT8: return new CArray2<uint8_t>();
944  case PT_INT16: return new CArray2<int16_t>();
945  case PT_UINT16: return new CArray2<uint16_t>();
946  case PT_INT32: return new CArray2<int32_t>();
947  case PT_UINT32: return new CArray2<uint32_t>();
948  case PT_INT64: return new CArray2<int64_t>();
949  case PT_UINT64: return new CArray2<uint64_t>();
950  case PT_FLOAT32: return new CArray2<float32_t>();
951  case PT_FLOAT64: return new CArray2<float64_t>();
952  case PT_FLOATMAX: return new CArray2<floatmax_t>();
953  case PT_SGOBJECT: return NULL;
954  }
955  return NULL;
956 }
957 static CSGObject* __new_CArray3(EPrimitiveType g)
958 {
959  switch (g)
960  {
961  case PT_BOOL: return new CArray3<bool>();
962  case PT_CHAR: return new CArray3<char>();
963  case PT_INT8: return new CArray3<int8_t>();
964  case PT_UINT8: return new CArray3<uint8_t>();
965  case PT_INT16: return new CArray3<int16_t>();
966  case PT_UINT16: return new CArray3<uint16_t>();
967  case PT_INT32: return new CArray3<int32_t>();
968  case PT_UINT32: return new CArray3<uint32_t>();
969  case PT_INT64: return new CArray3<int64_t>();
970  case PT_UINT64: return new CArray3<uint64_t>();
971  case PT_FLOAT32: return new CArray3<float32_t>();
972  case PT_FLOAT64: return new CArray3<float64_t>();
973  case PT_FLOATMAX: return new CArray3<floatmax_t>();
974  case PT_SGOBJECT: return NULL;
975  }
976  return NULL;
977 }
978 static CSGObject* __new_CArray(EPrimitiveType g)
979 {
980  switch (g)
981  {
982  case PT_BOOL: return new CArray<bool>();
983  case PT_CHAR: return new CArray<char>();
984  case PT_INT8: return new CArray<int8_t>();
985  case PT_UINT8: return new CArray<uint8_t>();
986  case PT_INT16: return new CArray<int16_t>();
987  case PT_UINT16: return new CArray<uint16_t>();
988  case PT_INT32: return new CArray<int32_t>();
989  case PT_UINT32: return new CArray<uint32_t>();
990  case PT_INT64: return new CArray<int64_t>();
991  case PT_UINT64: return new CArray<uint64_t>();
992  case PT_FLOAT32: return new CArray<float32_t>();
993  case PT_FLOAT64: return new CArray<float64_t>();
994  case PT_FLOATMAX: return new CArray<floatmax_t>();
995  case PT_SGOBJECT: return NULL;
996  }
997  return NULL;
998 }
999 typedef CSGObject* (*new_sgserializable_t)(EPrimitiveType generic);
1000 #ifndef DOXYGEN_SHOULD_SKIP_THIS
1001 typedef struct
1002 {
1003  const char* m_class_name;
1004  new_sgserializable_t m_new_sgserializable;
1005 } class_list_entry_t;
1006 #endif
1007 
1008 static class_list_entry_t class_list[] = {
1009 {"DummyFeatures", __new_CDummyFeatures},
1010 {"FKFeatures", __new_CFKFeatures},
1011 {"Alphabet", __new_CAlphabet},
1012 {"ImplicitWeightedSpecFeatures", __new_CImplicitWeightedSpecFeatures},
1013 {"ExplicitSpecFeatures", __new_CExplicitSpecFeatures},
1014 {"CombinedDotFeatures", __new_CCombinedDotFeatures},
1015 {"HashedWDFeatures", __new_CHashedWDFeatures},
1016 {"CombinedFeatures", __new_CCombinedFeatures},
1017 {"WDFeatures", __new_CWDFeatures},
1018 {"Subset", __new_CSubset},
1019 {"StreamingVwFeatures", __new_CStreamingVwFeatures},
1020 {"RealFileFeatures", __new_CRealFileFeatures},
1021 {"PolyFeatures", __new_CPolyFeatures},
1022 {"SNPFeatures", __new_CSNPFeatures},
1023 {"LBPPyrDotFeatures", __new_CLBPPyrDotFeatures},
1024 {"Labels", __new_CLabels},
1025 {"HashedWDFeaturesTransposed", __new_CHashedWDFeaturesTransposed},
1026 {"TOPFeatures", __new_CTOPFeatures},
1027 {"SparsePolyFeatures", __new_CSparsePolyFeatures},
1028 {"Math", __new_CMath},
1029 {"Statistics", __new_CStatistics},
1030 {"KNN", __new_CKNN},
1031 {"VwEnvironment", __new_CVwEnvironment},
1032 {"VwNonAdaptiveLearner", __new_CVwNonAdaptiveLearner},
1033 {"VwAdaptiveLearner", __new_CVwAdaptiveLearner},
1034 {"VwParser", __new_CVwParser},
1035 {"VwRegressor", __new_CVwRegressor},
1036 {"VwNativeCacheWriter", __new_CVwNativeCacheWriter},
1037 {"VwNativeCacheReader", __new_CVwNativeCacheReader},
1038 {"VowpalWabbit", __new_CVowpalWabbit},
1039 {"AveragedPerceptron", __new_CAveragedPerceptron},
1040 {"MKLClassification", __new_CMKLClassification},
1041 {"MKLOneClass", __new_CMKLOneClass},
1042 {"MKLMultiClass", __new_CMKLMultiClass},
1043 {"PluginEstimate", __new_CPluginEstimate},
1044 {"GaussianNaiveBayes", __new_CGaussianNaiveBayes},
1045 {"LibSVMOneClass", __new_CLibSVMOneClass},
1046 {"SVMSGD", __new_CSVMSGD},
1047 {"SGDQN", __new_CSGDQN},
1048 {"LibLinear", __new_CLibLinear},
1049 {"GPBTSVM", __new_CGPBTSVM},
1050 {"QPBSVMLib", __new_CQPBSVMLib},
1051 {"MPDSVM", __new_CMPDSVM},
1052 {"OnlineLibLinear", __new_COnlineLibLinear},
1053 {"GMNPLib", __new_CGMNPLib},
1054 {"LibSVMMultiClass", __new_CLibSVMMultiClass},
1055 {"ScatterSVM", __new_CScatterSVM},
1056 {"MultiClassSVM", __new_CMultiClassSVM},
1057 {"GNPPLib", __new_CGNPPLib},
1058 {"WDSVMOcas", __new_CWDSVMOcas},
1059 {"DomainAdaptationSVMLinear", __new_CDomainAdaptationSVMLinear},
1060 {"LibSVM", __new_CLibSVM},
1061 {"LaRank", __new_CLaRank},
1062 {"SVMOcas", __new_CSVMOcas},
1063 {"GNPPSVM", __new_CGNPPSVM},
1064 {"GMNPSVM", __new_CGMNPSVM},
1065 {"SVMLin", __new_CSVMLin},
1066 {"SubGradientSVM", __new_CSubGradientSVM},
1067 {"SVM", __new_CSVM},
1068 {"Tron", __new_CTron},
1069 {"OnlineSVMSGD", __new_COnlineSVMSGD},
1070 {"LDA", __new_CLDA},
1071 {"Perceptron", __new_CPerceptron},
1072 {"KMeans", __new_CKMeans},
1073 {"Hierarchical", __new_CHierarchical},
1074 {"GMM", __new_CGMM},
1075 {"GUIPreprocessor", __new_CGUIPreprocessor},
1076 {"GUIStructure", __new_CGUIStructure},
1077 {"GUIDistance", __new_CGUIDistance},
1078 {"GUIKernel", __new_CGUIKernel},
1079 {"GUIHMM", __new_CGUIHMM},
1080 {"GUIFeatures", __new_CGUIFeatures},
1081 {"GUIClassifier", __new_CGUIClassifier},
1082 {"GUIPluginEstimate", __new_CGUIPluginEstimate},
1083 {"GUITime", __new_CGUITime},
1084 {"GUILabels", __new_CGUILabels},
1085 {"GUIMath", __new_CGUIMath},
1086 {"SortWordString", __new_CSortWordString},
1087 {"NormOne", __new_CNormOne},
1088 {"LogPlusOne", __new_CLogPlusOne},
1089 {"SortUlongString", __new_CSortUlongString},
1090 {"DimensionReductionPreprocessor", __new_CDimensionReductionPreprocessor},
1091 {"PCA", __new_CPCA},
1092 {"PruneVarSubMean", __new_CPruneVarSubMean},
1093 {"KernelPCA", __new_CKernelPCA},
1094 {"RandomFourierGaussPreproc", __new_CRandomFourierGaussPreproc},
1095 {"ParameterCombination", __new_CParameterCombination},
1096 {"GridSearchModelSelection", __new_CGridSearchModelSelection},
1097 {"ModelSelectionParameters", __new_CModelSelectionParameters},
1098 {"ChebyshewMetric", __new_CChebyshewMetric},
1099 {"BrayCurtisDistance", __new_CBrayCurtisDistance},
1100 {"EuclidianDistance", __new_CEuclidianDistance},
1101 {"JensenMetric", __new_CJensenMetric},
1102 {"HammingWordDistance", __new_CHammingWordDistance},
1103 {"ManhattanMetric", __new_CManhattanMetric},
1104 {"CustomDistance", __new_CCustomDistance},
1105 {"SparseEuclidianDistance", __new_CSparseEuclidianDistance},
1106 {"KernelDistance", __new_CKernelDistance},
1107 {"CanberraMetric", __new_CCanberraMetric},
1108 {"ChiSquareDistance", __new_CChiSquareDistance},
1109 {"CosineDistance", __new_CCosineDistance},
1110 {"MinkowskiMetric", __new_CMinkowskiMetric},
1111 {"CanberraWordDistance", __new_CCanberraWordDistance},
1112 {"TanimotoDistance", __new_CTanimotoDistance},
1113 {"GeodesicMetric", __new_CGeodesicMetric},
1114 {"AttenuatedEuclidianDistance", __new_CAttenuatedEuclidianDistance},
1115 {"ManhattanWordDistance", __new_CManhattanWordDistance},
1116 {"PlifMatrix", __new_CPlifMatrix},
1117 {"Plif", __new_CPlif},
1118 {"DynProg", __new_CDynProg},
1119 {"SegmentLoss", __new_CSegmentLoss},
1120 {"IntronList", __new_CIntronList},
1121 {"PlifArray", __new_CPlifArray},
1122 {"SerializableAsciiFile", __new_CSerializableAsciiFile},
1123 {"StreamingFileFromFeatures", __new_CStreamingFileFromFeatures},
1124 {"BinaryFile", __new_CBinaryFile},
1125 {"AsciiFile", __new_CAsciiFile},
1126 {"StreamingFile", __new_CStreamingFile},
1127 {"StreamingVwCacheFile", __new_CStreamingVwCacheFile},
1128 {"StreamingAsciiFile", __new_CStreamingAsciiFile},
1129 {"IOBuffer", __new_CIOBuffer},
1130 {"StreamingVwFile", __new_CStreamingVwFile},
1131 {"LogLoss", __new_CLogLoss},
1132 {"HingeLoss", __new_CHingeLoss},
1133 {"SquaredLoss", __new_CSquaredLoss},
1134 {"SmoothHingeLoss", __new_CSmoothHingeLoss},
1135 {"LogLossMargin", __new_CLogLossMargin},
1136 {"SquaredHingeLoss", __new_CSquaredHingeLoss},
1137 {"MulticlassAccuracy", __new_CMulticlassAccuracy},
1138 {"MeanSquaredError", __new_CMeanSquaredError},
1139 {"CrossValidation", __new_CCrossValidation},
1140 {"ContingencyTableEvaluation", __new_CContingencyTableEvaluation},
1141 {"AccuracyMeasure", __new_CAccuracyMeasure},
1142 {"ErrorRateMeasure", __new_CErrorRateMeasure},
1143 {"BALMeasure", __new_CBALMeasure},
1144 {"WRACCMeasure", __new_CWRACCMeasure},
1145 {"F1Measure", __new_CF1Measure},
1146 {"CrossCorrelationMeasure", __new_CCrossCorrelationMeasure},
1147 {"RecallMeasure", __new_CRecallMeasure},
1148 {"PrecisionMeasure", __new_CPrecisionMeasure},
1149 {"SpecificityMeasure", __new_CSpecificityMeasure},
1150 {"PRCEvaluation", __new_CPRCEvaluation},
1151 {"StratifiedCrossValidationSplitting", __new_CStratifiedCrossValidationSplitting},
1152 {"MeanAbsoluteError", __new_CMeanAbsoluteError},
1153 {"ROCEvaluation", __new_CROCEvaluation},
1154 {"GHMM", __new_CGHMM},
1155 {"HMM", __new_CHMM},
1156 {"Gaussian", __new_CGaussian},
1157 {"PositionalPWM", __new_CPositionalPWM},
1158 {"Histogram", __new_CHistogram},
1159 {"LinearHMM", __new_CLinearHMM},
1160 {"KernelMachine", __new_CKernelMachine},
1161 {"OnlineLinearMachine", __new_COnlineLinearMachine},
1162 {"LinearMachine", __new_CLinearMachine},
1163 {"DistanceMachine", __new_CDistanceMachine},
1164 {"LinearLocalTangentSpaceAlignment", __new_CLinearLocalTangentSpaceAlignment},
1165 {"DiffusionMaps", __new_CDiffusionMaps},
1166 {"LocallyLinearEmbedding", __new_CLocallyLinearEmbedding},
1167 {"NeighborhoodPreservingEmbedding", __new_CNeighborhoodPreservingEmbedding},
1168 {"LocalityPreservingProjections", __new_CLocalityPreservingProjections},
1169 {"HessianLocallyLinearEmbedding", __new_CHessianLocallyLinearEmbedding},
1170 {"LocalTangentSpaceAlignment", __new_CLocalTangentSpaceAlignment},
1171 {"KernelLocallyLinearEmbedding", __new_CKernelLocallyLinearEmbedding},
1172 {"Isomap", __new_CIsomap},
1173 {"LaplacianEigenmaps", __new_CLaplacianEigenmaps},
1174 {"MultidimensionalScaling", __new_CMultidimensionalScaling},
1175 {"KernelLocalTangentSpaceAlignment", __new_CKernelLocalTangentSpaceAlignment},
1176 {"MKLRegression", __new_CMKLRegression},
1177 {"LibSVR", __new_CLibSVR},
1178 {"KRR", __new_CKRR},
1179 {"ListElement", __new_CListElement},
1180 {"List", __new_CList},
1181 {"Compressor", __new_CCompressor},
1182 {"Time", __new_CTime},
1183 {"FibonacciHeap", __new_CFibonacciHeap},
1184 {"Hash", __new_CHash},
1185 {"Signal", __new_CSignal},
1186 {"HashSet", __new_CHashSet},
1187 {"BitString", __new_CBitString},
1188 {"ExponentialKernel", __new_CExponentialKernel},
1189 {"CauchyKernel", __new_CCauchyKernel},
1190 {"LogKernel", __new_CLogKernel},
1191 {"Node", __new_CNode},
1192 {"Taxonomy", __new_CTaxonomy},
1193 {"MultitaskKernelTreeNormalizer", __new_CMultitaskKernelTreeNormalizer},
1194 {"SNPStringKernel", __new_CSNPStringKernel},
1195 {"ZeroMeanCenterKernelNormalizer", __new_CZeroMeanCenterKernelNormalizer},
1196 {"Chi2Kernel", __new_CChi2Kernel},
1197 {"WeightedDegreePositionStringKernel", __new_CWeightedDegreePositionStringKernel},
1198 {"SimpleLocalityImprovedStringKernel", __new_CSimpleLocalityImprovedStringKernel},
1199 {"SigmoidKernel", __new_CSigmoidKernel},
1200 {"HistogramIntersectionKernel", __new_CHistogramIntersectionKernel},
1201 {"TStudentKernel", __new_CTStudentKernel},
1202 {"FirstElementKernelNormalizer", __new_CFirstElementKernelNormalizer},
1203 {"SphericalKernel", __new_CSphericalKernel},
1204 {"OligoStringKernel", __new_COligoStringKernel},
1205 {"PolyMatchStringKernel", __new_CPolyMatchStringKernel},
1206 {"AUCKernel", __new_CAUCKernel},
1207 {"LocalAlignmentStringKernel", __new_CLocalAlignmentStringKernel},
1208 {"MultiquadricKernel", __new_CMultiquadricKernel},
1209 {"SpectrumRBFKernel", __new_CSpectrumRBFKernel},
1210 {"WaveletKernel", __new_CWaveletKernel},
1211 {"DistantSegmentsKernel", __new_CDistantSegmentsKernel},
1212 {"GaussianKernel", __new_CGaussianKernel},
1213 {"LinearStringKernel", __new_CLinearStringKernel},
1214 {"ScatterKernelNormalizer", __new_CScatterKernelNormalizer},
1215 {"RegulatoryModulesStringKernel", __new_CRegulatoryModulesStringKernel},
1216 {"MultitaskKernelMaskPairNormalizer", __new_CMultitaskKernelMaskPairNormalizer},
1217 {"BesselKernel", __new_CBesselKernel},
1218 {"CustomKernel", __new_CCustomKernel},
1219 {"TanimotoKernelNormalizer", __new_CTanimotoKernelNormalizer},
1220 {"PolyKernel", __new_CPolyKernel},
1221 {"HistogramWordStringKernel", __new_CHistogramWordStringKernel},
1222 {"MultitaskKernelPlifNormalizer", __new_CMultitaskKernelPlifNormalizer},
1223 {"SalzbergWordStringKernel", __new_CSalzbergWordStringKernel},
1224 {"RationalQuadraticKernel", __new_CRationalQuadraticKernel},
1225 {"ConstKernel", __new_CConstKernel},
1226 {"PowerKernel", __new_CPowerKernel},
1227 {"WeightedDegreeStringKernel", __new_CWeightedDegreeStringKernel},
1228 {"IdentityKernelNormalizer", __new_CIdentityKernelNormalizer},
1229 {"LocalityImprovedStringKernel", __new_CLocalityImprovedStringKernel},
1230 {"FixedDegreeStringKernel", __new_CFixedDegreeStringKernel},
1231 {"AvgDiagKernelNormalizer", __new_CAvgDiagKernelNormalizer},
1232 {"LinearKernel", __new_CLinearKernel},
1233 {"CombinedKernel", __new_CCombinedKernel},
1234 {"CircularKernel", __new_CCircularKernel},
1235 {"MultitaskKernelNormalizer", __new_CMultitaskKernelNormalizer},
1236 {"SpectrumMismatchRBFKernel", __new_CSpectrumMismatchRBFKernel},
1237 {"GaussianShortRealKernel", __new_CGaussianShortRealKernel},
1238 {"GaussianShiftKernel", __new_CGaussianShiftKernel},
1239 {"TensorProductPairKernel", __new_CTensorProductPairKernel},
1240 {"MultitaskKernelMaskNormalizer", __new_CMultitaskKernelMaskNormalizer},
1241 {"DistanceKernel", __new_CDistanceKernel},
1242 {"RidgeKernelNormalizer", __new_CRidgeKernelNormalizer},
1243 {"MatchWordStringKernel", __new_CMatchWordStringKernel},
1244 {"WeightedCommWordStringKernel", __new_CWeightedCommWordStringKernel},
1245 {"VarianceKernelNormalizer", __new_CVarianceKernelNormalizer},
1246 {"SparseSpatialSampleStringKernel", __new_CSparseSpatialSampleStringKernel},
1247 {"InverseMultiQuadricKernel", __new_CInverseMultiQuadricKernel},
1248 {"ANOVAKernel", __new_CANOVAKernel},
1249 {"PyramidChi2", __new_CPyramidChi2},
1250 {"WeightedDegreeRBFKernel", __new_CWeightedDegreeRBFKernel},
1251 {"GaussianMatchStringKernel", __new_CGaussianMatchStringKernel},
1252 {"DiagKernel", __new_CDiagKernel},
1253 {"PolyMatchWordStringKernel", __new_CPolyMatchWordStringKernel},
1254 {"CommUlongStringKernel", __new_CCommUlongStringKernel},
1255 {"SplineKernel", __new_CSplineKernel},
1256 {"WaveKernel", __new_CWaveKernel},
1257 {"DiceKernelNormalizer", __new_CDiceKernelNormalizer},
1258 {"CommWordStringKernel", __new_CCommWordStringKernel},
1259 {"SqrtDiagKernelNormalizer", __new_CSqrtDiagKernelNormalizer},
1260 {"SimpleFeatures", __new_CSimpleFeatures},
1261 {"SparseFeatures", __new_CSparseFeatures},
1262 {"StreamingStringFeatures", __new_CStreamingStringFeatures},
1263 {"StreamingSimpleFeatures", __new_CStreamingSimpleFeatures},
1264 {"StringFileFeatures", __new_CStringFileFeatures},
1265 {"StreamingSparseFeatures", __new_CStreamingSparseFeatures},
1266 {"StringFeatures", __new_CStringFeatures},
1267 {"DecompressString", __new_CDecompressString},
1268 {"BinaryStream", __new_CBinaryStream},
1269 {"ParseBuffer", __new_CParseBuffer},
1270 {"StreamingFileFromStringFeatures", __new_CStreamingFileFromStringFeatures},
1271 {"SimpleFile", __new_CSimpleFile},
1272 {"MemoryMappedFile", __new_CMemoryMappedFile},
1273 {"StreamingFileFromSparseFeatures", __new_CStreamingFileFromSparseFeatures},
1274 {"StreamingFileFromSimpleFeatures", __new_CStreamingFileFromSimpleFeatures},
1275 {"Set", __new_CSet},
1276 {"Cache", __new_CCache},
1277 {"DynamicArray", __new_CDynamicArray},
1278 {"DynamicObjectArray", __new_CDynamicObjectArray},
1279 {"Array2", __new_CArray2},
1280 {"Array3", __new_CArray3},
1281 {"Array", __new_CArray}, {NULL, NULL}
1282 };
1283 
1284 CSGObject* shogun::new_sgserializable(const char* sgserializable_name,
1285  EPrimitiveType generic)
1286 {
1287  for (class_list_entry_t* i=class_list; i->m_class_name != NULL;
1288  i++)
1289  {
1290  if (strncmp(i->m_class_name, sgserializable_name, STRING_LEN) == 0)
1291  return i->m_new_sgserializable(generic);
1292  }
1293 
1294  return NULL;
1295 }

SHOGUN Machine Learning Toolbox - Documentation