SG++
python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor Class Reference

Folding Descriptor helps to implement fluid interface patter on python it encapsulates functionality concerning the usage for N-fold cross-validation. More...

Public Member Functions

def __getattr__ (self, attr)
 Overrides built-in method if method called is not a object method of this Descriptor, most probably it's a method of LearnerBuilder so it tries to call the method from our builder. More...
 
def __init__ (self, builder, type)
 Constructor. More...
 
def withLevel (self, level)
 Defines the folding level. More...
 
def withSeed (self, seed)
 Defines the seed for random folding policy. More...
 

Static Public Attributes

int FILES = 400
 Stratified folding policy. More...
 
int RANDOM = 200
 Sequential folding policy. More...
 
int SEQUENTIAL = 100
 
int STRATIFIED = 300
 Random folding policy. More...
 

Detailed Description

Folding Descriptor helps to implement fluid interface patter on python it encapsulates functionality concerning the usage for N-fold cross-validation.

Constructor & Destructor Documentation

def python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.__init__ (   self,
  builder,
  type 
)

Constructor.

Parameters
builderLearnerBuilder which creates this Descriptor
typeType of folding policy that should be build

References python.learner.LearnerBuilder.LearnerBuilder.GridDescriptor.__builder, python.learner.LearnerBuilder.LearnerBuilder.StopPolicyDescriptor.__builder, python.learner.LearnerBuilder.LearnerBuilder.SpecificationDescriptor.__builder, python.learner.LearnerBuilder.LearnerBuilder.CGSolverDescriptor.__builder, python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.__builder, and python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.__type.

Member Function Documentation

def python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.__getattr__ (   self,
  attr 
)

Overrides built-in method if method called is not a object method of this Descriptor, most probably it's a method of LearnerBuilder so it tries to call the method from our builder.

Parameters
attrString for method name
Returns
: Method calling in LearnerBuilder

References python.learner.LearnerBuilder.LearnerBuilder.GridDescriptor.__builder, python.learner.LearnerBuilder.LearnerBuilder.StopPolicyDescriptor.__builder, python.learner.LearnerBuilder.LearnerBuilder.SpecificationDescriptor.__builder, python.learner.LearnerBuilder.LearnerBuilder.CGSolverDescriptor.__builder, python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.__builder, python.learner.LearnerBuilder.LearnerBuilder.GridDescriptor.__level, python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.__level, python.learner.LearnerBuilder.LearnerBuilder.StopPolicyDescriptor.__policy, python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.__policy, python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.__seed, python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.__type, python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.FILES, python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.RANDOM, python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.SEQUENTIAL, and python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.STRATIFIED.

def python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.withLevel (   self,
  level 
)

Defines the folding level.

Parameters
levelinteger folding level
Returns
: FoldingDescriptor itself

References python.learner.LearnerBuilder.LearnerBuilder.GridDescriptor.__level, and python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.__level.

def python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.withSeed (   self,
  seed 
)

Defines the seed for random folding policy.

Parameters
seedinteger seed
Returns
: FoldingDescriptor itself

References python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.__seed.

Member Data Documentation

int python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.FILES = 400
static
int python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.RANDOM = 200
static
int python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.SEQUENTIAL = 100
static
int python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.STRATIFIED = 300
static

The documentation for this class was generated from the following file: