SG++-Doxygen-Documentation
Loading...
Searching...
No Matches
python.learner.LearnedKnowledge.LearnedKnowledge Class Reference

Class keeps all information, which was learned during the learning process. More...

Inheritance diagram for python.learner.LearnedKnowledge.LearnedKnowledge:

Public Member Functions

 __init__ (self)
 Constructor.
 
 createMemento (self)
 Creates a new memento to hold the current state.
 
 getAlphas (self)
 Returns current alpha vector.
 
 setMemento (self, memento)
 Restores the state which is saved in the given memento.
 
 update (self, alpha)
 Alters the current alpha vector.
 

Detailed Description

Class keeps all information, which was learned during the learning process.

Currently, only the alpha vector is stored, by in the future more information may come.

Constructor & Destructor Documentation

◆ __init__()

python.learner.LearnedKnowledge.LearnedKnowledge.__init__ (   self)

Constructor.

References python.learner.LearnedKnowledge.LearnedKnowledge.__alphas, and python.uq.analysis.asgc.ASGCKnowledge.ASGCKnowledge.__alphas.

Member Function Documentation

◆ createMemento()

python.learner.LearnedKnowledge.LearnedKnowledge.createMemento (   self)

Creates a new memento to hold the current state.

Returns
a new memento

References python.learner.LearnedKnowledge.LearnedKnowledge.__alphas, and python.uq.analysis.asgc.ASGCKnowledge.ASGCKnowledge.__alphas.

Referenced by python.uq.analysis.asgc.ASGCKnowledge.ASGCKnowledge.writeToFile(), and python.uq.uq_setting.UQSetting.UQSetting.writeToFile().

◆ getAlphas()

python.learner.LearnedKnowledge.LearnedKnowledge.getAlphas (   self)

Returns current alpha vector.

Returns
: DataVector of current alpha

References python.learner.LearnedKnowledge.LearnedKnowledge.__alphas, and python.uq.analysis.asgc.ASGCKnowledge.ASGCKnowledge.__alphas.

◆ setMemento()

python.learner.LearnedKnowledge.LearnedKnowledge.setMemento (   self,
  memento 
)

Restores the state which is saved in the given memento.

Parameters
mementothe memento object

References sgpp::datadriven::ModelFittingDensityDifferenceEstimationCG.update(), sgpp::datadriven::ModelFittingDensityDifferenceEstimationOnOff.update(), sgpp::datadriven::ModelFittingDensityEstimationCG.update(), sgpp::datadriven::ModelFittingDensityEstimationCombi.update(), sgpp::datadriven::ModelFittingDensityEstimationOnOff.update(), sgpp::datadriven::ModelFittingDensityEstimationOnOffParallel.update(), sgpp::datadriven::ModelFittingDensityEstimation.update(), sgpp::datadriven::ModelFittingDensityDifferenceEstimationCG.update(), sgpp::datadriven::ModelFittingDensityDifferenceEstimationOnOff.update(), sgpp::datadriven::ModelFittingDensityEstimationCG.update(), sgpp::datadriven::ModelFittingDensityEstimationCombi.update(), sgpp::datadriven::ModelFittingDensityEstimationOnOff.update(), sgpp::datadriven::ModelFittingDensityEstimationOnOffParallel.update(), sgpp::datadriven::ModelFittingDensityEstimation.update(), sgpp::datadriven::ModelFittingDensityRatioEstimation.update(), sgpp::datadriven::ModelFittingLeastSquares.update(), sgpp::datadriven::ModelFittingClassification.update(), sgpp::datadriven::ModelFittingDensityDifferenceEstimationCG.update(), sgpp::datadriven::ModelFittingDensityDifferenceEstimationOnOff.update(), sgpp::datadriven::ModelFittingDensityEstimationCG.update(), sgpp::datadriven::ModelFittingDensityEstimationCombi.update(), sgpp::datadriven::ModelFittingDensityEstimationOnOff.update(), sgpp::datadriven::ModelFittingDensityEstimationOnOffParallel.update(), sgpp::datadriven::ModelFittingLeastSquares.update(), sgpp::datadriven::ModelFittingDensityEstimation.update(), sgpp::datadriven::ModelFittingBase.update(), sgpp::datadriven::ModelFittingClassification.update(), sgpp::datadriven::ModelFittingDensityDifferenceEstimationCG.update(), sgpp::datadriven::ModelFittingDensityDifferenceEstimationOnOff.update(), sgpp::datadriven::ModelFittingDensityEstimationCG.update(), sgpp::datadriven::ModelFittingDensityEstimationCombi.update(), sgpp::datadriven::ModelFittingDensityEstimationOnOff.update(), sgpp::datadriven::ModelFittingDensityEstimationOnOffParallel.update(), sgpp::datadriven::ModelFittingDensityRatioEstimation.update(), sgpp::datadriven::ModelFittingDensityEstimation.update(), sgpp::datadriven::ModelFittingBase.update(), sgpp::base::LinearLoadBalancer.update(), sgpp::base::ForwardSelectorRefinementIndicator.update(), sgpp::base::ImpurityRefinementIndicator.update(), sgpp::base::HashGridStorage.update(), python.learner.LearnedKnowledge.LearnedKnowledge.update(), python.uq.analysis.asgc.ASGCKnowledge.ASGCKnowledge.update(), python.uq.refinement.RefinementStrategy.WeightedSurplusBFRanking.update(), python.uq.refinement.AdmissibleSet.RefinableNodesSet.update(), python.uq.refinement.AdmissibleSet.AdmissibleSparseGridNodeSet.update(), python.uq.refinement.AdmissibleSet.AdmissibleSetGenerator.update(), python.uq.refinement.RefinementStrategy.VarianceBFRanking.update(), python.uq.refinement.RefinementStrategy.SurplusRanking.update(), python.uq.refinement.RefinementStrategy.SquaredSurplusRanking.update(), python.uq.refinement.RefinementStrategy.Ranking.update(), python.uq.refinement.RefinementStrategy.WeightedSurplusRanking.update(), python.uq.refinement.RefinementStrategy.AnchoredWeightedL2OptRanking.update(), python.uq.refinement.RefinementStrategy.WeightedL2OptRanking.update(), python.uq.refinement.RefinementStrategy.AnchoredExpectationValueOptRanking.update(), python.uq.refinement.RefinementStrategy.ExpectationValueOptRanking.update(), python.uq.refinement.RefinementStrategy.VarianceOptRanking.update(), python.uq.refinement.RefinementStrategy.AnchoredVarianceOptRanking.update(), python.uq.refinement.RefinementStrategy.MeanSquaredOptRanking.update(), python.uq.refinement.RefinementStrategy.AnchoredMeanSquaredOptRanking.update(), python.uq.refinement.RefinementStrategy.WeightedL2BFRanking.update(), sgpp::base::ScreenOutput.update(), and sgpp::base::LinearLoadBalancerMultiPlatform.update().

◆ update()

python.learner.LearnedKnowledge.LearnedKnowledge.update (   self,
  alpha 
)

Alters the current alpha vector.

Parameters
alphanew alpha vector
Returns
: LearnedKnowledge itself

References python.learner.LearnedKnowledge.LearnedKnowledge.__alphas, and python.uq.analysis.asgc.ASGCKnowledge.ASGCKnowledge.__alphas.

Referenced by python.uq.refinement.RefinementStrategy.Ranking.rank(), and python.learner.LearnedKnowledge.LearnedKnowledge.setMemento().


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