SG++-Doxygen-Documentation
|
The class implements the routines common for classifier and regressor. More...
Public Member Functions | |
def | __init__ (self) |
Constructor. More... | |
def | applyData (self, points) |
Calculate the value of the function for given points. More... | |
def | attachEventController (self, observer) |
Add observer to the list. More... | |
def | createMemento (self) |
Creates a new memento to hold the current state. More... | |
def | detachEventController (self, observer) |
Remove observer from the list. More... | |
def | doLearningIteration (self, set) |
Perform one learning step. More... | |
def | evalError (self, dataContainer, alpha) |
Evaluate accuracy this method is not implemented! More... | |
def | fromJson (self, jsonObject) |
Restores the attributes of a subclass of Learner from the json object with attributes. More... | |
def | getCurrentIterationNumber (self) |
Returns the number of current iteration. More... | |
def | learnData (self) |
Simple data learning. More... | |
def | learnDataWithFolding (self) |
Learn data with cross-fold validation. More... | |
def | learnDataWithTest (self, dataset=None) |
Learn data from training data set and use validation data set to prevent overfitting. More... | |
def | notifyEventControllers (self, event) |
Notify all observers about the new event. More... | |
def | refineGrid (self) |
Refines Grid the function is not implemented here. More... | |
def | setCurrentIterationNumber (self, value) |
Sets the number of current iteration. More... | |
def | setDataContainer (self, container) |
Setter for data container. More... | |
def | setFoldingPolicy (self, policy) |
Setter for folding policy. More... | |
def | setGrid (self, grid) |
Setter for grid. More... | |
def | setLearnedKnowledge (self, knowledge) |
Setter for learned knowledge. More... | |
def | setMemento (self, memento) |
Restores the state which is saved in the given memento. More... | |
def | setSolver (self, solver) |
Setter for linear solver. More... | |
def | setSpecification (self, specification) |
Setter for training specification. More... | |
def | setStopPolicy (self, policy) |
Setter for training stop policy. More... | |
def | setVerbosity (self, verb) |
Sets the verbosity level in the solver (default: False) More... | |
def | toString (self) |
Returns a string that represents the object. More... | |
def | updateResults (self, alpha, trainSubset, testSubset=None) |
Update different statistics about training progress this method is not implemented! More... | |
Static Public Attributes | |
alpha = None | |
DataVector with current alpha vector. More... | |
dataContainer = None | |
DataContainer object with training (and maybe test) data. More... | |
eventControllers = None | |
list of object listening to the learning events More... | |
foldingPolicy = None | |
Implementation of folding policy if training with folding is used. More... | |
grid = None | |
Grid of the Learner. More... | |
iteration = None | |
Number of current iterations. More... | |
knowledge = None | |
LearnedKnowledge where alpha is stored. More... | |
linearSystem = None | |
DMSystemMatrix object associated with this Learner. More... | |
numberPoints = None | |
List of numbers of point on grid for different refinement iterations. More... | |
solver = None | |
LinearSolver object associated with this Learner. More... | |
specification = None | |
TrainingSpecification object associated with this Learner. More... | |
stopPolicy = None | |
TrainingStopPolicy object associated with this Learner. More... | |
testAccuracy = None | |
list of test accuracy values measured in refinement iteration More... | |
testingOverall = None | |
List of average training accuracy data over all refinement iterations. More... | |
trainAccuracy = None | |
list of train accuracy values measured in refinement iteration More... | |
trainingOverall = None | |
List of average training accuracy data over all refinement iterations. More... | |
useVerbose = None | |
Verbosity level in the solver iterations. More... | |
The class implements the routines common for classifier and regressor.
However, since some methods are defined and note implemented, this class is abstract and cannot be instantiated.
The class also implements the subject of the observer design pattern.
To customize the processing of progress information in SGPP the observer pattern is used. The classes that want to be informed about events should implement LearnerEvenController and subscribe by the instance of Learner subclass with attachEventController()
. After some event of LearnerEvents arise, the Learner subclass object calls method handleLearningEvent()
by all subscribers. As subscribers get a reference to the Learner object, they can retrieve the attributes of the learner and process the information.
Roles
Observer can also want to retrieve the process information from LinearSolver. See documentation ofLinearSolver for more information.
def python.learner.Learner.Learner.__init__ | ( | self | ) |
Constructor.
References python.learner.Learner.Learner.eventControllers, python.learner.Learner.Learner.iteration, python.learner.Learner.Learner.numberPoints, python.learner.Learner.Learner.testAccuracy, python.learner.Learner.Learner.testingOverall, python.learner.Learner.Learner.trainAccuracy, python.learner.Learner.Learner.trainingOverall, and python.learner.Learner.Learner.useVerbose.
def python.learner.Learner.Learner.applyData | ( | self, | |
points | |||
) |
Calculate the value of the function for given points.
points | DataVector set of points |
References sgpp::op_factory.createOperationEval(), sgpp::base::OperationMultipleEval.grid, sgpp::base::OperationFirstMomentBspline.grid, sgpp::base::OperationFirstMomentPolyClenshawCurtis.grid, sgpp::base::OperationFirstMomentPoly.grid, sgpp::base::OperationSecondMomentPolyBoundary.grid, sgpp::base::OperationSecondMomentPolyClenshawCurtis.grid, sgpp::base::OperationFirstMomentModPolyClenshawCurtis.grid, sgpp::base::OperationFirstMomentPolyBoundary.grid, sgpp::base::OperationFirstMomentBsplineBoundary.grid, sgpp::base::OperationFirstMomentModBspline.grid, sgpp::base::OperationSecondMomentPoly.grid, sgpp::base::OperationSecondMomentBspline.grid, sgpp::base::OperationSecondMomentBsplineBoundary.grid, sgpp::base::OperationSecondMomentModBspline.grid, sgpp::base::OperationFirstMomentModPoly.grid, sgpp::base::OperationSecondMomentModPoly.grid, sgpp::base::OperationSecondMomentModPolyClenshawCurtis.grid, sgpp::base::OperationSecondMomentPolyClenshawCurtisBoundary.grid, sgpp::base::OperationFirstMomentPolyClenshawCurtisBoundary.grid, sgpp::base::OperationSecondMomentModBsplineClenshawCurtis.grid, sgpp::base::OperationFirstMomentBsplineClenshawCurtis.grid, sgpp::base::OperationFirstMomentModBsplineClenshawCurtis.grid, sgpp::base::OperationSecondMomentBsplineClenshawCurtis.grid, sgpp::base::OperationHierarchisationFundamentalSpline.grid, sgpp::base::OperationHierarchisationModFundamentalSpline.grid, sgpp::base::OperationArbitraryBoundaryHierarchisation.grid, python.learner.Learner.Learner.grid, sgpp::base::HierarchisationModFundamentalSpline.grid, sgpp::base::DehierarchisationFundamentalSpline.grid, sgpp::base::HierarchisationFundamentalSpline.grid, sgpp::base::DehierarchisationModFundamentalSpline.grid, sgpp::base::OperationQuadratureMC.grid, python.controller.CheckpointController.CheckpointController.grid, sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid.grid, sgpp::base::ImpurityRefinementIndicator.grid, sgpp::base::ForwardSelectorRefinementIndicator.grid, python.learner.Learner.Learner.knowledge, python.controller.CheckpointController.CheckpointController.knowledge, python.learner.Learner.Learner.notifyEventControllers(), and python.learner.Learner.Learner.specification.
def python.learner.Learner.Learner.attachEventController | ( | self, | |
observer | |||
) |
Add observer to the list.
observer | LearnerEventController object |
References python.learner.Learner.Learner.eventControllers.
def python.learner.Learner.Learner.createMemento | ( | self | ) |
Creates a new memento to hold the current state.
References python.utils.json.read(), python.controller.LearnerEventController.LearnerEventController.toString(), python.controller.SolverEventController.SolverEventController.toString(), python.controller.InfoToFile.InfoToFile.toString(), python.learner.formatter.LearnerFormatter.LearnerFormatter.toString(), python.learner.formatter.GridFormatter.GridFormatter.toString(), python.learner.formatter.LearnedKnowledgeFormatter.LearnedKnowledgeFormatter.toString(), python.data.DataSpecification.DataSpecification.toString(), sgpp::base::GridDataBase.toString(), sgpp::base::HashGridStorage.toString(), sgpp::base::HashGridIterator.toString(), sgpp::base::HashGridPoint.toString(), sgpp::base::BoundingBox.toString(), sgpp::base::DataVector.toString(), python.learner.Learner.Learner.toString(), python.data.DataContainer.DataContainer.toString(), sgpp::base::DataVectorSP.toString(), sgpp::base::DataMatrixSP.toString(), and sgpp::base::DataMatrix.toString().
Referenced by python.uq.analysis.asgc.ASGCKnowledge.ASGCKnowledge.writeToFile(), and python.uq.uq_setting.UQSetting.UQSetting.writeToFile().
def python.learner.Learner.Learner.detachEventController | ( | self, | |
observer | |||
) |
Remove observer from the list.
observer | LearnerEventController object |
References python.learner.Learner.Learner.eventControllers.
def python.learner.Learner.Learner.doLearningIteration | ( | self, | |
set | |||
) |
Perform one learning step.
set | DataContainer training data set |
References sgpp::base::SurplusRefinementFunctor.alpha, sgpp::base::SurplusCoarseningFunctor.alpha, sgpp::base::SurplusVolumeCoarseningFunctor.alpha, sgpp::base::SurplusVolumeRefinementFunctor.alpha, python.learner.Learner.Learner.alpha, sgpp::op_factory.createOperationIdentity(), sgpp::op_factory.createOperationLaplace(), sgpp::base::OperationMultipleEval.grid, sgpp::base::OperationFirstMomentPoly.grid, sgpp::base::OperationFirstMomentPolyClenshawCurtis.grid, sgpp::base::OperationSecondMomentPolyBoundary.grid, sgpp::base::OperationSecondMomentPolyClenshawCurtis.grid, sgpp::base::OperationFirstMomentModPolyClenshawCurtis.grid, sgpp::base::OperationFirstMomentPolyBoundary.grid, sgpp::base::OperationFirstMomentBspline.grid, sgpp::base::OperationFirstMomentBsplineBoundary.grid, sgpp::base::OperationFirstMomentModBspline.grid, sgpp::base::OperationSecondMomentPoly.grid, sgpp::base::OperationSecondMomentBspline.grid, sgpp::base::OperationSecondMomentBsplineBoundary.grid, sgpp::base::OperationSecondMomentModBspline.grid, sgpp::base::OperationFirstMomentModPoly.grid, sgpp::base::OperationSecondMomentModPoly.grid, sgpp::base::OperationSecondMomentModPolyClenshawCurtis.grid, sgpp::base::OperationSecondMomentPolyClenshawCurtisBoundary.grid, sgpp::base::OperationFirstMomentPolyClenshawCurtisBoundary.grid, sgpp::base::OperationSecondMomentModBsplineClenshawCurtis.grid, sgpp::base::OperationFirstMomentBsplineClenshawCurtis.grid, sgpp::base::OperationFirstMomentModBsplineClenshawCurtis.grid, sgpp::base::OperationSecondMomentBsplineClenshawCurtis.grid, sgpp::base::OperationHierarchisationFundamentalSpline.grid, sgpp::base::OperationHierarchisationModFundamentalSpline.grid, sgpp::base::OperationArbitraryBoundaryHierarchisation.grid, python.learner.Learner.Learner.grid, sgpp::base::DehierarchisationFundamentalSpline.grid, sgpp::base::HierarchisationModFundamentalSpline.grid, sgpp::base::HierarchisationFundamentalSpline.grid, sgpp::base::DehierarchisationModFundamentalSpline.grid, sgpp::base::OperationQuadratureMC.grid, python.controller.CheckpointController.CheckpointController.grid, sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid.grid, sgpp::base::ImpurityRefinementIndicator.grid, sgpp::base::ForwardSelectorRefinementIndicator.grid, python.learner.Learner.Learner.linearSystem, python.learner.Learner.Learner.solver, python.learner.Learner.Learner.specification, and python.learner.Learner.Learner.useVerbose.
Referenced by python.uq.learner.Regressor.Regressor.learnData(), python.learner.Learner.Learner.learnData(), python.uq.learner.Interpolant.Interpolant.learnDataWithTest(), and python.learner.Learner.Learner.learnDataWithTest().
def python.learner.Learner.Learner.evalError | ( | self, | |
dataContainer, | |||
alpha | |||
) |
Evaluate accuracy this method is not implemented!
dataContainer | DataContainer data set |
alpha | DataVector alpha-vector |
Referenced by python.learner.Regressor.Regressor.updateResults(), python.uq.learner.Interpolant.Interpolant.updateResults(), and python.uq.learner.Regressor.Regressor.updateResults().
def python.learner.Learner.Learner.fromJson | ( | self, | |
jsonObject | |||
) |
Restores the attributes of a subclass of Learner from the json object with attributes.
jsonObject | A json object. |
References python.learner.Learner.Learner.dataContainer, python.learner.Learner.Learner.iteration, python.learner.Learner.Learner.numberPoints, python.learner.Learner.Learner.solver, python.learner.Learner.Learner.specification, python.learner.Learner.Learner.stopPolicy, python.learner.Learner.Learner.testAccuracy, python.learner.Learner.Learner.trainAccuracy, and python.learner.Learner.Learner.trainingOverall.
Referenced by python.uq.sampler.asgc.ASGCSampler.ASGCSampler.setMemento(), python.uq.analysis.asgc.ASGCKnowledge.ASGCKnowledge.setMemento(), python.uq.learner.Learner.Learner.setMemento(), python.learner.Learner.Learner.setMemento(), and python.uq.uq_setting.UQSetting.UQSetting.setMemento().
def python.learner.Learner.Learner.getCurrentIterationNumber | ( | self | ) |
Returns the number of current iteration.
References python.learner.Learner.Learner.iteration.
def python.learner.Learner.Learner.learnData | ( | self | ) |
Simple data learning.
References sgpp::base::SurplusRefinementFunctor.alpha, sgpp::base::SurplusCoarseningFunctor.alpha, sgpp::base::SurplusVolumeCoarseningFunctor.alpha, sgpp::base::SurplusVolumeRefinementFunctor.alpha, python.learner.Learner.Learner.alpha, sgpp::op_factory.createOperationMultipleEval(), python.learner.Learner.Learner.dataContainer, python.learner.Learner.Learner.doLearningIteration(), sgpp::base::OperationMultipleEval.grid, sgpp::base::OperationFirstMomentModPoly.grid, sgpp::base::OperationFirstMomentModPolyClenshawCurtis.grid, sgpp::base::OperationSecondMomentPoly.grid, sgpp::base::OperationSecondMomentPolyBoundary.grid, sgpp::base::OperationSecondMomentPolyClenshawCurtis.grid, sgpp::base::OperationFirstMomentPoly.grid, sgpp::base::OperationFirstMomentPolyBoundary.grid, sgpp::base::OperationFirstMomentPolyClenshawCurtis.grid, sgpp::base::OperationFirstMomentBspline.grid, sgpp::base::OperationFirstMomentBsplineBoundary.grid, sgpp::base::OperationSecondMomentBspline.grid, sgpp::base::OperationSecondMomentBsplineBoundary.grid, sgpp::base::OperationFirstMomentModBspline.grid, sgpp::base::OperationSecondMomentModBspline.grid, sgpp::base::OperationSecondMomentModPoly.grid, sgpp::base::OperationSecondMomentModPolyClenshawCurtis.grid, sgpp::base::OperationSecondMomentPolyClenshawCurtisBoundary.grid, sgpp::base::OperationFirstMomentPolyClenshawCurtisBoundary.grid, sgpp::base::OperationFirstMomentBsplineClenshawCurtis.grid, sgpp::base::OperationSecondMomentBsplineClenshawCurtis.grid, sgpp::base::OperationSecondMomentModBsplineClenshawCurtis.grid, sgpp::base::OperationFirstMomentModBsplineClenshawCurtis.grid, sgpp::base::OperationHierarchisationFundamentalSpline.grid, sgpp::base::OperationHierarchisationModFundamentalSpline.grid, sgpp::base::OperationArbitraryBoundaryHierarchisation.grid, python.learner.Learner.Learner.grid, sgpp::base::HierarchisationModFundamentalSpline.grid, sgpp::base::HierarchisationFundamentalSpline.grid, sgpp::base::DehierarchisationFundamentalSpline.grid, sgpp::base::DehierarchisationModFundamentalSpline.grid, sgpp::base::OperationQuadratureMC.grid, python.controller.CheckpointController.CheckpointController.grid, sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid.grid, sgpp::base::ImpurityRefinementIndicator.grid, sgpp::base::ForwardSelectorRefinementIndicator.grid, python.learner.Learner.Learner.iteration, python.learner.Learner.Learner.notifyEventControllers(), python.learner.Classifier.Classifier.refineGrid(), python.learner.Learner.Learner.refineGrid(), python.learner.Learner.Learner.specification, python.learner.Learner.Learner.stopPolicy, python.learner.Classifier.Classifier.updateResults(), and python.learner.Learner.Learner.updateResults().
Referenced by python.uq.manager.ASGCUQManager.ASGCUQManager.runNextSamples().
def python.learner.Learner.Learner.learnDataWithFolding | ( | self | ) |
Learn data with cross-fold validation.
References sgpp::op_factory.createOperationMultipleEval(), python.learner.Learner.Learner.dataContainer, python.learner.Learner.Learner.foldingPolicy, sgpp::base::OperationMultipleEval.grid, sgpp::base::OperationFirstMomentModPoly.grid, sgpp::base::OperationFirstMomentModPolyClenshawCurtis.grid, sgpp::base::OperationSecondMomentPoly.grid, sgpp::base::OperationSecondMomentPolyBoundary.grid, sgpp::base::OperationSecondMomentPolyClenshawCurtis.grid, sgpp::base::OperationFirstMomentPoly.grid, sgpp::base::OperationFirstMomentPolyBoundary.grid, sgpp::base::OperationFirstMomentBspline.grid, sgpp::base::OperationSecondMomentModPolyClenshawCurtis.grid, sgpp::base::OperationFirstMomentPolyClenshawCurtis.grid, sgpp::base::OperationFirstMomentBsplineBoundary.grid, sgpp::base::OperationSecondMomentBspline.grid, sgpp::base::OperationSecondMomentBsplineBoundary.grid, sgpp::base::OperationFirstMomentModBspline.grid, sgpp::base::OperationSecondMomentModBspline.grid, sgpp::base::OperationSecondMomentModPoly.grid, sgpp::base::OperationFirstMomentModBsplineClenshawCurtis.grid, sgpp::base::OperationSecondMomentPolyClenshawCurtisBoundary.grid, sgpp::base::OperationFirstMomentPolyClenshawCurtisBoundary.grid, sgpp::base::OperationFirstMomentBsplineClenshawCurtis.grid, sgpp::base::OperationSecondMomentModBsplineClenshawCurtis.grid, sgpp::base::OperationSecondMomentBsplineClenshawCurtis.grid, sgpp::base::OperationHierarchisationModFundamentalSpline.grid, sgpp::base::OperationHierarchisationFundamentalSpline.grid, sgpp::base::OperationArbitraryBoundaryHierarchisation.grid, python.learner.Learner.Learner.grid, sgpp::base::HierarchisationModFundamentalSpline.grid, sgpp::base::HierarchisationFundamentalSpline.grid, sgpp::base::DehierarchisationFundamentalSpline.grid, sgpp::base::DehierarchisationModFundamentalSpline.grid, sgpp::base::OperationQuadratureMC.grid, python.controller.CheckpointController.CheckpointController.grid, sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid.grid, sgpp::base::ForwardSelectorRefinementIndicator.grid, sgpp::base::ImpurityRefinementIndicator.grid, python.learner.Learner.Learner.learnDataWithTest(), python.learner.Learner.Learner.notifyEventControllers(), and python.learner.Learner.Learner.specification.
def python.learner.Learner.Learner.learnDataWithTest | ( | self, | |
dataset = None |
|||
) |
Learn data from training data set and use validation data set to prevent overfitting.
dataset | DataContainer object with data sets, default value None (initialized data set used) |
References sgpp::base::SurplusRefinementFunctor.alpha, sgpp::base::SurplusCoarseningFunctor.alpha, sgpp::base::SurplusVolumeCoarseningFunctor.alpha, sgpp::base::SurplusVolumeRefinementFunctor.alpha, python.learner.Learner.Learner.alpha, sgpp::op_factory.createOperationMultipleEval(), python.learner.Learner.Learner.dataContainer, python.learner.Learner.Learner.doLearningIteration(), sgpp::base::OperationMultipleEval.grid, sgpp::base::OperationFirstMomentModPoly.grid, sgpp::base::OperationFirstMomentModPolyClenshawCurtis.grid, sgpp::base::OperationSecondMomentPoly.grid, sgpp::base::OperationSecondMomentPolyBoundary.grid, sgpp::base::OperationSecondMomentPolyClenshawCurtis.grid, sgpp::base::OperationFirstMomentPoly.grid, sgpp::base::OperationFirstMomentPolyBoundary.grid, sgpp::base::OperationFirstMomentPolyClenshawCurtis.grid, sgpp::base::OperationFirstMomentBspline.grid, sgpp::base::OperationFirstMomentBsplineBoundary.grid, sgpp::base::OperationSecondMomentBspline.grid, sgpp::base::OperationSecondMomentBsplineBoundary.grid, sgpp::base::OperationFirstMomentModBspline.grid, sgpp::base::OperationSecondMomentModBspline.grid, sgpp::base::OperationSecondMomentModPoly.grid, sgpp::base::OperationSecondMomentModPolyClenshawCurtis.grid, sgpp::base::OperationSecondMomentPolyClenshawCurtisBoundary.grid, sgpp::base::OperationFirstMomentPolyClenshawCurtisBoundary.grid, sgpp::base::OperationFirstMomentBsplineClenshawCurtis.grid, sgpp::base::OperationSecondMomentBsplineClenshawCurtis.grid, sgpp::base::OperationSecondMomentModBsplineClenshawCurtis.grid, sgpp::base::OperationFirstMomentModBsplineClenshawCurtis.grid, sgpp::base::OperationHierarchisationFundamentalSpline.grid, sgpp::base::OperationHierarchisationModFundamentalSpline.grid, sgpp::base::OperationArbitraryBoundaryHierarchisation.grid, python.learner.Learner.Learner.grid, sgpp::base::HierarchisationModFundamentalSpline.grid, sgpp::base::HierarchisationFundamentalSpline.grid, sgpp::base::DehierarchisationFundamentalSpline.grid, sgpp::base::DehierarchisationModFundamentalSpline.grid, sgpp::base::OperationQuadratureMC.grid, python.controller.CheckpointController.CheckpointController.grid, sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid.grid, sgpp::base::ImpurityRefinementIndicator.grid, sgpp::base::ForwardSelectorRefinementIndicator.grid, python.learner.Learner.Learner.iteration, python.learner.Learner.Learner.notifyEventControllers(), python.learner.Classifier.Classifier.refineGrid(), python.learner.Learner.Learner.refineGrid(), python.learner.Learner.Learner.specification, python.learner.Learner.Learner.stopPolicy, python.learner.Classifier.Classifier.updateResults(), and python.learner.Learner.Learner.updateResults().
Referenced by python.uq.manager.ASGCUQManager.ASGCUQManager.learnData(), python.uq.learner.Regressor.Regressor.learnDataWithFolding(), and python.learner.Learner.Learner.learnDataWithFolding().
def python.learner.Learner.Learner.notifyEventControllers | ( | self, | |
event | |||
) |
Notify all observers about the new event.
event | LearnerEvents event |
References python.learner.Learner.Learner.eventControllers.
Referenced by python.learner.Learner.Learner.applyData(), python.uq.learner.Regressor.Regressor.learnData(), python.uq.learner.Interpolant.Interpolant.learnData(), python.learner.Learner.Learner.learnData(), python.uq.learner.Regressor.Regressor.learnDataWithFolding(), python.learner.Learner.Learner.learnDataWithFolding(), python.uq.learner.Regressor.Regressor.learnDataWithTest(), python.uq.learner.Interpolant.Interpolant.learnDataWithTest(), python.learner.Learner.Learner.learnDataWithTest(), python.learner.Classifier.Classifier.refineGrid(), python.learner.Regressor.Regressor.refineGrid(), and python.uq.learner.Regressor.Regressor.refineGrid().
def python.learner.Learner.Learner.refineGrid | ( | self | ) |
Refines Grid the function is not implemented here.
Referenced by python.uq.learner.Regressor.Regressor.learnData(), python.learner.Learner.Learner.learnData(), and python.learner.Learner.Learner.learnDataWithTest().
def python.learner.Learner.Learner.setCurrentIterationNumber | ( | self, | |
value | |||
) |
Sets the number of current iteration.
value | integer new iteration number |
References python.learner.Learner.Learner.iteration.
def python.learner.Learner.Learner.setDataContainer | ( | self, | |
container | |||
) |
Setter for data container.
container | the data container object |
References python.learner.Learner.Learner.dataContainer.
def python.learner.Learner.Learner.setFoldingPolicy | ( | self, | |
policy | |||
) |
Setter for folding policy.
policy | the folding policy object |
References python.learner.Learner.Learner.foldingPolicy.
def python.learner.Learner.Learner.setGrid | ( | self, | |
grid | |||
) |
Setter for grid.
grid | the grid obejct |
References sgpp::base::OperationMultipleEval.grid, sgpp::base::OperationFirstMomentBspline.grid, sgpp::base::OperationFirstMomentPolyBoundary.grid, sgpp::base::OperationFirstMomentPolyClenshawCurtis.grid, sgpp::base::OperationFirstMomentBsplineBoundary.grid, sgpp::base::OperationFirstMomentModBspline.grid, sgpp::base::OperationSecondMomentPolyClenshawCurtis.grid, sgpp::base::OperationSecondMomentPolyBoundary.grid, sgpp::base::OperationSecondMomentPoly.grid, sgpp::base::OperationSecondMomentBspline.grid, sgpp::base::OperationSecondMomentBsplineBoundary.grid, sgpp::base::OperationFirstMomentModPoly.grid, sgpp::base::OperationSecondMomentModBspline.grid, sgpp::base::OperationSecondMomentModPoly.grid, sgpp::base::OperationFirstMomentModPolyClenshawCurtis.grid, sgpp::base::OperationSecondMomentModPolyClenshawCurtis.grid, sgpp::base::OperationFirstMomentPoly.grid, sgpp::base::OperationSecondMomentModBsplineClenshawCurtis.grid, sgpp::base::OperationSecondMomentPolyClenshawCurtisBoundary.grid, sgpp::base::OperationFirstMomentPolyClenshawCurtisBoundary.grid, sgpp::base::OperationFirstMomentBsplineClenshawCurtis.grid, sgpp::base::OperationSecondMomentBsplineClenshawCurtis.grid, sgpp::base::OperationFirstMomentModBsplineClenshawCurtis.grid, sgpp::base::OperationHierarchisationFundamentalSpline.grid, sgpp::base::OperationHierarchisationModFundamentalSpline.grid, sgpp::base::OperationArbitraryBoundaryHierarchisation.grid, python.learner.Learner.Learner.grid, sgpp::base::HierarchisationFundamentalSpline.grid, sgpp::base::HierarchisationModFundamentalSpline.grid, sgpp::base::DehierarchisationFundamentalSpline.grid, sgpp::base::DehierarchisationModFundamentalSpline.grid, sgpp::base::OperationQuadratureMC.grid, python.controller.CheckpointController.CheckpointController.grid, sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid.grid, sgpp::base::ImpurityRefinementIndicator.grid, and sgpp::base::ForwardSelectorRefinementIndicator.grid.
def python.learner.Learner.Learner.setLearnedKnowledge | ( | self, | |
knowledge | |||
) |
Setter for learned knowledge.
knowledge | the learned knowledge object |
References python.learner.Learner.Learner.knowledge, and python.controller.CheckpointController.CheckpointController.knowledge.
def python.learner.Learner.Learner.setMemento | ( | self, | |
memento | |||
) |
Restores the state which is saved in the given memento.
memento | the memento object |
References python.data.DataContainer.DataContainer.fromJson(), and python.learner.Learner.Learner.fromJson().
def python.learner.Learner.Learner.setSolver | ( | self, | |
solver | |||
) |
Setter for linear solver.
solver | the linear solver object |
References python.learner.Learner.Learner.solver.
def python.learner.Learner.Learner.setSpecification | ( | self, | |
specification | |||
) |
Setter for training specification.
specification | the training specification object |
References python.learner.Learner.Learner.specification.
def python.learner.Learner.Learner.setStopPolicy | ( | self, | |
policy | |||
) |
Setter for training stop policy.
policy | the training stop policy object |
References python.learner.Learner.Learner.stopPolicy.
def python.learner.Learner.Learner.setVerbosity | ( | self, | |
verb | |||
) |
Sets the verbosity level in the solver (default: False)
verb | bool if verbose |
References python.learner.Learner.Learner.useVerbose.
def python.learner.Learner.Learner.toString | ( | self | ) |
Returns a string that represents the object.
References python.learner.Learner.Learner.__listOfFloatsToString(), python.learner.Learner.Learner.__SERIALIZABLE_ATTRIBUTES, and create_dataset.type.
Referenced by python.uq.learner.Learner.Learner.createMemento(), and python.learner.Learner.Learner.createMemento().
def python.learner.Learner.Learner.updateResults | ( | self, | |
alpha, | |||
trainSubset, | |||
testSubset = None |
|||
) |
Update different statistics about training progress this method is not implemented!
alpha | DataVector alpha-vector |
trainSubset | DataContainer with training data |
testSubset | DataContainer with validation data, default value: None |
Referenced by python.uq.learner.Regressor.Regressor.learnData(), python.uq.learner.SimulationLearner.SimulationLearner.learnData(), python.learner.Learner.Learner.learnData(), python.uq.learner.SimulationLearner.SimulationLearner.learnDataWithFolding(), python.uq.learner.Interpolant.Interpolant.learnDataWithTest(), python.learner.Learner.Learner.learnDataWithTest(), and python.uq.learner.SimulationLearner.SimulationLearner.learnDataWithTest().
|
static |
DataVector with current alpha vector.
Referenced by python.learner.Learner.Learner.doLearningIteration(), python.uq.learner.Regressor.Regressor.learnData(), python.learner.Learner.Learner.learnData(), python.uq.learner.Interpolant.Interpolant.learnDataWithTest(), python.learner.Learner.Learner.learnDataWithTest(), python.uq.dists.SGDEdist.SGDEdist.pdf(), python.learner.Classifier.Classifier.refineGrid(), and python.uq.dists.SGDEdist.SGDEdist.toJson().
|
static |
DataContainer object with training (and maybe test) data.
Referenced by python.uq.learner.Learner.Learner.fromJson(), python.learner.Learner.Learner.fromJson(), python.uq.learner.Regressor.Regressor.learnData(), python.uq.learner.Interpolant.Interpolant.learnData(), python.uq.learner.SimulationLearner.SimulationLearner.learnData(), python.learner.Learner.Learner.learnData(), python.uq.learner.Regressor.Regressor.learnDataWithFolding(), python.uq.learner.SimulationLearner.SimulationLearner.learnDataWithFolding(), python.learner.Learner.Learner.learnDataWithFolding(), python.uq.manager.ASGCUQManager.ASGCUQManager.learnDataWithoutTest(), python.uq.learner.Regressor.Regressor.learnDataWithTest(), python.uq.learner.Interpolant.Interpolant.learnDataWithTest(), python.learner.Learner.Learner.learnDataWithTest(), python.uq.manager.ASGCUQManager.ASGCUQManager.learnDataWithTest(), python.uq.learner.SimulationLearner.SimulationLearner.learnDataWithTest(), python.uq.manager.ASGCUQManager.ASGCUQManager.recomputeStats(), python.uq.learner.SimulationLearner.SimulationLearner.setDataContainer(), python.uq.learner.Learner.Learner.setDataContainer(), python.learner.Learner.Learner.setDataContainer(), python.uq.manager.ASGCUQManager.ASGCUQManager.updateDataContainer(), and python.uq.learner.Learner.Learner.updateFoldingPolicy().
|
static |
list of object listening to the learning events
Referenced by python.learner.solver.LinearSolver.LinearSolver.__init__(), python.uq.learner.Learner.Learner.__init__(), python.learner.Learner.Learner.__init__(), python.learner.solver.LinearSolver.LinearSolver.attachEventController(), python.uq.learner.Learner.Learner.attachEventController(), python.learner.Learner.Learner.attachEventController(), python.uq.learner.Learner.Learner.copy(), python.learner.solver.LinearSolver.LinearSolver.detachEventController(), python.uq.learner.Learner.Learner.detachEventController(), python.learner.Learner.Learner.detachEventController(), python.learner.solver.LinearSolver.LinearSolver.notifyEventControllers(), python.uq.learner.Learner.Learner.notifyEventControllers(), and python.learner.Learner.Learner.notifyEventControllers().
|
static |
Implementation of folding policy if training with folding is used.
Referenced by python.uq.learner.Learner.Learner.copy(), python.uq.learner.Regressor.Regressor.learnDataWithFolding(), python.learner.Learner.Learner.learnDataWithFolding(), python.uq.learner.Learner.Learner.setFoldingPolicy(), python.learner.Learner.Learner.setFoldingPolicy(), and python.uq.learner.Learner.Learner.updateFoldingPolicy().
|
static |
Grid of the Learner.
Referenced by python.uq.dists.SGDEdist.SGDEdist.__str__(), python.learner.Learner.Learner.applyData(), python.tools.Matrix.ApplyMatrix(), python.uq.dists.SGDEdist.SGDEdist.cdf(), python.uq.learner.Interpolant.Interpolant.doLearningIteration(), python.learner.Learner.Learner.doLearningIteration(), python.learner.Classifier.Classifier.evalError(), python.uq.learner.Interpolant.Interpolant.evalError(), python.tools.Matrix.generateb(), python.uq.learner.SimulationLearner.SimulationLearner.getCollocationNodes(), python.uq.learner.SimulationLearner.SimulationLearner.getGrid(), python.uq.learner.SimulationLearner.SimulationLearner.getLearner(), python.uq.learner.Regressor.Regressor.learnData(), python.learner.Learner.Learner.learnData(), python.uq.learner.Regressor.Regressor.learnDataWithFolding(), python.learner.Learner.Learner.learnDataWithFolding(), python.uq.learner.Regressor.Regressor.learnDataWithTest(), python.learner.Learner.Learner.learnDataWithTest(), python.uq.operations.forcePositivity.operationMakePositive.OperationMakePositive.makePositive(), python.uq.operations.forcePositivity.operationMakePositiveFast.OperationMakePositiveFast.makePositive(), python.uq.dists.SGDEdist.SGDEdist.mean(), python.uq.dists.SGDEdist.SGDEdist.pdf(), python.uq.dists.SGDEdist.SGDEdist.ppf(), python.learner.Classifier.Classifier.refineGrid(), python.learner.Regressor.Regressor.refineGrid(), python.uq.learner.Regressor.Regressor.refineGrid(), python.uq.learner.SimulationLearner.SimulationLearner.refineGrid(), python.uq.learner.Learner.Learner.setGrid(), python.learner.Learner.Learner.setGrid(), python.uq.operations.forcePositivity.localFullGridSearch.LocalFullGrid.split(), python.uq.dists.SGDEdist.SGDEdist.toJson(), python.learner.Classifier.Classifier.updateResults(), python.learner.Regressor.Regressor.updateResults(), python.uq.learner.Regressor.Regressor.updateResults(), and python.uq.dists.SGDEdist.SGDEdist.var().
|
static |
Number of current iterations.
Referenced by python.uq.learner.Learner.Learner.__init__(), python.learner.Learner.Learner.__init__(), python.uq.learner.Learner.Learner.fromJson(), python.learner.Learner.Learner.fromJson(), python.uq.learner.Learner.Learner.getCurrentIterationNumber(), python.learner.Learner.Learner.getCurrentIterationNumber(), python.uq.operations.forcePositivity.findCandidateSet.CandidateSet.hasMoreCandidates(), python.uq.learner.Regressor.Regressor.learnData(), python.learner.Learner.Learner.learnData(), python.uq.learner.Interpolant.Interpolant.learnDataWithTest(), python.learner.Learner.Learner.learnDataWithTest(), python.uq.learner.SimulationLearner.SimulationLearner.refineGrid(), python.uq.learner.Learner.Learner.setCurrentIterationNumber(), python.learner.Learner.Learner.setCurrentIterationNumber(), and python.uq.learner.SimulationLearner.SimulationLearner.updateResults().
|
static |
LearnedKnowledge where alpha is stored.
Referenced by python.learner.Learner.Learner.applyData(), python.uq.learner.Learner.Learner.copy(), python.uq.learner.SimulationLearner.SimulationLearner.getKnowledge(), python.uq.manager.ASGCUQManager.ASGCUQManager.getKnowledge(), python.uq.manager.ASGCUQManager.ASGCUQManager.learnDataWithoutTest(), python.uq.manager.ASGCUQManager.ASGCUQManager.learnDataWithTest(), python.uq.manager.ASGCUQManager.ASGCUQManager.recomputeStats(), python.uq.manager.ASGCUQManager.ASGCUQManager.runNextSamples(), python.uq.learner.Learner.Learner.setLearnedKnowledge(), python.learner.Learner.Learner.setLearnedKnowledge(), python.learner.Classifier.Classifier.updateResults(), python.learner.Regressor.Regressor.updateResults(), and python.uq.learner.SimulationLearner.SimulationLearner.updateResults().
|
static |
DMSystemMatrix object associated with this Learner.
Referenced by python.learner.Learner.Learner.doLearningIteration().
|
static |
List of numbers of point on grid for different refinement iterations.
Referenced by python.uq.learner.Learner.Learner.__init__(), python.learner.Learner.Learner.__init__(), python.uq.learner.Learner.Learner.fromJson(), python.learner.Learner.Learner.fromJson(), python.learner.Classifier.Classifier.updateResults(), python.uq.manager.ASGCStatistics.ASGCStatistics.updateResults(), python.learner.Regressor.Regressor.updateResults(), python.uq.learner.Regressor.Regressor.updateResults(), and python.uq.learner.SimulationLearner.SimulationLearner.updateResults().
|
static |
LinearSolver object associated with this Learner.
Referenced by python.uq.learner.Learner.Learner.copy(), python.learner.Learner.Learner.doLearningIteration(), python.uq.learner.Learner.Learner.fromJson(), python.learner.Learner.Learner.fromJson(), python.uq.learner.Learner.Learner.setSolver(), and python.learner.Learner.Learner.setSolver().
|
static |
TrainingSpecification object associated with this Learner.
Referenced by python.uq.learner.Regressor.Regressor.__getattr__(), python.uq.learner.SimulationLearner.SimulationLearner.__getattr__(), python.learner.Learner.Learner.applyData(), python.uq.learner.Learner.Learner.copy(), python.learner.Learner.Learner.doLearningIteration(), python.learner.Regressor.Regressor.evalError(), python.uq.learner.Learner.Learner.fromJson(), python.learner.Learner.Learner.fromJson(), python.uq.learner.SimulationLearner.SimulationLearner.getSpecification(), python.uq.learner.Regressor.Regressor.learnData(), python.learner.Learner.Learner.learnData(), python.uq.learner.Regressor.Regressor.learnDataWithFolding(), python.learner.Learner.Learner.learnDataWithFolding(), python.uq.learner.Regressor.Regressor.learnDataWithTest(), python.learner.Learner.Learner.learnDataWithTest(), python.learner.Classifier.Classifier.refineGrid(), python.learner.Regressor.Regressor.refineGrid(), python.uq.learner.SimulationLearner.SimulationLearner.setSpecification(), python.uq.learner.Learner.Learner.setSpecification(), and python.learner.Learner.Learner.setSpecification().
|
static |
TrainingStopPolicy object associated with this Learner.
Referenced by python.uq.learner.Learner.Learner.copy(), python.uq.learner.Learner.Learner.fromJson(), python.learner.Learner.Learner.fromJson(), python.uq.learner.Regressor.Regressor.learnData(), python.learner.Learner.Learner.learnData(), python.learner.Learner.Learner.learnDataWithTest(), python.uq.learner.Learner.Learner.setStopPolicy(), and python.learner.Learner.Learner.setStopPolicy().
|
static |
list of test accuracy values measured in refinement iteration
Referenced by python.uq.learner.Learner.Learner.__init__(), python.learner.Learner.Learner.__init__(), python.uq.learner.Learner.Learner.fromJson(), python.learner.Learner.Learner.fromJson(), python.learner.Classifier.Classifier.updateResults(), python.learner.Regressor.Regressor.updateResults(), python.uq.learner.Regressor.Regressor.updateResults(), and python.uq.learner.SimulationLearner.SimulationLearner.updateResults().
|
static |
List of average training accuracy data over all refinement iterations.
Referenced by python.uq.learner.Learner.Learner.__init__(), python.learner.Learner.Learner.__init__(), python.learner.Classifier.Classifier.updateResults(), python.learner.Regressor.Regressor.updateResults(), python.uq.learner.Regressor.Regressor.updateResults(), and python.uq.learner.SimulationLearner.SimulationLearner.updateResults().
|
static |
list of train accuracy values measured in refinement iteration
Referenced by python.uq.learner.Learner.Learner.__init__(), python.learner.Learner.Learner.__init__(), python.uq.learner.Learner.Learner.fromJson(), python.learner.Learner.Learner.fromJson(), python.learner.Classifier.Classifier.updateResults(), python.learner.Regressor.Regressor.updateResults(), python.uq.learner.Regressor.Regressor.updateResults(), and python.uq.learner.SimulationLearner.SimulationLearner.updateResults().
|
static |
List of average training accuracy data over all refinement iterations.
Referenced by python.uq.learner.Learner.Learner.__init__(), python.learner.Learner.Learner.__init__(), python.uq.learner.Learner.Learner.fromJson(), python.learner.Learner.Learner.fromJson(), python.learner.Classifier.Classifier.updateResults(), python.learner.Regressor.Regressor.updateResults(), python.uq.learner.Regressor.Regressor.updateResults(), and python.uq.learner.SimulationLearner.SimulationLearner.updateResults().
|
static |
Verbosity level in the solver iterations.
Referenced by python.learner.Learner.Learner.__init__(), python.learner.Learner.Learner.doLearningIteration(), and python.learner.Learner.Learner.setVerbosity().