Exemplo n.º 1
0
    def __init__( self, **overrides ):
        PyPLearnObject.__init__( self, **overrides )
        self._name = None
        if self.expkey is None:
            self.expkey = ExpKey( os.path.join( self.path, self._metainfos_fname ) )

        # Update abspath        
        self.abspath = os.path.abspath( self.path )
Exemplo n.º 2
0
    def __init__(self, **overrides):
        PyPLearnObject.__init__(self, **overrides)
        self._name = None
        if self.expkey is None:
            self.expkey = ExpKey(os.path.join(self.path,
                                              self._metainfos_fname))

        # Update abspath
        self.abspath = os.path.abspath(self.path)
Exemplo n.º 3
0
    def __init__( self, oracles=None,
                  _predicate=inexistence_predicate, **overrides ):
        PyPLearnObject.__init__( self, **overrides )
        self._predicate = _predicate

        # Append current path to PYTHONPATH
        if self.expdir_root is None:
            self.expdir_root = os.getcwd()
        self.__check_constant_args()

        # If oracles were already provided, the ctor can lauch the tasks...
        if oracles:                    
            self.start( *oracles )
Exemplo n.º 4
0
    def __init__(self, main_object, **overrides):
        PyPLearnObject.__init__(self, **overrides)

        self.expdir        = plargs.expdir
        self.plearn_script = str( main_object )
        self.metainfos     = self.getMetainfos()
Exemplo n.º 5
0
 def __init__( self, targets, options ):
     PyPLearnObject.__init__( self )
     self.targets = targets
     self.options = options
Exemplo n.º 6
0
 def __init__(self, targets, options):
     PyPLearnObject.__init__(self)
     self.targets = targets
     self.options = options