![]() |
SG++-Doxygen-Documentation
|
Implement mechanisms to create customized learning system. More...
Public Member Functions | |
__init__ (self) | |
andGetResult (self) | |
buildInterpolant (self) | |
getCheckpointController (self) | |
getLearner (self) | |
withCheckpointController (self, controller) | |
Protected Attributes | |
_checkpointController | |
_gridDescriptor | |
_learner | |
_specificationDescriptor | |
_stopPolicyDescriptor | |
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:
python.uq.learner.builder.LearnerBuilder.LearnerBuilder.__init__ | ( | self | ) |
Constructor
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, and python.uq.learner.builder.SimulationLearnerBuilder.SimulationLearnerBuilder._learner.
python.uq.learner.builder.LearnerBuilder.LearnerBuilder.buildInterpolant | ( | self | ) |
python.uq.learner.builder.LearnerBuilder.LearnerBuilder.getCheckpointController | ( | self | ) |
Returns the checkpoint controller
References python.uq.learner.builder.LearnerBuilder.LearnerBuilder._checkpointController.
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, and python.uq.learner.builder.SimulationLearnerBuilder.SimulationLearnerBuilder._learner.
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, python.uq.learner.builder.LearnerBuilder.LearnerBuilder._learner, and python.uq.learner.builder.SimulationLearnerBuilder.SimulationLearnerBuilder._learner.
|
protected |
|
protected |
|
protected |
Referenced by python.uq.learner.builder.LearnerBuilder.LearnerBuilder.andGetResult(), python.uq.learner.builder.LearnerBuilder.LearnerBuilder.buildInterpolant(), python.uq.learner.builder.LearnerBuilder.LearnerBuilder.getLearner(), python.uq.learner.builder.LearnerBuilder.LearnerBuilder.withCheckpointController(), and python.uq.learner.builder.SimulationLearnerBuilder.SimulationLearnerBuilder.withTestingDataFromUQSettingFile().
|
protected |
|
protected |