AUREA.heuristic.Adaptive
index
/home/earls3/Price/AUREA/build/lib.linux-x86_64-2.6/AUREA/heuristic/Adaptive.py

Copyright (C) 2011  N.D. Price Lab
 
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.
 
You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

 
Modules
       
os
time

 
Classes
       
Adaptive
exceptions.Exception(exceptions.BaseException)
AdaptiveTimeoutException

 
class Adaptive
    A class to adaptively choosing a model.
Takes a configured LearnerQueue
 
  Methods defined here:
__init__(self, learnerQueue, app_status_bar=None, print_status=False)
learnerQueue is an AUREA.heuristic.LearnerQueue.LearnerQueue object
that has had its learners defined.
app_status_bar is an AUREA.GUI.App.StatusBar object.  If not in
    GUI then just leave it as None. 
print_status is a boolean, if True then messages will be printed to stdout
crossValidate(self, target_acc, maxtime, k=10)
performs kfold crossvalidation on the adaptive algorithm 
returns the Matthews correlation coefficient
getHistory(self)
Returns a list of tuples
(accuracy, learner settings string)
getLearner(self, target_acc, maxTime)
target_acc - float from (0,1] that says to stop when apparent accuracy of a model reaches that accuracy
maxTime - maximum time in seconds to search model space
Returns a tuple containing (achieved accuracy (float), settings(dict), learner (a learner object)) the best achieved accuracy for the given parameters
getSettingString(self, settings)
Returns a human readable version of the settings dictionary

 
class AdaptiveTimeoutException(exceptions.Exception)
    
Method resolution order:
AdaptiveTimeoutException
exceptions.Exception
exceptions.BaseException
__builtin__.object

Methods defined here:
__init__(self, msg)

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)
__unicode__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message