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.Neural
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public virtual int PredictedClass( double[] x ) |
Visual Basic (Declaration) |
---|
Public Overridable Function PredictedClass ( _ x As Double() _ ) As Integer |
Visual C++ |
---|
public: virtual int PredictedClass( array<double>^ x ) |
Parameters
- x
- Type: array<
System..::.Double
>[]()[]
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
The classification predicted by the trained network for x. This will be either 0 or 1.
Remarks
This 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.