The Inference Method base class.
The Inference Method computes (a Gaussian approximation to) the posterior distribution for a given Gaussian Process.
It is possible to sample the (true) log-marginal likelihood on the base of any implemented approximation. See CInferenceMethod::get_marginal_likelihood_estimate.
在文件 InferenceMethod.h 第 81 行定义.
Public 属性 | |
SGIO * | io |
Parallel * | parallel |
Version * | version |
Parameter * | m_parameters |
Parameter * | m_model_selection_parameters |
Parameter * | m_gradient_parameters |
uint32_t | m_hash |
Protected 成员函数 | |
virtual void | check_members () const |
virtual void | update_alpha ()=0 |
virtual void | update_chol ()=0 |
virtual void | update_deriv ()=0 |
virtual void | update_train_kernel () |
virtual SGVector< float64_t > | get_derivative_wrt_inference_method (const TParameter *param)=0 |
virtual SGVector< float64_t > | get_derivative_wrt_likelihood_model (const TParameter *param)=0 |
virtual SGVector< float64_t > | get_derivative_wrt_kernel (const TParameter *param)=0 |
virtual SGVector< float64_t > | get_derivative_wrt_mean (const TParameter *param)=0 |
virtual void | compute_gradient () |
virtual void | load_serializable_pre () throw (ShogunException) |
virtual void | load_serializable_post () throw (ShogunException) |
virtual void | save_serializable_pre () throw (ShogunException) |
virtual void | save_serializable_post () throw (ShogunException) |
静态 Protected 成员函数 | |
static void * | get_derivative_helper (void *p) |
Protected 属性 | |
CKernel * | m_kernel |
CMeanFunction * | m_mean |
CLikelihoodModel * | m_model |
CFeatures * | m_features |
CLabels * | m_labels |
SGVector< float64_t > | m_alpha |
SGMatrix< float64_t > | m_L |
float64_t | m_log_scale |
SGMatrix< float64_t > | m_ktrtr |
SGMatrix< float64_t > | m_E |
bool | m_gradient_update |
CInferenceMethod | ( | ) |
default constructor
在文件 InferenceMethod.cpp 第 56 行定义.
CInferenceMethod | ( | CKernel * | kernel, |
CFeatures * | features, | ||
CMeanFunction * | mean, | ||
CLabels * | labels, | ||
CLikelihoodModel * | model | ||
) |
constructor
kernel | covariance function |
features | features to use in inference |
mean | mean function |
labels | labels of the features |
model | likelihood model to use |
在文件 InferenceMethod.cpp 第 80 行定义.
|
virtual |
在文件 InferenceMethod.cpp 第 92 行定义.
|
inherited |
Builds a dictionary of all parameters in SGObject as well of those of SGObjects that are parameters of this object. Dictionary maps parameters to the objects that own them.
dict | dictionary of parameters to be built. |
在文件 SGObject.cpp 第 597 行定义.
|
protectedvirtual |
check if members of object are valid for inference
被 CSparseInferenceBase, CExactInferenceMethod, CFITCInferenceMethod, CSparseVGInferenceMethod , 以及 CMultiLaplacianInferenceMethod 重载.
在文件 InferenceMethod.cpp 第 309 行定义.
|
virtualinherited |
Creates a clone of the current object. This is done via recursively traversing all parameters, which corresponds to a deep copy. Calling equals on the cloned object always returns true although none of the memory of both objects overlaps.
在文件 SGObject.cpp 第 714 行定义.
|
protectedvirtual |
update gradients
被 CKLInferenceMethod, CExactInferenceMethod, CEPInferenceMethod, CSparseVGInferenceMethod, CSingleFITCLaplacianInferenceMethod, CFITCInferenceMethod , 以及 CLaplacianInferenceBase 重载.
在文件 InferenceMethod.cpp 第 330 行定义.
|
virtualinherited |
A deep copy. All the instance variables will also be copied.
在文件 SGObject.cpp 第 198 行定义.
Recursively compares the current SGObject to another one. Compares all registered numerical parameters, recursion upon complex (SGObject) parameters. Does not compare pointers!
May be overwritten but please do with care! Should not be necessary in most cases.
other | object to compare with |
accuracy | accuracy to use for comparison (optional) |
tolerant | allows linient check on float equality (within accuracy) |
在文件 SGObject.cpp 第 618 行定义.
|
staticprotected |
pthread helper method to compute negative log marginal likelihood derivatives wrt hyperparameter
在文件 InferenceMethod.cpp 第 255 行定义.
|
protectedpure virtual |
returns derivative of negative log marginal likelihood wrt parameter of CInferenceMethod class
param | parameter of CInferenceMethod class |
在 CKLInferenceMethod, CEPInferenceMethod, CSingleFITCLaplacianInferenceMethod, CSparseInferenceBase, CExactInferenceMethod, CMultiLaplacianInferenceMethod, CSingleLaplacianInferenceMethod , 以及 CSingleSparseInferenceBase 内被实现.
|
protectedpure virtual |
returns derivative of negative log marginal likelihood wrt kernel's parameter
param | parameter of given kernel |
在 CKLInferenceMethod, CEPInferenceMethod, CSingleFITCLaplacianInferenceMethod, CSparseInferenceBase, CExactInferenceMethod, CMultiLaplacianInferenceMethod, CSingleLaplacianInferenceMethod , 以及 CSingleSparseInferenceBase 内被实现.
|
protectedpure virtual |
returns derivative of negative log marginal likelihood wrt parameter of likelihood model
param | parameter of given likelihood model |
在 CKLInferenceMethod, CEPInferenceMethod, CSingleFITCLaplacianInferenceMethod, CSparseInferenceBase, CExactInferenceMethod, CSingleFITCLaplacianBase, CFITCInferenceMethod, CMultiLaplacianInferenceMethod, CSparseVGInferenceMethod , 以及 CSingleLaplacianInferenceMethod 内被实现.
|
protectedpure virtual |
returns derivative of negative log marginal likelihood wrt mean function's parameter
param | parameter of given mean function |
在 CKLInferenceMethod, CEPInferenceMethod, CSingleFITCLaplacianInferenceMethod, CSparseInferenceBase, CExactInferenceMethod, CSparseVGInferenceMethod, CSingleFITCLaplacianBase, CMultiLaplacianInferenceMethod , 以及 CSingleLaplacianInferenceMethod 内被实现.
|
virtual |
|
inherited |
|
inherited |
|
inherited |
|
virtual |
get the gradient
parameters | parameter's dictionary |
在文件 InferenceMethod.h 第 245 行定义.
|
virtual |
return what type of inference we are, e.g. exact, FITC, Laplacian, etc.
被 CKLApproxDiagonalInferenceMethod, CKLCholeskyInferenceMethod, CKLCovarianceInferenceMethod, CMultiLaplacianInferenceMethod, CKLInferenceMethod, CSparseInferenceBase, CKLDualInferenceMethod, CSingleFITCLaplacianInferenceMethod, CExactInferenceMethod, CFITCInferenceMethod, CSparseVGInferenceMethod, CEPInferenceMethod, CLaplacianInferenceBase , 以及 CSingleLaplacianInferenceMethod 重载.
在文件 InferenceMethod.h 第 104 行定义.
|
virtual |
|
virtual |
float64_t get_marginal_likelihood_estimate | ( | int32_t | num_importance_samples = 1 , |
float64_t | ridge_size = 1e-15 |
||
) |
Computes an unbiased estimate of the marginal-likelihood (in log-domain),
\[ p(y|X,\theta), \]
where \(y\) are the labels, \(X\) are the features (omitted from in the following expressions), and \(\theta\) represent hyperparameters.
This is done via a Gaussian approximation to the posterior \(q(f|y, \theta)\approx p(f|y, \theta)\), which is computed by the underlying CInferenceMethod instance (if implemented, otherwise error), and then using an importance sample estimator
\[ p(y|\theta)=\int p(y|f)p(f|\theta)df =\int p(y|f)\frac{p(f|\theta)}{q(f|y, \theta)}q(f|y, \theta)df \approx\frac{1}{n}\sum_{i=1}^n p(y|f^{(i)})\frac{p(f^{(i)}|\theta)} {q(f^{(i)}|y, \theta)}, \]
where \( f^{(i)} \) are samples from the posterior approximation \( q(f|y, \theta) \). The resulting estimator has a low variance if \( q(f|y, \theta) \) is a good approximation. It has large variance otherwise (while still being consistent). Storing all number of log-domain ensures numerical stability.
num_importance_samples | the number of importance samples \(n\) from \( q(f|y, \theta) \). |
ridge_size | scalar that is added to the diagonal of the involved Gaussian distribution's covariance of GP prior and posterior approximation to stabilise things. Increase if covariance matrix is not numerically positive semi-definite. |
在文件 InferenceMethod.cpp 第 126 行定义.
|
virtual |
CLikelihoodModel* get_model | ( | ) |
|
inherited |
在文件 SGObject.cpp 第 498 行定义.
|
inherited |
Returns description of a given parameter string, if it exists. SG_ERROR otherwise
param_name | name of the parameter |
在文件 SGObject.cpp 第 522 行定义.
|
inherited |
Returns index of model selection parameter with provided index
param_name | name of model selection parameter |
在文件 SGObject.cpp 第 535 行定义.
get the E matrix used for multi classification
在文件 InferenceMethod.cpp 第 72 行定义.
|
pure virtualinherited |
Returns the name of the SGSerializable instance. It MUST BE the CLASS NAME without the prefixed `C'.
在 CMath, CHMM, CStringFeatures< ST >, CStringFeatures< T >, CStringFeatures< uint8_t >, CStringFeatures< char >, CStringFeatures< uint16_t >, CSVMLight, CTrie< Trie >, CTrie< DNATrie >, CTrie< POIMTrie >, CDynamicArray< T >, CDynamicArray< float64_t >, CDynamicArray< float32_t >, CDynamicArray< int32_t >, CDynamicArray< char >, CDynamicArray< bool >, CMultitaskKernelTreeNormalizer, CList, CDynProg, CDenseFeatures< ST >, CDenseFeatures< uint32_t >, CDenseFeatures< float64_t >, CDenseFeatures< T >, CDenseFeatures< uint16_t >, CStatistics, CFile, CSparseFeatures< ST >, CSparseFeatures< float64_t >, CSparseFeatures< T >, CSpecificityMeasure, CPrecisionMeasure, CPlif, CRecallMeasure, CDynamicObjectArray, CCrossCorrelationMeasure, CCSVFile, CF1Measure, CBinaryFile, CProtobufFile, CLaRank, CWRACCMeasure, CRBM, CTaxonomy, CBALMeasure, CBitString, CStreamingVwFeatures, CLibSVMFile, CStreamingSparseFeatures< T >, CErrorRateMeasure, CNeuralLayer, CMultitaskKernelPlifNormalizer, CWDSVMOcas, CMachine, CAccuracyMeasure, CStreamingFile, CQuadraticTimeMMD, CRandom, CStreamingMMD, CMemoryMappedFile< T >, CMultitaskKernelMaskNormalizer, CMemoryMappedFile< ST >, CAlphabet, CMKL, CLMNNStatistics, CStructuredModel, CStreamingDenseFeatures< T >, CStreamingDenseFeatures< float64_t >, CStreamingDenseFeatures< float32_t >, CCombinedDotFeatures, CFeatureSelection< ST >, CFeatureSelection< float64_t >, CGUIStructure, CCache< T >, CCache< uint32_t >, CCache< ST >, CCache< float64_t >, CCache< uint8_t >, CCache< KERNELCACHE_ELEM >, CCache< char >, CCache< uint16_t >, CCache< shogun::SGSparseVectorEntry< T > >, CCache< shogun::SGSparseVectorEntry< float64_t > >, CCache< shogun::SGSparseVectorEntry< ST > >, CMultitaskKernelMaskPairNormalizer, CSVM, CNeuralNetwork, CMultitaskKernelNormalizer, CGUIClassifier, CGaussian, CGUIFeatures, CGMM, CHashedWDFeaturesTransposed, CBinaryStream< T >, CLinearHMM, CSimpleFile< T >, CDeepBeliefNetwork, CStreamingStringFeatures< T >, CParameterCombination, CNeuralLinearLayer, CStateModel, CMulticlassSVM, CNeuralConvolutionalLayer, CRandomKitchenSinksDotFeatures, COnlineLinearMachine, CVwParser, CPluginEstimate, CVowpalWabbit, CBinnedDotFeatures, CSVMOcas, CSVRLight, CPlifMatrix, CHashedWDFeatures, CCrossValidation, CImplicitWeightedSpecFeatures, CCombinedFeatures, CSparseMatrixOperator< T >, CSNPFeatures, CWDFeatures, CKMeans, CCrossValidationMulticlassStorage, CHashedDenseFeatures< ST >, CIOBuffer, CUAIFile, CTwoStateModel, CLossFunction, CPCA, CHMSVMModel, CDeepAutoencoder, CLeastAngleRegression, CGUIKernel, CKNN, CHashedSparseFeatures< ST >, CRandomFourierGaussPreproc, CMKLMulticlass, CAutoencoder, CHypothesisTest, CExplicitSpecFeatures, CLibLinearMTL, CModelSelectionParameters, CNOCCO, CPositionalPWM, CHashedDocDotFeatures, CGUIHMM, COnlineSVMSGD, CIntegration, CLibLinear, CJacobiEllipticFunctions, CLDA, CZeroMeanCenterKernelNormalizer, CSparsePolyFeatures, CHashedMultilabelModel, CSqrtDiagKernelNormalizer, CHuberLoss, CCplex, CScatterKernelNormalizer, CFisherLDA, CHSIC, CStochasticProximityEmbedding, CLatentModel, CRationalApproximation, CTableFactorType, CSVMSGD, CMulticlassMachine, CDixonQTestRejectionStrategy, CGMNPLib, CVwCacheReader, CLBPPyrDotFeatures, CRidgeKernelNormalizer, CDependenceMaximization, CLinearMachine, CMulticlassSOLabels, CGraphCut, CSerializableAsciiFile, CSGDQN, CSNPStringKernel, CTime, CMatrixFeatures< ST >, CWeightedCommWordStringKernel, CHingeLoss, CNeuralLayers, CTwoSampleTest, CSquaredLoss, CAbsoluteDeviationLoss, CExponentialLoss, CCustomKernel, CMulticlassLabels, CHash, CFactor, CPlifArray, CLinearTimeMMD, CQPBSVMLib, CStreamingHashedDocDotFeatures, CStreamingVwFile, CKernelIndependenceTest, CCustomDistance, CWeightedDegreeStringKernel, CKernelRidgeRegression, CBaggingMachine, CQDA, CNeuralLogisticLayer, CNeuralRectifiedLinearLayer, CTOPFeatures, CDiceKernelNormalizer, CHierarchicalMultilabelModel, CMultitaskKernelMklNormalizer, CTask, CGaussianProcessClassification, CVwEnvironment, CBinaryLabels, CMultilabelModel, CMultilabelSOLabels, CDomainAdaptationSVMLinear, CDotKernel, CCHAIDTree, CKernelTwoSampleTest, CMAPInferImpl, CWeightedDegreePositionStringKernel, CGaussianDistribution, CTanimotoKernelNormalizer, CCircularBuffer, CMCLDA, CStreamingHashedDenseFeatures< ST >, CStreamingHashedSparseFeatures< ST >, CBesselKernel, CAvgDiagKernelNormalizer, CVarianceKernelNormalizer, CMulticlassModel, COnlineLibLinear, CIndexFeatures, CCARTree, CStreamingAsciiFile, CIndependenceTest, CHierarchical, CFKFeatures, CCombinedKernel, CSparseSpatialSampleStringKernel, CSpectrumMismatchRBFKernel, COperatorFunction< T >, CMultilabelCLRModel, COperatorFunction< float64_t >, CVwRegressor, CHashedDocConverter, CFactorGraphLabels, CKLInferenceMethod, CGaussianKernel, CCommWordStringKernel, CSubsequenceStringKernel, CSet< T >, CSparseInferenceBase, CDataGenerator, CNeuralInputLayer, CSequenceLabels, CPolyFeatures, CNode, CContingencyTableEvaluation, CChi2Kernel, CPyramidChi2, CSignal, CDenseMatrixOperator< T >, CLibSVR, CDenseMatrixOperator< float64_t >, CPeriodicKernel, CSalzbergWordStringKernel, CStructuredLabels, CSquaredHingeLoss, CNewtonSVM, CKLApproxDiagonalInferenceMethod, CLPBoost, CVwLearner, CIndexBlockTree, CExactInferenceMethod, CKLCholeskyInferenceMethod, CKLCovarianceInferenceMethod, CCommUlongStringKernel, CCompressor, CSingleFITCLaplacianBase, CIterativeLinearSolver< T, ST >, CIterativeLinearSolver< float64_t, float64_t >, CIterativeLinearSolver< complex128_t, float64_t >, CIterativeLinearSolver< T, T >, CSVMLin, CHistogram, CGaussianShiftKernel, CGCArray< T >, CMultiLaplacianInferenceMethod, CNeuralSoftmaxLayer, CHomogeneousKernelMap, CLocallyLinearEmbedding, CMahalanobisDistance, CAttributeFeatures, CRandomFourierDotFeatures, CFirstElementKernelNormalizer, CMap< K, T >, CLogLoss, CLogLossMargin, CSmoothHingeLoss, CSoftMaxLikelihood, CMap< shogun::TParameter *, shogun::SGVector< float64_t > >, CMap< shogun::TParameter *, shogun::CSGObject * >, CMap< std::string, int32_t >, CMap< std::string, shogun::SGVector< float64_t > >, CMap< std::string, T >, CMap< std::string, float64_t >, CVwNativeCacheReader, CDistanceKernel, CLatentLabels, CKLLowerTriangularInferenceMethod, CScatterSVM, CSpectrumRBFKernel, CMultilabelLabels, CSingleLaplacianInferenceMethodWithLBFGS, CMMDKernelSelection, CSegmentLoss, CKernelDistance, CLogDetEstimator, CLinearRidgeRegression, CGNPPLib, CStreamingFileFromFeatures, CPolyMatchStringKernel, CNeuralLeakyRectifiedLinearLayer, CDomainAdaptationSVM, COligoStringKernel, CSimpleLocalityImprovedStringKernel, CKLDualInferenceMethod, CKernelSelection, CStreamingVwCacheFile, CCircularKernel, CConstKernel, CDiagKernel, CExponentialARDKernel, CSphericalKernel, CLogitDVGLikelihood, CSingleFITCLaplacianInferenceMethod, CSingleFITCLaplacianInferenceMethodWithLBFGS, CEigenSolver, CC45ClassifierTree, CLPM, CEmbeddingConverter, CEuclideanDistance, CWeightedMajorityVote, CMulticlassOVREvaluation, CPolyKernel, CPolyMatchWordStringKernel, CID3ClassifierTree, CMultitaskClusteredLogisticRegression, CMultidimensionalScaling, CANOVAKernel, CProductKernel, CSparseKernel< ST >, CGaussianMatchStringKernel, CRandomForest, CLanczosEigenSolver, CKernelPCA, CNearestCentroid, CStreamingFileFromDenseFeatures< T >, CStreamingFileFromSparseFeatures< T >, CStreamingFileFromStringFeatures< T >, CFixedDegreeStringKernel, CStringKernel< ST >, CTensorProductPairKernel, CGaussianNaiveBayes, CStringKernel< uint16_t >, CStringKernel< char >, CStringKernel< uint64_t >, CKernelDensity, CParser, CTStudentKernel, CWaveletKernel, CTraceSampler, CMulticlassOneVsRestStrategy, CGaussianProcessRegression, CGEMPLP, CDiffusionMaps, CMinkowskiMetric, CExponentialKernel, CEPInferenceMethod, CLaplacianEigenmaps, CAttenuatedEuclideanDistance, CCauchyKernel, CLogKernel, CPowerKernel, CRationalQuadraticKernel, CWaveKernel, CLaplacianInferenceBase, CDistantSegmentsKernel, CLocalityImprovedStringKernel, CMatchWordStringKernel, CRegulatoryModulesStringKernel, CKernelMachine, CBAHSIC, MKLMulticlassGradient, CAUCKernel, CHistogramIntersectionKernel, CSigmoidKernel, CDistanceMachine, CGaussianProcessMachine, CFITCInferenceMethod, CSparseVGInferenceMethod, CStructuredOutputMachine, CKernelDependenceMaximization, CGaussianARDKernel, CInverseMultiQuadricKernel, CFFDiag, CJADiag, CJADiagOrth, CLabelsFactory, CStudentsTLikelihood, CJediDiag, CQDiag, CUWedge, CTreeMachineNode< T >, CLibLinearRegression, CMMDKernelSelectionCombOpt, CTreeMachineNode< ConditionalProbabilityTreeNodeData >, CTreeMachineNode< RelaxedTreeNodeData >, CTreeMachineNode< id3TreeNodeData >, CTreeMachineNode< VwConditionalProbabilityTreeNodeData >, CTreeMachineNode< CARTreeNodeData >, CTreeMachineNode< C45TreeNodeData >, CTreeMachineNode< CHAIDTreeNodeData >, CTreeMachineNode< NbodyTreeNodeData >, CMulticlassAccuracy, CGaussianShortRealKernel, CMultiquadricKernel, CLocalAlignmentStringKernel, CICAConverter, CSplineKernel, CDelimiterTokenizer, CDualVariationalGaussianLikelihood, CLogitVGPiecewiseBoundLikelihood, CDimensionReductionPreprocessor, CPerceptron, CHistogramWordStringKernel, CLogRationalApproximationIndividual, CMultitaskL12LogisticRegression, CTaskTree, CProbabilityDistribution, CConstMean, CGaussianLikelihood, CSingleSparseInferenceBase, CStochasticGBMachine, CMatrixOperator< T >, CTreeMachine< T >, CMultitaskROCEvaluation, CTreeMachine< ConditionalProbabilityTreeNodeData >, CTreeMachine< RelaxedTreeNodeData >, CTreeMachine< id3TreeNodeData >, CTreeMachine< VwConditionalProbabilityTreeNodeData >, CTreeMachine< CARTreeNodeData >, CTreeMachine< C45TreeNodeData >, CTreeMachine< CHAIDTreeNodeData >, CTreeMachine< NbodyTreeNodeData >, CCanberraMetric, CCosineDistance, CManhattanMetric, CJensenShannonKernel, CLinearKernel, CNumericalVGLikelihood, CCGMShiftedFamilySolver, CIterativeShiftedLinearFamilySolver< T, ST >, CLogRationalApproximationCGM, CMMDKernelSelectionCombMaxL2, CDualLibQPBMSOSVM, CIterativeShiftedLinearFamilySolver< float64_t, complex128_t >, CGeodesicMetric, CJensenMetric, CTanimotoDistance, CLineReader, CIdentityKernelNormalizer, CLinearStringKernel, CLinearStructuredOutputMachine, CDecompressString< ST >, CGUIConverter, CIsomap, CNGramTokenizer, CStudentsTVGLikelihood, CMMDKernelSelectionMedian, CChiSquareDistance, CHammingWordDistance, CLogitVGLikelihood, CProbitVGLikelihood, CRandomSearchModelSelection, CGUILabels, MKLMulticlassGLPK, CSOBI, CKernelLocallyLinearEmbedding, CSparseDistance< ST >, CCrossValidationResult, CLatentFeatures, CBinaryTreeMachineNode< T >, CMMDKernelSelectionOpt, CSparseDistance< float64_t >, CAveragedPerceptron, CFFSep, CBrayCurtisDistance, CChebyshewMetric, CFactorGraphFeatures, CRegressionLabels, CNbodyTree, CMinimizerContext, CSparsePreprocessor< ST >, CLeastSquaresRegression, MKLMulticlassOptimizationBase, CVwNativeCacheWriter, CJediSep, CUWedgeSep, CSparseEuclideanDistance, CRealFileFeatures, CJobResultAggregator, CGaussianARDSparseKernel, CSingleLaplacianInferenceMethod, CMulticlassOneVsOneStrategy, CGUIPluginEstimate, CVwAdaptiveLearner, CStringDistance< ST >, CLinearLatentMachine, CDenseMatrixExactLog, CPNorm, CRescaleFeatures, CSparseMultilabel, CStringDistance< uint16_t >, CVwNonAdaptiveLearner, CStructuredAccuracy, CWeightedDegreeRBFKernel, CProbitLikelihood, CECOCRandomSparseEncoder, CMulticlassStrategy, CGradientCriterion, CLatentSVM, CIndependentJob, CGMNPSVM, CLogPlusOne, CMAPInference, CMixtureModel, CFactorGraphObservation, CLogitLikelihood, CNormOne, CLibSVM, CFactorAnalysis, CDenseSubSamplesFeatures< ST >, CStringFileFeatures< ST >, CScalarResult< T >, CDirectLinearSolverComplex, CIndividualJobResultAggregator, CBallTree, CKDTree, CStringPreprocessor< ST >, CMultitaskTraceLogisticRegression, CStringPreprocessor< uint16_t >, CStringPreprocessor< uint64_t >, CFastICA, CCanberraWordDistance, CManhattanWordDistance, CCrossValidationOutput, CLinearMulticlassMachine, CRationalApproximationCGMJob, CECOCDiscriminantEncoder, CRandomCARTree, CSumOne, CResultSet, CTaskGroup, CGUIDistance, CRationalApproximationIndividualJob, CSortWordString, CCCSOSVM, CIntronList, CRealNumber, CJade, CStoreVectorAggregator< T >, CIndexBlock, CIndexBlockGroup, CZeroMean, CConjugateOrthogonalCGSolver, CGradientModelSelection, CPruneVarSubMean, CSequence, CMultitaskLogisticRegression, CGUIPreprocessor, CStoreVectorAggregator< complex128_t >, CMeanSquaredError, CMeanSquaredLogError, CLatentSOSVM, CSortUlongString, CFeatureBlockLogisticRegression, CMeanAbsoluteError, CDummyFeatures, CListElement, CDenseExactLogJob, CMulticlassLibLinear, CDenseDistance< ST >, CRealDistance, CStringMap< T >, CLMNN, CMMDKernelSelectionMax, CDenseDistance< float64_t >, CStringMap< float64_t >, CStringMap< shogun::SGVector< float64_t > >, CStringMap< int32_t >, CSVMLightOneClass, CLinearLocalTangentSpaceAlignment, CNeighborhoodPreservingEmbedding, CEMBase< T >, CEMMixtureModel, CIndependentComputationEngine, CVectorResult< T >, CKernelStructuredOutputMachine, CThresholdRejectionStrategy, CVwConditionalProbabilityTree, CEMBase< MixModelData >, CHessianLocallyLinearEmbedding, CCustomMahalanobisDistance, CCombinationRule, CClusteringAccuracy, CClusteringMutualInformation, CMultilabelAccuracy, CMeanShiftDataGenerator, CMMDKernelSelectionComb, CFactorGraphModel, CLocalTangentSpaceAlignment, CSubsetStack, CStoreScalarAggregator< T >, CConjugateGradientSolver, CGridSearchModelSelection, CStochasticSOSVM, CMultitaskLeastSquaresRegression, CMajorityVote, CLinearOperator< T >, CMultitaskLinearMachine, CLinearOperator< float64_t >, CLinearOperator< complex128_t >, CMeanRule, CLocalityPreservingProjections, CGradientEvaluation, CDirectEigenSolver, CLinearSolver< T, ST >, CMulticlassLibSVM, CMKLRegression, CFactorDataSource, CFactorGraph, CTaskRelation, CLinearSolver< float64_t, float64_t >, CLinearSolver< complex128_t, float64_t >, CLinearSolver< T, T >, CSerialComputationEngine, CIndexBlockRelation, CECOCEncoder, CKernelMeanMatching, CROCEvaluation, CGaussianBlobsDataGenerator, CBalancedConditionalProbabilityTree, CFactorType, CSOSVMHelper, CMKLOneClass, CLibSVMOneClass, CMPDSVM, CGradientResult, CKernelMulticlassMachine, CNormalSampler, CECOCIHDDecoder, CConditionalProbabilityTree, CRelaxedTree, CFWSOSVM, CDomainAdaptationMulticlassLibLinear, CMKLClassification, CGPBTSVM, CSubset, CECOCRandomDenseEncoder, CMulticlassTreeGuidedLogisticRegression, CShareBoost, CGNPPSVM, CDirectSparseLinearSolver, CMulticlassLogisticRegression, CMulticlassOCAS, CFactorGraphDataGenerator, CPRCEvaluation, CStratifiedCrossValidationSplitting, CSparseInverseCovariance, CDisjointSet, CCrossValidationSplitting, CDenseSubsetFeatures< ST >, CECOCForestEncoder, CGUIMath, CGUITime, CTDistributedStochasticNeighborEmbedding, CCrossValidationPrintOutput, CManifoldSculpting, CCrossValidationMKLStorage, SerializableAsciiReader00, CJobResult, CFunction, CECOCAEDDecoder, CECOCDecoder, CECOCEDDecoder, CData, CNativeMulticlassMachine, CECOCStrategy, CConverter, CBaseMulticlassMachine, CECOCSimpleDecoder, CLOOCrossValidationSplitting, CECOCLLBDecoder, CStructuredData, CECOCHDDecoder, CRandomConditionalProbabilityTree, CECOCOVOEncoder, CECOCOVREncoder , 以及 CRejectionStrategy 内被实现.
|
pure virtual |
get negative log marginal likelihood
\[ -log(p(y|X, \theta)) \]
where \(y\) are the labels, \(X\) are the features, and \(\theta\) represent hyperparameters.
在 CSingleFITCLaplacianInferenceMethod, CMultiLaplacianInferenceMethod, CKLInferenceMethod, CExactInferenceMethod, CFITCInferenceMethod, CSparseVGInferenceMethod, CEPInferenceMethod , 以及 CSingleLaplacianInferenceMethod 内被实现.
|
virtual |
get log marginal likelihood gradient
\[ -\frac{\partial log(p(y|X, \theta))}{\partial \theta} \]
where \(y\) are the labels, \(X\) are the features, and \(\theta\) represent hyperparameters.
在文件 InferenceMethod.cpp 第 185 行定义.
returns covariance matrix \(\Sigma\) of the Gaussian distribution \(\mathcal{N}(\mu,\Sigma)\), which is an approximation to the posterior:
\[ p(f|y) \approx q(f|y) = \mathcal{N}(\mu,\Sigma) \]
in case if particular inference method doesn't compute posterior \(p(f|y)\) exactly, and it returns covariance matrix \(\Sigma\) of the posterior Gaussian distribution \(\mathcal{N}(\mu,\Sigma)\) otherwise.
在 CSparseInferenceBase, CEPInferenceMethod, CExactInferenceMethod, CFITCInferenceMethod, CSparseVGInferenceMethod, CSingleFITCLaplacianInferenceMethod, CKLInferenceMethod , 以及 CLaplacianInferenceBase 内被实现.
get alpha vector
\[ \mu = K\alpha+meanf \]
where \(\mu\) is the mean, \(K\) is the prior covariance matrix, and \(meanf$\f is the mean prior fomr MeanFunction */ virtual SGVector<float64_t> get_alpha()=0; /** get Cholesky decomposition matrix @return Cholesky decomposition of matrix */ virtual SGMatrix<float64_t> get_cholesky()=0; /** get diagonal vector @return diagonal of matrix used to calculate posterior covariance matrix */ virtual SGVector<float64_t> get_diagonal_vector()=0; /** returns mean vector \)$ of the Gaussian distribution \(\mathcal{N}(\mu,\Sigma)\), which is an approximation to the posterior:
\[ p(f|y) \approx q(f|y) = \mathcal{N}(\mu,\Sigma) \]
in case if particular inference method doesn't compute posterior \(p(f|y)\) exactly, and it returns covariance matrix \(\Sigma\) of the posterior Gaussian distribution \(\mathcal{N}(\mu,\Sigma)\) otherwise.
在 CSparseInferenceBase, CEPInferenceMethod, CExactInferenceMethod, CMultiLaplacianInferenceMethod, CFITCInferenceMethod, CSparseVGInferenceMethod, CSingleFITCLaplacianInferenceMethod, CSingleLaplacianInferenceMethod , 以及 CKLInferenceMethod 内被实现.
|
virtual |
|
virtualinherited |
If the SGSerializable is a class template then TRUE will be returned and GENERIC is set to the type of the generic.
generic | set to the type of the generic if returning TRUE |
在文件 SGObject.cpp 第 296 行定义.
|
virtualinherited |
Load this object from file. If it will fail (returning FALSE) then this object will contain inconsistent data and should not be used!
file | where to load from |
prefix | prefix for members |
在文件 SGObject.cpp 第 369 行定义.
|
protectedvirtualinherited |
Can (optionally) be overridden to post-initialize some member variables which are not PARAMETER::ADD'ed. Make sure that at first the overridden method BASE_CLASS::LOAD_SERIALIZABLE_POST is called.
ShogunException | will be thrown if an error occurs. |
被 CKernel, CWeightedDegreePositionStringKernel, CList, CAlphabet, CLinearHMM, CGaussianKernel, CInverseMultiQuadricKernel, CCircularKernel , 以及 CExponentialKernel 重载.
在文件 SGObject.cpp 第 426 行定义.
|
protectedvirtualinherited |
Can (optionally) be overridden to pre-initialize some member variables which are not PARAMETER::ADD'ed. Make sure that at first the overridden method BASE_CLASS::LOAD_SERIALIZABLE_PRE is called.
ShogunException | will be thrown if an error occurs. |
被 CDynamicArray< T >, CDynamicArray< float64_t >, CDynamicArray< float32_t >, CDynamicArray< int32_t >, CDynamicArray< char >, CDynamicArray< bool > , 以及 CDynamicObjectArray 重载.
在文件 SGObject.cpp 第 421 行定义.
|
virtualinherited |
在文件 SGObject.cpp 第 262 行定义.
|
inherited |
prints all parameter registered for model selection and their type
在文件 SGObject.cpp 第 474 行定义.
|
virtualinherited |
|
virtualinherited |
Save this object to file.
file | where to save the object; will be closed during returning if PREFIX is an empty string. |
prefix | prefix for members |
在文件 SGObject.cpp 第 314 行定义.
|
protectedvirtualinherited |
Can (optionally) be overridden to post-initialize some member variables which are not PARAMETER::ADD'ed. Make sure that at first the overridden method BASE_CLASS::SAVE_SERIALIZABLE_POST is called.
ShogunException | will be thrown if an error occurs. |
被 CKernel 重载.
在文件 SGObject.cpp 第 436 行定义.
|
protectedvirtualinherited |
Can (optionally) be overridden to pre-initialize some member variables which are not PARAMETER::ADD'ed. Make sure that at first the overridden method BASE_CLASS::SAVE_SERIALIZABLE_PRE is called.
ShogunException | will be thrown if an error occurs. |
被 CKernel, CDynamicArray< T >, CDynamicArray< float64_t >, CDynamicArray< float32_t >, CDynamicArray< int32_t >, CDynamicArray< char >, CDynamicArray< bool > , 以及 CDynamicObjectArray 重载.
在文件 SGObject.cpp 第 431 行定义.
|
virtual |
|
inherited |
在文件 SGObject.cpp 第 41 行定义.
|
inherited |
在文件 SGObject.cpp 第 46 行定义.
|
inherited |
在文件 SGObject.cpp 第 51 行定义.
|
inherited |
在文件 SGObject.cpp 第 56 行定义.
|
inherited |
在文件 SGObject.cpp 第 61 行定义.
|
inherited |
在文件 SGObject.cpp 第 66 行定义.
|
inherited |
在文件 SGObject.cpp 第 71 行定义.
|
inherited |
在文件 SGObject.cpp 第 76 行定义.
|
inherited |
在文件 SGObject.cpp 第 81 行定义.
|
inherited |
在文件 SGObject.cpp 第 86 行定义.
|
inherited |
在文件 SGObject.cpp 第 91 行定义.
|
inherited |
在文件 SGObject.cpp 第 96 行定义.
|
inherited |
在文件 SGObject.cpp 第 101 行定义.
|
inherited |
在文件 SGObject.cpp 第 106 行定义.
|
inherited |
在文件 SGObject.cpp 第 111 行定义.
|
inherited |
set generic type to T
|
inherited |
|
inherited |
|
inherited |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
set likelihood model
mod | model to set |
被 CKLInferenceMethod , 以及 CKLDualInferenceMethod 重载.
在文件 InferenceMethod.h 第 340 行定义.
|
virtual |
|
virtualinherited |
A shallow copy. All the SGObject instance variables will be simply assigned and SG_REF-ed.
被 CGaussianKernel 重载.
在文件 SGObject.cpp 第 192 行定义.
|
virtual |
whether combination of inference method and given likelihood function supports binary classification
被 CEPInferenceMethod, CKLInferenceMethod, CSingleFITCLaplacianInferenceMethod , 以及 CSingleLaplacianInferenceMethod 重载.
在文件 InferenceMethod.h 第 371 行定义.
|
virtual |
whether combination of inference method and given likelihood function supports multiclass classification
在文件 InferenceMethod.h 第 378 行定义.
|
virtual |
whether combination of inference method and given likelihood function supports regression
被 CExactInferenceMethod, CKLInferenceMethod, CFITCInferenceMethod, CSparseVGInferenceMethod, CSingleFITCLaplacianInferenceMethod , 以及 CSingleLaplacianInferenceMethod 重载.
在文件 InferenceMethod.h 第 364 行定义.
|
inherited |
unset generic type
this has to be called in classes specializing a template class
在文件 SGObject.cpp 第 303 行定义.
|
virtual |
update matrices except gradients
被 CEPInferenceMethod, CSingleFITCLaplacianInferenceMethod, CExactInferenceMethod, CKLInferenceMethod, CFITCInferenceMethod, CSparseVGInferenceMethod, CSparseInferenceBase, CLaplacianInferenceBase , 以及 CSingleLaplacianInferenceMethod 重载.
在文件 InferenceMethod.cpp 第 303 行定义.
|
protectedpure virtual |
update alpha vector
在 CEPInferenceMethod, CSingleFITCLaplacianInferenceMethod, CExactInferenceMethod, CSingleFITCLaplacianBase, CFITCInferenceMethod, CSparseVGInferenceMethod, CMultiLaplacianInferenceMethod, CKLDualInferenceMethod, CSingleLaplacianInferenceMethodWithLBFGS, CSingleFITCLaplacianInferenceMethodWithLBFGS, CSingleLaplacianInferenceMethod, CKLCovarianceInferenceMethod, CKLApproxDiagonalInferenceMethod , 以及 CKLCholeskyInferenceMethod 内被实现.
|
protectedpure virtual |
update cholesky matrix
在 CEPInferenceMethod, CSingleFITCLaplacianInferenceMethod, CExactInferenceMethod, CSingleFITCLaplacianBase, CFITCInferenceMethod, CSparseVGInferenceMethod, CMultiLaplacianInferenceMethod, CKLDualInferenceMethod, CSingleLaplacianInferenceMethod, CKLCovarianceInferenceMethod , 以及 CKLLowerTriangularInferenceMethod 内被实现.
|
protectedpure virtual |
update matrices which are required to compute negative log marginal likelihood derivatives wrt hyperparameter
在 CEPInferenceMethod, CSingleFITCLaplacianInferenceMethod, CExactInferenceMethod, CSingleFITCLaplacianBase, CFITCInferenceMethod, CSparseVGInferenceMethod, CMultiLaplacianInferenceMethod, CKLDualInferenceMethod, CSingleLaplacianInferenceMethod, CKLCovarianceInferenceMethod , 以及 CKLLowerTriangularInferenceMethod 内被实现.
|
virtualinherited |
Updates the hash of current parameter combination
在文件 SGObject.cpp 第 248 行定义.
|
protectedvirtual |
|
inherited |
io
在文件 SGObject.h 第 369 行定义.
alpha vector used in process mean calculation
在文件 InferenceMethod.h 第 475 行定义.
the matrix used for multi classification
在文件 InferenceMethod.h 第 487 行定义.
|
protected |
features to use
在文件 InferenceMethod.h 第 469 行定义.
|
inherited |
parameters wrt which we can compute gradients
在文件 SGObject.h 第 384 行定义.
|
protected |
Whether gradients are updated
在文件 InferenceMethod.h 第 490 行定义.
|
inherited |
Hash of parameter values
在文件 SGObject.h 第 387 行定义.
|
protected |
covariance function
在文件 InferenceMethod.h 第 460 行定义.
kernel matrix from features (non-scalled by inference scalling)
在文件 InferenceMethod.h 第 484 行定义.
upper triangular factor of Cholesky decomposition
在文件 InferenceMethod.h 第 478 行定义.
|
protected |
labels of features
在文件 InferenceMethod.h 第 472 行定义.
|
protected |
kernel scale
在文件 InferenceMethod.h 第 481 行定义.
|
protected |
mean function
在文件 InferenceMethod.h 第 463 行定义.
|
protected |
likelihood function to use
在文件 InferenceMethod.h 第 466 行定义.
|
inherited |
model selection parameters
在文件 SGObject.h 第 381 行定义.
|
inherited |
parameters
在文件 SGObject.h 第 378 行定义.
|
inherited |
parallel
在文件 SGObject.h 第 372 行定义.
|
inherited |
version
在文件 SGObject.h 第 375 行定义.