Exemple #1
0
    def __init__(self):
        """
            Initialisation for SAMDriver.
        """

        self.SAMObject = SAMCore.LFM()

        self.Y = None
        self.L = None
        self.X = None
        self.Ytest = None
        self.Ltest = None
        self.Ytestn = None
        self.Ltestn = None
        self.Ymean = None
        self.Ystd = None
        self.Yn = None
        self.Ln = None
        self.segTrainConf = None
        self.segTrainPerc = None
        self.segTestConf = None
        self.segTestPerc = None
        self.data_labels = None
        self.paramsDict = dict()
        self.verbose = False
        self.model_mode = False
        self.Quser = None
        self.listOfModels = []
        self.model_type = None
        self.modelLabel = None
        self.textLabels = None
        self.participantList = None
        self.varianceThreshold = None
        self.fname = None
        self.optimiseRecall = True
        self.modelLoaded = False
        self.parallelOperation = False
        self.calibrated = False
        self.rawTextData = None
        self.rawData = None

        self.Yall = None
        self.Lall = None
        self.YtestAll = None
        self.LtestAll = None

        self.classifiers = None
        self.classif_thresh = None

        self.model_num_inducing = 0
        self.model_num_iterations = 0
        self.model_init_iterations = 0

        self.additionalParametersList = []
Exemple #2
0
    def __init__(self,
                 isYarpRunning=isYarpRunningGlobal,
                 imgH=200,
                 imgW=200,
                 imgHNew=200,
                 imgWNew=200,
                 inputImagePort="/visionDriver/image:o"):
        if not isYarpRunningGlobal and isYarpRunning:
            isYarpRunning = False
            print 'Warning! yarp was not found in the system.'
        self.isYarpRunning = isYarpRunning
        self.inputImagePort = inputImagePort

        self.SAMObject = SAMCore.LFM()
        self.imgHeight = imgH
        self.imgWidth = imgW
        self.imgHeightNew = imgHNew
        self.imgWidthNew = imgWNew
        self.image_suffix = ".ppm"

        self.Y = None
        self.L = None
        self.X = None
        self.Ytest = None
        self.Ltest = None
        self.Ytestn = None
        self.Ltestn = None
        self.Ymean = None
        self.Ystd = None
        self.Yn = None
        self.Ln = None
        self.data_labels = None
        self.participant_index = None

        self.model_num_inducing = 0
        self.model_num_iterations = 0
        self.model_init_iterations = 0

        if (self.isYarpRunning == True):
            print 'Initialising Yarp...'
            yarp.Network.init()
            self.createPorts()
            self.openPorts()
            self.createImageArrays()
Exemple #3
0
    def __init__(self):
        self.SAMObject = SAMCore.LFM()

        self.Y = None
        self.L = None
        self.X = None
        self.Ytest = None
        self.Ltest = None
        self.Ytestn = None
        self.Ltestn = None
        self.Ymean = None
        self.Ystd = None
        self.Yn = None
        self.Ln = None
        self.segTrainConf = None
        self.segTrainPerc = None
        self.segTestConf = None
        self.segTestPerc = None
        self.data_labels = None
        self.paramsDict = dict()
        self.verbose = False
        self.model_mode = False
        self.Quser = None
        self.listOfModels = []
        self.model_type = None
        self.modelLabel = None
        self.participantList = None
        self.fname = None

        self.Yall = None
        self.Lall = None
        self.YtestAll = None
        self.LtestAll = None

        self.classifiers = None
        self.classif_thresh = None

        self.model_num_inducing = 0
        self.model_num_iterations = 0
        self.model_init_iterations = 0

        self.additionalParametersList = []
Exemple #4
0
    def __init__(self, isYarpRunning=False):
        if not isYarpRunningGlobal and isYarpRunning:
            isYarpRunning = False
            print 'Warning! yarp was not found in the system.'

        self.isYarpRunning = isYarpRunning
        self.SAMObject = SAMCore.LFM()

        self.Y = None
        self.L = None
        self.X = None
        self.Ytest = None
        self.Ltest = None
        self.Ytestn = None
        self.Ltestn = None
        self.Ymean = None
        self.Ystd = None
        self.Yn = None
        self.Ln = None
        self.data_labels = None

        self.model_num_inducing = 0
        self.model_num_iterations = 0
        self.model_init_iterations = 0