|
SupportVectorMachineTKernel, TInputCompute Method (TInput, Double)
|
Note: This API is now obsolete.
Computes the given input to produce the corresponding output.
Namespace:
Accord.MachineLearning.VectorMachines
Assembly:
Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax[ObsoleteAttribute("Please use the Decide or Transform methods instead.")]
public virtual int Compute(
TInput inputs,
out double output
)
<ObsoleteAttribute("Please use the Decide or Transform methods instead.")>
Public Overridable Function Compute (
inputs As TInput,
<OutAttribute> ByRef output As Double
) As Integer
Request Example
View SourceParameters
- inputs
- Type: TInput
An input vector. - output
- Type: SystemDouble
The output of the machine. If this is a
probabilistic machine, the
output is the probability of the positive class. If this is
a standard machine, the output is the distance to the decision
hyperplane in feature space.
Return Value
Type:
Int32The decision label for the given input.
Remarks
For a binary decision problem, the decision for the negative
or positive class is typically computed by taking the sign of
the machine's output.
See Also