icub-client
Functions | Variables
SAM.SAM_Core.SAMTesting Namespace Reference

Functions

def deep_getsizeof (o, ids)
 Method to calculate the size of an object o in bytes. More...
 
def calibrateModelRecall (thisModel)
 Logic to initialise calibration of model recall in order to recognize known from unknown instances. More...
 
def calibrateSingleModelRecall (thisModel)
 Perform calibration for single model implementations. More...
 
def calibrateMultipleModelRecall (thisModel)
 Perform calibration for multiple model implementations. More...
 
def formatDataFunc (Ydata)
 Utility function to format data for testing. More...
 
def singleRecall (thisModel, testInstance, verbose, visualiseInfo=None, optimise=100)
 Method that performs classification for single model implementations. More...
 
def multipleRecall_noCalib (thisModel, testInstance, verbose, visualiseInfo=None, optimise=True)
 Method that performs classification for uncalibrated multiple model implementations. More...
 
def multipleRecall (thisModel, testInstance, verbose, visualiseInfo=None, optimise=100)
 Method that performs classification for calibrated multiple model implementations. More...
 
def wait_watching_stdout (ar, dt=1, truncate=1000)
 Monitoring function that logs to stdout the logging output of multiple threads. More...
 
def testSegment (thisModel, Ysample, verbose, visualiseInfo=None, optimise=100)
 Utility function to test a sample. More...
 
def segmentTesting (thisModel, Ysample, Lnum, verbose, label, serialMode=False, optimise=100, calibrate=False)
 Method to test multiple samples at a time. More...
 
def testSegments (thisModel, Ysample, Lnum, verbose, label, serialMode=False)
 Function to test segments and return a confusion matrix. More...
 
def calculateVarianceThreshold (segIntersections, mk, muk, vk, vuk)
 Method to decide on the approach to be used for setting variance thresholds and method of thresholding. More...
 
def calculateData (textLabels, confMatrix, numItems=None)
 Calculate the normalised confusion matrix. More...
 
def combineClassifications (thisModel, labels, likelihoods)
 Combine multiple classifications into a single classification. More...
 

Variables

 threshold
 
 nan
 
 precision
 

Variable Documentation

◆ nan

SAM.SAM_Core.SAMTesting.nan

Definition at line 32 of file SAMTesting.py.

◆ precision

SAM.SAM_Core.SAMTesting.precision

Definition at line 32 of file SAMTesting.py.

◆ threshold

SAM.SAM_Core.SAMTesting.threshold

Definition at line 32 of file SAMTesting.py.