SG++-Doxygen-Documentation
python.learner.Learner.Learner Class Reference

The class implements the routines common for classifier and regressor. More...

Inheritance diagram for python.learner.Learner.Learner:

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...
 

Detailed Description

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.

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

  • Subject: Learner
  • Concrete subject: e.g. Classifier or Regressor
  • Observer: LernerEventController
  • Concrete Observer: e.g. InfoToScreen

Observer can also want to retrieve the process information from LinearSolver. See documentation ofLinearSolver for more information.

Constructor & Destructor Documentation

◆ __init__()

Member Function Documentation

◆ applyData()

def python.learner.Learner.Learner.applyData (   self,
  points 
)

Calculate the value of the function for given points.

Parameters
pointsDataVector set of points
Returns
: DataVector values

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.

◆ attachEventController()

def python.learner.Learner.Learner.attachEventController (   self,
  observer 
)

Add observer to the list.

Parameters
observerLearnerEventController object

References python.learner.Learner.Learner.eventControllers.

◆ createMemento()

◆ detachEventController()

def python.learner.Learner.Learner.detachEventController (   self,
  observer 
)

Remove observer from the list.

Parameters
observerLearnerEventController object

References python.learner.Learner.Learner.eventControllers.

◆ doLearningIteration()

def python.learner.Learner.Learner.doLearningIteration (   self,
  set 
)

Perform one learning step.

Parameters
setDataContainer training data set
Returns
: DataVector alpha vector

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().

◆ evalError()

def python.learner.Learner.Learner.evalError (   self,
  dataContainer,
  alpha 
)

Evaluate accuracy this method is not implemented!

Parameters
dataContainerDataContainer data set
alphaDataVector alpha-vector

Referenced by python.learner.Regressor.Regressor.updateResults(), python.uq.learner.Interpolant.Interpolant.updateResults(), and python.uq.learner.Regressor.Regressor.updateResults().

◆ fromJson()

◆ getCurrentIterationNumber()

def python.learner.Learner.Learner.getCurrentIterationNumber (   self)

Returns the number of current iteration.

Returns
: integer iteration number

References python.learner.Learner.Learner.iteration.

◆ learnData()

def python.learner.Learner.Learner.learnData (   self)

Simple data learning.

Returns
: DataVector of alpha

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().

◆ learnDataWithFolding()

def python.learner.Learner.Learner.learnDataWithFolding (   self)

Learn data with cross-fold validation.

Returns
: list of DataVector alpha in different folds

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.

◆ learnDataWithTest()

def python.learner.Learner.Learner.learnDataWithTest (   self,
  dataset = None 
)

Learn data from training data set and use validation data set to prevent overfitting.

Parameters
datasetDataContainer object with data sets, default value None (initialized data set used)
Returns
: DataVector of alpha

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().

◆ notifyEventControllers()

◆ refineGrid()

def python.learner.Learner.Learner.refineGrid (   self)

◆ setCurrentIterationNumber()

def python.learner.Learner.Learner.setCurrentIterationNumber (   self,
  value 
)

Sets the number of current iteration.

Parameters
valueinteger new iteration number

References python.learner.Learner.Learner.iteration.

◆ setDataContainer()

def python.learner.Learner.Learner.setDataContainer (   self,
  container 
)

Setter for data container.

Parameters
containerthe data container object
Returns
: leaner itself

References python.learner.Learner.Learner.dataContainer.

◆ setFoldingPolicy()

def python.learner.Learner.Learner.setFoldingPolicy (   self,
  policy 
)

Setter for folding policy.

Parameters
policythe folding policy object
Returns
: leaner itself

References python.learner.Learner.Learner.foldingPolicy.

◆ setGrid()

def python.learner.Learner.Learner.setGrid (   self,
  grid 
)

Setter for grid.

Parameters
gridthe grid obejct
Returns
: leaner itself

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.

◆ setLearnedKnowledge()

def python.learner.Learner.Learner.setLearnedKnowledge (   self,
  knowledge 
)

Setter for learned knowledge.

Parameters
knowledgethe learned knowledge object
Returns
: leaner itself

References python.learner.Learner.Learner.knowledge, and python.controller.CheckpointController.CheckpointController.knowledge.

◆ setMemento()

def python.learner.Learner.Learner.setMemento (   self,
  memento 
)

Restores the state which is saved in the given memento.

Parameters
mementothe memento object

References python.data.DataContainer.DataContainer.fromJson(), and python.learner.Learner.Learner.fromJson().

◆ setSolver()

def python.learner.Learner.Learner.setSolver (   self,
  solver 
)

Setter for linear solver.

Parameters
solverthe linear solver object
Returns
: leaner itself

References python.learner.Learner.Learner.solver.

◆ setSpecification()

def python.learner.Learner.Learner.setSpecification (   self,
  specification 
)

Setter for training specification.

Parameters
specificationthe training specification object
Returns
: leaner itself

References python.learner.Learner.Learner.specification.

◆ setStopPolicy()

def python.learner.Learner.Learner.setStopPolicy (   self,
  policy 
)

Setter for training stop policy.

Parameters
policythe training stop policy object
Returns
: leaner itself

References python.learner.Learner.Learner.stopPolicy.

◆ setVerbosity()

def python.learner.Learner.Learner.setVerbosity (   self,
  verb 
)

Sets the verbosity level in the solver (default: False)

Parameters
verbbool if verbose

References python.learner.Learner.Learner.useVerbose.

◆ toString()

def python.learner.Learner.Learner.toString (   self)

Returns a string that represents the object.

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().

◆ updateResults()

def python.learner.Learner.Learner.updateResults (   self,
  alpha,
  trainSubset,
  testSubset = None 
)

Member Data Documentation

◆ alpha

◆ dataContainer

◆ eventControllers

◆ foldingPolicy

◆ grid

python.learner.Learner.Learner.grid = None
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().

◆ iteration

◆ knowledge

◆ linearSystem

python.learner.Learner.Learner.linearSystem = None
static

DMSystemMatrix object associated with this Learner.

Referenced by python.learner.Learner.Learner.doLearningIteration().

◆ numberPoints

◆ solver

◆ specification

◆ stopPolicy

◆ testAccuracy

◆ testingOverall

◆ trainAccuracy

◆ trainingOverall

◆ useVerbose

python.learner.Learner.Learner.useVerbose = None
static

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