| BinaryClassificationPredictedClass Method |
Calculates the classification probablities for the input
pattern x, and returns either 0 or 1 identifying the class with the
highest probability.
Namespace: Imsl.DataMining.NeuralAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntaxpublic virtual int PredictedClass(
double[] x
)
Public Overridable Function PredictedClass (
x As Double()
) As Integer
public:
virtual int PredictedClass(
array<double>^ x
)
abstract PredictedClass :
x : float[] -> int
override PredictedClass :
x : float[] -> int Parameters
- x
- Type: SystemDouble
The double array containing the network input
patterns to classify. The length of x should be
equal to the number of inputs in the network.
Return Value
Type:
Int32
The classification predicted by the trained network for
x.
This will be either 0 or 1.
RemarksThis method is used to classify patterns into one of the two
target classes based upon the pattern's values. The predicted
classification is the class with the largest probability, i.e. greater
than 0.5.
See Also