SG++-Doxygen-Documentation
|
Implement mechanisms to create customized learning system. More...
Public Member Functions | |
def | __init__ (self) |
def | andGetResult (self) |
def | buildInterpolant (self) |
def | getCheckpointController (self) |
def | getLearner (self) |
def | withCheckpointController (self, controller) |
Implement mechanisms to create customized learning system.
To create a learning system first define if it should be for classification
or regression
LearnerBuilder is implementing Fluent Interface design pattern it means it operates as an automata, switching in some state where you can set all parameters associated with some category. For example to define the grid parameters you switch the builder into GridDescriptor set with
and then defines corresponding parameters:
Builder can automatically switches to the next state
After all parameters are set you can return the constructed learning system with
The complete construction could look like following:
def python.uq.learner.builder.LearnerBuilder.LearnerBuilder.__init__ | ( | self | ) |
Constructor
References python.uq.learner.builder.LearnerBuilder.LearnerBuilder._checkpointController, python.uq.learner.builder.LearnerBuilder.LearnerBuilder._gridDescriptor, python.uq.learner.builder.LearnerBuilder.LearnerBuilder._learner, python.uq.learner.builder.LearnerBuilder.LearnerBuilder._specificationDescriptor, and python.uq.learner.builder.LearnerBuilder.LearnerBuilder._stopPolicyDescriptor.
def python.uq.learner.builder.LearnerBuilder.LearnerBuilder.andGetResult | ( | self | ) |
Returns the builded learner (regressor or interpolant), should be called in the and of construction
References python.uq.learner.builder.LearnerBuilder.LearnerBuilder._learner.
def python.uq.learner.builder.LearnerBuilder.LearnerBuilder.buildInterpolant | ( | self | ) |
References python.uq.learner.builder.LearnerBuilder.LearnerBuilder._learner, and python.uq.learner.builder.LearnerBuilder.LearnerBuilder._specificationDescriptor.
def python.uq.learner.builder.LearnerBuilder.LearnerBuilder.getCheckpointController | ( | self | ) |
Returns the checkpoint controller
References python.uq.learner.builder.LearnerBuilder.LearnerBuilder._checkpointController.
def python.uq.learner.builder.LearnerBuilder.LearnerBuilder.getLearner | ( | self | ) |
Returns the object of learner subclass, that is currently beeing constructed
References python.uq.learner.builder.LearnerBuilder.LearnerBuilder._learner.
def python.uq.learner.builder.LearnerBuilder.LearnerBuilder.withCheckpointController | ( | self, | |
controller | |||
) |
Attaches checkpoint controller to the learner @param controller: Checkpoint controller which implements LearnerEventController
References python.uq.learner.builder.LearnerBuilder.LearnerBuilder._checkpointController, and python.uq.learner.builder.LearnerBuilder.LearnerBuilder._learner.