コード例 #1
0
ファイル: Controller.py プロジェクト: JohnCEarls/AUREA
 def crossValidateAdaptive(self, target_acc, maxtime):
     self._adaptiveSetup()
     #create adaptive object
     adaptive = Adaptive(self.learnerqueue, app_status_bar = self.queue)
     #using accuracy, because we are reporting accuracy - acc is not used to choose learner
     adaptive.crossValidate(target_acc, maxtime)
     self.adaptive_tt = adaptive.truth_table[:]
     self.queue.put(('statusbarset',"Adaptive had an Accuracy of " + str(self._acc(self.adaptive_tt))[:4]))
コード例 #2
0
ファイル: testLearners.py プロジェクト: JohnCEarls/AUREA
def testAdaptive(dataPackage, time, target_acc, kfold):
    from copy import deepcopy
    from AUREA.adaptive.Adaptive import Adaptive
    #partition the samples
    lq = adaptiveGetLearnerQueue(dataPackage)
    adaptive = Adaptive(lq)
    return adaptive.crossValidate(target_acc,time, kfold)