CVB.Net 14.0
ClassificationTestResult Class Reference

Classification test result object. More...

Inherits TestResultBase.

Public Member Functions

 ClassificationTestResult (string fileName)
 Load a test result from disk. More...
 
- Public Member Functions inherited from PolimagoFactoryCreatedObject
void Save (string fileName)
 Save this object into a file. More...
 
- Public Member Functions inherited from PolimagoRefCountedObject
virtual void Dispose ()
 IDisposable implementation. More...
 

Properties

int NumClasses [get]
 Number of classes in the sample database on which the test result was calculated.
 
int OutputDimension [get]
 For tests with usage OneVersusAll the output dimension will equal the number of classes in the training database. For usage ClassifyOneVersusOne the output dimension is (NumClasses - 1) * (NumClasses) / 2.
 
int NumErrors [get]
 Total number of errors made during classification testing.
 
double ErrorRate [get]
 Total number of errors divided by the total number of examples.
 
ReadOnlyCollection< string > Classes [get]
 Class labels available in this test result.
 
ReadOnlyCollection< double > ExampleConfidences [get]
 Confidences in the classification decision for each sample.
 
ReadOnlyCollection< double[]> ExampleConfidenceDistributions [get]
 Confidence distributions for each example.
 
ReadOnlyCollection< int > TrueClassIndices [get]
 The real class index for each example.
 
ReadOnlyCollection< int > PredictedClassIndices [get]
 Prediction results for all indices.
 
- Properties inherited from TestResultBase
int NumExamples [get]
 Number of examples that contributed to this test result.
 
double TotalMeanSquareError [get]
 Total mean square error of the predictor over all examples and all coordinates.
 
ReadOnlyCollection< double > ExampleMeanSquareError [get]
 Mean square error for each individual example (the index runs over all the examples that contributed to this test result).
 
int FeatureResolution [get]
 Feature resolution value with which the classifier was trained.
 
- Properties inherited from PolimagoFactoryCreatedObject
string FileName [get, protected set]
 Name of the file the object has been loaded from (or More...
 
double Lambda [get]
 Regularization value that has been used for generating this object.
 
double Offset [get]
 Intercept weight that has been used for generating this object.
 
InterpolationType Interpolation [get]
 Interpolation setting used for generating this object.
 
int ImagePlanes [get]
 The plane count of the images that have been used for generating this classifier. Image on which this classifier is to be used will need to have the same plane count.
 
Rect FeatureWindowExtent [get]
 The feature window extent that has been used during classifier training.
 
Size2D RetinaSize [get]
 Size of the "Retina" in paxels. The retina is the set of paxels onto which the input image is projected using the preprocessing code prior to application/training of the classifier.
 
Point2Dd Correction [get]
 Correction factors in X and Y direction required to rescale the input images for projection onto the retina.
 
string Preprocessing [get]
 Preprocessing code with which this object was generated.
 
- Properties inherited from PolimagoRefCountedObject
IntPtr Handle [get]
 Native Manto classifier handle. More...
 
bool IsDisposed [get]
 Tests if the native handle has already been disposed.
 
- Properties inherited from INativeHandle
IntPtr Handle [get]
 The native handle of the object.
 
bool IsDisposed [get]
 Possibility to check whether the object has already been disposed of.
 

Additional Inherited Members

- Static Public Member Functions inherited from TestResultBase
static TestResultBase FromFile (string filename)
 Unlike classifiers, test results are not different enough to distinguish them by different file extensions. This static method tries both possibilities and returns the loaded test result. More...
 
- Protected Member Functions inherited from PolimagoRefCountedObject
virtual void Dispose (bool disposing)
 IDispose helper function. More...
 
- Events inherited from PolimagoRefCountedObject
NativeHandleEventDelegate ObjectDisposing
 Raised when this object is about to be disposed via the IDisposable.Dispose method.
More...
 
- Events inherited from INativeHandle
NativeHandleEventDelegate ObjectDisposing
 Raised when this object is about to be disposed via the IDisposable.Dispose method.
More...
 

Detailed Description

Classification test result object.

Constructor & Destructor Documentation

◆ ClassificationTestResult()

ClassificationTestResult ( string  fileName)

Load a test result from disk.

Parameters
fileNameFile from which to load the test results.
Exceptions
InvalidCastExceptionif the test result stored in the file referred to by fileName is not a ClassificationTestResult.