Click or drag to resize
Accord.NET (logo)

ISupportVectorMachineTInput Interface

Common interface for binary support vector machines.

Namespace:  Accord.MachineLearning.VectorMachines
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.5.0
Syntax
public interface ISupportVectorMachine<TInput> : IBinaryLikelihoodClassifier<TInput>, 
	IBinaryScoreClassifier<TInput>, IBinaryClassifier<TInput>, IMulticlassClassifier<TInput>, 
	IMultilabelClassifier<TInput>, IMultilabelClassifier<TInput, int[]>, IClassifier<TInput, int[]>, 
	ITransform<TInput, int[]>, ITransform, IMultilabelClassifier<TInput, bool[]>, 
	IClassifier<TInput, bool[]>, ITransform<TInput, bool[]>, 
	IMultilabelClassifier<TInput, double[]>, IClassifier<TInput, double[]>, 
	ITransform<TInput, double[]>, IMulticlassClassifier<TInput, int>, 
	IClassifier<TInput, int>, ITransform<TInput, int>, IMulticlassClassifier<TInput, double>, 
	IClassifier<TInput, double>, ITransform<TInput, double>, 
	IClassifier<TInput, bool>, ITransform<TInput, bool>, 
	IMulticlassOutScoreClassifier<TInput, bool>, IMulticlassScoreClassifier<TInput, bool>, 
	IMultilabelOutScoreClassifier<TInput, bool>, IMultilabelScoreClassifier<TInput, bool>, 
	IMulticlassScoreClassifier<TInput>, IMulticlassOutScoreClassifier<TInput, int>, IMulticlassScoreClassifier<TInput, int>, 
	IMultilabelOutScoreClassifier<TInput, int>, IMultilabelScoreClassifier<TInput, int>, IMulticlassOutScoreClassifier<TInput, double>, 
	IMulticlassScoreClassifier<TInput, double>, IMultilabelOutScoreClassifier<TInput, double>, 
	IMultilabelScoreClassifier<TInput, double>, IMulticlassRefScoreClassifier<TInput, int[]>, 
	IMultilabelRefScoreClassifier<TInput, int[]>, IMultilabelScoreClassifier<TInput, int[]>, 
	IMulticlassRefScoreClassifier<TInput, bool[]>, IMultilabelRefScoreClassifier<TInput, bool[]>, 
	IMultilabelScoreClassifier<TInput, bool[]>, IMulticlassRefScoreClassifier<TInput, double[]>, 
	IMultilabelRefScoreClassifier<TInput, double[]>, IMultilabelScoreClassifier<TInput, double[]>, 
	IMultilabelScoreClassifier<TInput>, IMulticlassOutLikelihoodClassifier<TInput, bool>, IMultilabelOutLikelihoodClassifier<TInput, bool>, 
	IMultilabelLikelihoodClassifier<TInput, bool>, IMulticlassLikelihoodClassifier<TInput, bool>, 
	IMulticlassLikelihoodClassifier<TInput>, IMulticlassOutLikelihoodClassifier<TInput, int>, IMultilabelOutLikelihoodClassifier<TInput, int>, 
	IMultilabelLikelihoodClassifier<TInput, int>, IMulticlassLikelihoodClassifier<TInput, int>, IMulticlassOutLikelihoodClassifier<TInput, double>, 
	IMultilabelOutLikelihoodClassifier<TInput, double>, IMultilabelLikelihoodClassifier<TInput, double>, 
	IMulticlassLikelihoodClassifier<TInput, double>, IMulticlassRefLikelihoodClassifier<TInput, int[]>, 
	IMultilabelRefLikelihoodClassifier<TInput, int[]>, IMultilabelLikelihoodClassifier<TInput, int[]>, 
	IMulticlassRefLikelihoodClassifier<TInput, bool[]>, IMultilabelRefLikelihoodClassifier<TInput, bool[]>, 
	IMultilabelLikelihoodClassifier<TInput, bool[]>, IMulticlassRefLikelihoodClassifier<TInput, double[]>, 
	IMultilabelRefLikelihoodClassifier<TInput, double[]>, IMultilabelLikelihoodClassifier<TInput, double[]>, 
	IMultilabelLikelihoodClassifier<TInput>

Type Parameters

TInput
The type of the input data handled by the machine.

The ISupportVectorMachineTInput type exposes the following members.

Properties
  NameDescription
Public propertyIsProbabilistic
Gets whether this machine has been calibrated to produce probabilistic outputs (through the Probability method).
Public propertyKernel
Gets or sets the kernel used by this machine.
Public propertyNumberOfInputs
Gets the number of inputs accepted by the model.
(Inherited from ITransform.)
Public propertyNumberOfOutputs
Gets the number of outputs generated by the model.
(Inherited from ITransform.)
Public propertySupportVectors
Gets or sets the collection of support vectors used by this machine.
Public propertyThreshold
Gets or sets the threshold (bias) term for this machine.
Public propertyWeights
Gets or sets the collection of weights used by this machine.
Top
Methods
  NameDescription
Public methodCompress
If this machine has a linear kernel, compresses all support vectors into a single parameter vector.
Public methodDecide(TInput)
Computes a class-label decision for a given input.
(Inherited from IClassifierTInput, TClasses.)
Public methodDecide(TInput)
Computes class-label decisions for each vector in the given input.
(Inherited from IClassifierTInput, TClasses.)
Public methodDecide(TInput, TClasses)
Computes class-label decisions for each vector in the given input.
(Inherited from IClassifierTInput, TClasses.)
Public methodDecide(TInput, TClasses)
Computes class-label decisions for the given input.
(Inherited from IMultilabelClassifierTInput, TClasses.)
Public methodLogLikelihood(TInput)
Predicts a class label vector for the given input vector, returning the log-likelihood that the input vector belongs to its predicted class.
(Inherited from IMulticlassLikelihoodClassifierTInput.)
Public methodLogLikelihood(TInput)
Predicts a class label vector for the given input vectors, returning the log-likelihood that the input vector belongs to its predicted class.
(Inherited from IMulticlassLikelihoodClassifierTInput.)
Public methodLogLikelihood(TInput, Double)
Predicts a class label vector for the given input vectors, returning the log-likelihood that the input vector belongs to its predicted class.
(Inherited from IMulticlassLikelihoodClassifierTInput.)
Public methodLogLikelihood(TInput, TClasses)
Predicts a class label for each input vector, returning the log-likelihood that each vector belongs to its predicted class.
(Inherited from IMulticlassLikelihoodClassifierTInput, TClasses.)
Public methodLogLikelihood(TInput, TClasses)
Predicts a class label vector for the given input vector, returning the log-likelihood that the input vector belongs to its predicted class.
(Inherited from IMulticlassOutLikelihoodClassifierTInput, TClasses.)
Public methodLogLikelihood(TInput, Int32)
Computes the log-likelihood that the given input vector belongs to the specified classIndex.
(Inherited from IMultilabelLikelihoodClassifierTInput.)
Public methodLogLikelihood(TInput, Int32)
Computes the log-likelihood that the given input vectors belongs to each class specified in classIndex.
(Inherited from IMultilabelLikelihoodClassifierTInput.)
Public methodLogLikelihood(TInput, Int32)
Computes the log-likelihood that the given input vectors belongs to each class specified in classIndex.
(Inherited from IMultilabelLikelihoodClassifierTInput.)
Public methodLogLikelihood(TInput, TClasses, Double)
Predicts a class label for each input vector, returning the log-likelihood that each vector belongs to its predicted class.
(Inherited from IMulticlassLikelihoodClassifierTInput, TClasses.)
Public methodLogLikelihood(TInput, Int32, Double)
Computes the log-likelihood that the given input vectors belongs to each class specified in classIndex.
(Inherited from IMultilabelLikelihoodClassifierTInput.)
Public methodLogLikelihood(TInput, Int32, Double)
Computes the log-likelihood that the given input vectors belongs to each class specified in classIndex.
(Inherited from IMultilabelLikelihoodClassifierTInput.)
Public methodLogLikelihoods(TInput)
Computes the log-likelihood that the given input vector belongs to each of the possible classes.
(Inherited from IMultilabelLikelihoodClassifierTInput.)
Public methodLogLikelihoods(TInput)
Computes the log-likelihoods that the given input vectors belongs to each of the possible classes.
(Inherited from IMultilabelLikelihoodClassifierTInput.)
Public methodLogLikelihoods(TInput, Double)
Computes the log-likelihood that the given input vector belongs to each of the possible classes.
(Inherited from IMultilabelLikelihoodClassifierTInput.)
Public methodLogLikelihoods(TInput, Double)
Computes the log-likelihoods that the given input vectors belongs to each of the possible classes.
(Inherited from IMultilabelLikelihoodClassifierTInput.)
Public methodLogLikelihoods(TInput, TClasses)
Predicts a class label vector for each input vector, returning the log-likelihoods of the input vector belonging to each possible class.
(Inherited from IMultilabelLikelihoodClassifierTInput, TClasses.)
Public methodLogLikelihoods(TInput, TClasses)
Predicts a class label vector for the given input vector, returning the log-likelihoods of the input vector belonging to each possible class.
(Inherited from IMultilabelOutLikelihoodClassifierTInput, TClasses.)
Public methodLogLikelihoods(TInput, TClasses, Double)
Predicts a class label vector for each input vector, returning the log-likelihoods of the input vector belonging to each possible class.
(Inherited from IMultilabelLikelihoodClassifierTInput, TClasses.)
Public methodLogLikelihoods(TInput, TClasses, Double)
Predicts a class label vector for the given input vector, returning the log-likelihoods of the input vector belonging to each possible class.
(Inherited from IMultilabelOutLikelihoodClassifierTInput, TClasses.)
Public methodProbabilities(TInput)
Computes the probabilities that the given input vector belongs to each of the possible classes.
(Inherited from IMultilabelLikelihoodClassifierTInput.)
Public methodProbabilities(TInput)
Computes the probabilities that the given input vectors belongs to each of the possible classes.
(Inherited from IMultilabelLikelihoodClassifierTInput.)
Public methodProbabilities(TInput, Double)
Computes the probabilities that the given input vector belongs to each of the possible classes.
(Inherited from IMultilabelLikelihoodClassifierTInput.)
Public methodProbabilities(TInput, Double)
Computes the probabilities that the given input vectors belongs to each of the possible classes.
(Inherited from IMultilabelLikelihoodClassifierTInput.)
Public methodProbabilities(TInput, TClasses)
Predicts a class label vector for each input vector, returning the probabilities of the input vector belonging to each possible class.
(Inherited from IMultilabelLikelihoodClassifierTInput, TClasses.)
Public methodProbabilities(TInput, TClasses)
Predicts a class label vector for the given input vector, returning the probabilities of the input vector belonging to each possible class.
(Inherited from IMultilabelOutLikelihoodClassifierTInput, TClasses.)
Public methodProbabilities(TInput, TClasses, Double)
Predicts a class label vector for each input vector, returning the probabilities of the input vector belonging to each possible class.
(Inherited from IMultilabelLikelihoodClassifierTInput, TClasses.)
Public methodProbabilities(TInput, TClasses, Double)
Predicts a class label vector for the given input vector, returning the probabilities of the input vector belonging to each possible class.
(Inherited from IMultilabelOutLikelihoodClassifierTInput, TClasses.)
Public methodProbability(TInput)
Predicts a class label for the given input vector, returning the probability that the input vector belongs to its predicted class.
(Inherited from IMulticlassLikelihoodClassifierTInput.)
Public methodProbability(TInput)
Predicts a class label for the given input vectors, returning the probability that the input vector belongs to its predicted class.
(Inherited from IMulticlassLikelihoodClassifierTInput.)
Public methodProbability(TInput, Double)
Predicts a class label for the given input vectors, returning the probability that the input vector belongs to its predicted class.
(Inherited from IMulticlassLikelihoodClassifierTInput.)
Public methodProbability(TInput, TClasses)
Predicts a class label for each input vector, returning the probability that each vector belongs to its predicted class.
(Inherited from IMulticlassLikelihoodClassifierTInput, TClasses.)
Public methodProbability(TInput, TClasses)
Predicts a class label for the given input vector, returning the probability that the input vector belongs to its predicted class.
(Inherited from IMulticlassOutLikelihoodClassifierTInput, TClasses.)
Public methodProbability(TInput, Int32)
Computes the probability that the given input vector belongs to the specified classIndex.
(Inherited from IMultilabelLikelihoodClassifierTInput.)
Public methodProbability(TInput, Int32)
Computes the probability that the given input vectors belongs to each class specified in classIndex.
(Inherited from IMultilabelLikelihoodClassifierTInput.)
Public methodProbability(TInput, Int32)
Computes the probability that the given input vectors belongs to each class specified in classIndex.
(Inherited from IMultilabelLikelihoodClassifierTInput.)
Public methodProbability(TInput, TClasses, Double)
Predicts a class label for each input vector, returning the probability that each vector belongs to its predicted class.
(Inherited from IMulticlassLikelihoodClassifierTInput, TClasses.)
Public methodProbability(TInput, Int32, Double)
Computes the probability that the given input vectors belongs to each class specified in classIndex.
(Inherited from IMultilabelLikelihoodClassifierTInput.)
Public methodProbability(TInput, Int32, Double)
Computes the probability that the given input vectors belongs to each class specified in classIndex.
(Inherited from IMultilabelLikelihoodClassifierTInput.)
Public methodScore(TInput)
Computes a numerical score measuring the association between the given input vector and its most strongly associated class (as predicted by the classifier).
(Inherited from IMulticlassScoreClassifierTInput.)
Public methodScore(TInput)
Computes a numerical score measuring the association between each of the given input vectors and their respective most strongly associated classes.
(Inherited from IMulticlassScoreClassifierTInput.)
Public methodScore(TInput, TClasses)
Predicts a class label for the input vector, returning a numerical score measuring the strength of association of the input vector to its most strongly related class.
(Inherited from IMulticlassOutScoreClassifierTInput, TClasses.)
Public methodScore(TInput, Double)
Computes a numerical score measuring the association between each of the given input vectors and their respective most strongly associated classes.
(Inherited from IMulticlassScoreClassifierTInput.)
Public methodScore(TInput, TClasses)
Predicts a class label for each input vector, returning a numerical score measuring the strength of association of the input vector to the most strongly related class.
(Inherited from IMulticlassScoreClassifierTInput, TClasses.)
Public methodScore(TInput, Int32)
Computes a numerical score measuring the association between the given input vector and a given classIndex.
(Inherited from IMultilabelScoreClassifierTInput.)
Public methodScore(TInput, Int32)
Computes a numerical score measuring the association between each of the given input vectors and the given classIndex.
(Inherited from IMultilabelScoreClassifierTInput.)
Public methodScore(TInput, Int32)
Computes a numerical score measuring the association between each of the given input vectors and the given classIndex.
(Inherited from IMultilabelScoreClassifierTInput.)
Public methodScore(TInput, TClasses, Double)
Predicts a class label for each input vector, returning a numerical score measuring the strength of association of the input vector to the most strongly related class.
(Inherited from IMulticlassScoreClassifierTInput, TClasses.)
Public methodScore(TInput, Int32, Double)
Computes a numerical score measuring the association between each of the given input vectors and the given classIndex.
(Inherited from IMultilabelScoreClassifierTInput.)
Public methodScore(TInput, Int32, Double)
Computes a numerical score measuring the association between each of the given input vectors and the given classIndex.
(Inherited from IMultilabelScoreClassifierTInput.)
Public methodScores(TInput)
Computes a numerical score measuring the association between the given input vector and each class.
(Inherited from IMultilabelScoreClassifierTInput.)
Public methodScores(TInput)
Computes a numerical score measuring the association between each of the given input vectors and each possible class.
(Inherited from IMultilabelScoreClassifierTInput.)
Public methodScores(TInput, TClasses)
Predicts a class label vector for the given input vector, returning a numerical score measuring the strength of association of the input vector to each of the possible classes.
(Inherited from IMultilabelOutScoreClassifierTInput, TClasses.)
Public methodScores(TInput, Double)
Computes a numerical score measuring the association between the given input vector and each class.
(Inherited from IMultilabelScoreClassifierTInput.)
Public methodScores(TInput, Double)
Computes a numerical score measuring the association between each of the given input vectors and each possible class.
(Inherited from IMultilabelScoreClassifierTInput.)
Public methodScores(TInput, TClasses)
Predicts a class label vector for each input vector, returning a numerical score measuring the strength of association of the input vector to each of the possible classes.
(Inherited from IMultilabelScoreClassifierTInput, TClasses.)
Public methodScores(TInput, TClasses, Double)
Predicts a class label vector for the given input vector, returning a numerical score measuring the strength of association of the input vector to each of the possible classes.
(Inherited from IMultilabelOutScoreClassifierTInput, TClasses.)
Public methodScores(TInput, TClasses, Double)
Predicts a class label vector for each input vector, returning a numerical score measuring the strength of association of the input vector to each of the possible classes.
(Inherited from IMultilabelScoreClassifierTInput, TClasses.)
Public methodToMulticlass
Views this instance as a multi-class generative classifier, giving access to more advanced methods, such as the prediction of integer labels.
(Inherited from IBinaryLikelihoodClassifierTInput.)
Public methodToMultilabel
Views this instance as a multi-label classifier, giving access to more advanced methods, such as the prediction of one-hot vectors.
(Inherited from IMulticlassClassifierTInput.)
Public methodTransform(TInput)
Applies the transformation to an input, producing an associated output.
(Inherited from ITransformTInput, TOutput.)
Public methodTransform(TInput)
Applies the transformation to a set of input vectors, producing an associated set of output vectors.
(Inherited from ITransformTInput, TOutput.)
Public methodTransform(TInput, TOutput)
Applies the transformation to a set of input vectors, producing an associated set of output vectors.
(Inherited from ITransformTInput, TOutput.)
Top
See Also