SG++-Doxygen-Documentation
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...

Inheritance diagram for python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor:

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
 
int RANDOM = 200
 
int SEQUENTIAL = 100
 
int STRATIFIED = 300
 

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

◆ __init__()

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

◆ __getattr__()

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.getLearner(), python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.RANDOM, python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.SEQUENTIAL, and python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.STRATIFIED.

◆ withLevel()

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.

◆ withSeed()

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

◆ FILES

int python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.FILES = 400
static

◆ RANDOM

int python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.RANDOM = 200
static

◆ SEQUENTIAL

int python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.SEQUENTIAL = 100
static

◆ STRATIFIED

int python.learner.LearnerBuilder.LearnerBuilder.FoldingDescriptor.STRATIFIED = 300
static

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