SG++-Doxygen-Documentation
|
Public Member Functions | |
def | __init__ (self, params, grid, refinementManager=None, stopPolicy=None) |
def | __str__ (self) |
def | createMemento (self) |
def | fromJson (cls, jsonObject) |
def | getCollocationNodes (self) |
def | getCurrentIterationNumber (self) |
def | getGrid (self) |
def | getSize (self) |
def | hasMoreSamples (self) |
def | nextSamples (self, knowledge=None, qoi="_", refinets=[0]) |
def | refineGrid (self, knowledge, qoi="_", refinets=[0]) |
def | setGrid (self, grid) |
def | setMemento (self, memento) |
def | toJson (self) |
Public Attributes | |
samples | |
The ASGC sampler class
def python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__init__ | ( | self, | |
params, | |||
grid, | |||
refinementManager = None , |
|||
stopPolicy = None |
|||
) |
References python.uq.learner.builder.GridDescriptor.GridDescriptor.__grid, python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__grid, python.uq.analysis.asgc.anova.hdmrAnalytic.HDMRAnalytic.__grid, python.uq.analysis.asgc.ASGCKnowledge.ASGCKnowledge.__iteration, python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__iteration, python.uq.analysis.asgc.ASGCAnalysisSpecification.ASGCAnalysisSpecification.__params, python.uq.estimators.SparseGridEstimator.SparseGridEstimator.__params, python.uq.learner.SimulationLearnerSpecification.SimulationLearnerSpecification.__params, python.uq.manager.ASGCUQManager.ASGCUQManager.__params, python.uq.analysis.mc.MCAnalysis.MCAnalysis.__params, python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__params, python.uq.analysis.asgc.ASGCAnalysis.ASGCAnalysis.__params, python.uq.parameters.ParameterSet.ParameterSet.__params, python.uq.analysis.asgc.anova.hdmrAnalytic.HDMRAnalytic.__params, python.uq.parameters.ParameterSet.ParameterSetIterator.__params, python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__refinementManager, python.uq.analysis.mc.MCAnalysis.MCAnalysis.__samples, python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__samples, python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__stopPolicy, python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__verbose, and python.uq.analysis.asgc.ASGCAnalysis.ASGCAnalysis.__verbose.
def python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__str__ | ( | self | ) |
References python.uq.dists.CorrBeta.CorrBeta.toJson(), python.uq.parameters.Parameter.Parameter.toJson(), python.uq.estimators.SparseGridEstimationStrategy.SparseGridEstimationStrategy.toJson(), python.uq.dists.TLognormal.TLognormal.toJson(), python.uq.dists.Uniform.Uniform.toJson(), python.uq.dists.Beta.Beta.toJson(), python.uq.dists.Corr.Corr.toJson(), python.uq.dists.MultivariateNormal.MultivariateNormal.toJson(), python.uq.dists.Lognormal.Lognormal.toJson(), python.uq.dists.DataDist.DataDist.toJson(), python.uq.dists.TNormal.TNormal.toJson(), python.uq.dists.Normal.Normal.toJson(), python.uq.dists.KDEDist.KDEDist.toJson(), python.uq.dists.NatafDist.NatafDist.toJson(), python.uq.dists.J.J.toJson(), python.uq.sampler.asgc.ASGCSampler.ASGCSampler.toJson(), python.uq.analysis.asgc.ASGCKnowledge.ASGCKnowledge.toJson(), python.uq.dists.SGDEdist.SGDEdist.toJson(), and python.uq.parameters.ParameterSet.ParameterSet.toJson().
def python.uq.sampler.asgc.ASGCSampler.ASGCSampler.createMemento | ( | self | ) |
Creates a new memento to hold the current state
References python.utils.json.read(), python.uq.dists.CorrBeta.CorrBeta.toJson(), python.uq.parameters.Parameter.Parameter.toJson(), python.uq.estimators.SparseGridEstimationStrategy.SparseGridEstimationStrategy.toJson(), python.uq.dists.TLognormal.TLognormal.toJson(), python.uq.dists.Uniform.Uniform.toJson(), python.uq.dists.Beta.Beta.toJson(), python.uq.dists.Corr.Corr.toJson(), python.uq.dists.MultivariateNormal.MultivariateNormal.toJson(), python.uq.dists.Lognormal.Lognormal.toJson(), python.uq.dists.DataDist.DataDist.toJson(), python.uq.dists.TNormal.TNormal.toJson(), python.uq.dists.Normal.Normal.toJson(), python.uq.dists.KDEDist.KDEDist.toJson(), python.uq.dists.NatafDist.NatafDist.toJson(), python.uq.dists.J.J.toJson(), python.uq.sampler.asgc.ASGCSampler.ASGCSampler.toJson(), python.uq.analysis.asgc.ASGCKnowledge.ASGCKnowledge.toJson(), python.uq.dists.SGDEdist.SGDEdist.toJson(), and python.uq.parameters.ParameterSet.ParameterSet.toJson().
Referenced by python.uq.uq_setting.UQSetting.UQSetting.writeToFile().
def python.uq.sampler.asgc.ASGCSampler.ASGCSampler.fromJson | ( | cls, | |
jsonObject | |||
) |
Restores the ASGCSampler object from the json object with its attributes. @param jsonObject: json object @return: the restored ASGCSampler object
Referenced by python.uq.sampler.asgc.ASGCSampler.ASGCSampler.setMemento(), and python.uq.uq_setting.UQSetting.UQSetting.setMemento().
def python.uq.sampler.asgc.ASGCSampler.ASGCSampler.getCollocationNodes | ( | self | ) |
Create a set of all collocation nodes
References python.uq.learner.builder.GridDescriptor.GridDescriptor.__grid, python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__grid, and python.uq.analysis.asgc.anova.hdmrAnalytic.HDMRAnalytic.__grid.
def python.uq.sampler.asgc.ASGCSampler.ASGCSampler.getCurrentIterationNumber | ( | self | ) |
References python.uq.analysis.asgc.ASGCKnowledge.ASGCKnowledge.__iteration, and python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__iteration.
def python.uq.sampler.asgc.ASGCSampler.ASGCSampler.getGrid | ( | self | ) |
References python.uq.learner.builder.GridDescriptor.GridDescriptor.__grid, python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__grid, and python.uq.analysis.asgc.anova.hdmrAnalytic.HDMRAnalytic.__grid.
def python.uq.sampler.asgc.ASGCSampler.ASGCSampler.getSize | ( | self | ) |
References python.uq.learner.builder.GridDescriptor.GridDescriptor.__grid, python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__grid, and python.uq.analysis.asgc.anova.hdmrAnalytic.HDMRAnalytic.__grid.
Referenced by python.uq.uq_setting.UQSetting.UQSetting.convert(), python.uq.uq_setting.UQSetting.UQSetting.getTimeDependentResults(), python.uq.sampler.asgc.ASGCSampler.ASGCSampler.refineGrid(), python.uq.uq_setting.UQSetting.UQSetting.runSamples(), and python.uq.uq_setting.UQSetting.UQSetting.runSamples_withoutDistribution().
def python.uq.sampler.asgc.ASGCSampler.ASGCSampler.hasMoreSamples | ( | self | ) |
References python.uq.analysis.asgc.ASGCKnowledge.ASGCKnowledge.__iteration, python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__iteration, and python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__stopPolicy.
def python.uq.sampler.asgc.ASGCSampler.ASGCSampler.nextSamples | ( | self, | |
knowledge = None , |
|||
qoi = "_" , |
|||
refinets = [0] |
|||
) |
Generate the next samples with respect to the current knowledge @return: Samples, set of new samples
References python.uq.analysis.asgc.ASGCKnowledge.ASGCKnowledge.__iteration, python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__iteration, python.uq.analysis.asgc.ASGCAnalysisSpecification.ASGCAnalysisSpecification.__params, python.uq.estimators.SparseGridEstimator.SparseGridEstimator.__params, python.uq.learner.SimulationLearnerSpecification.SimulationLearnerSpecification.__params, python.uq.manager.ASGCUQManager.ASGCUQManager.__params, python.uq.analysis.mc.MCAnalysis.MCAnalysis.__params, python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__params, python.uq.analysis.asgc.ASGCAnalysis.ASGCAnalysis.__params, python.uq.parameters.ParameterSet.ParameterSet.__params, python.uq.analysis.asgc.anova.hdmrAnalytic.HDMRAnalytic.__params, and python.uq.parameters.ParameterSet.ParameterSetIterator.__params.
def python.uq.sampler.asgc.ASGCSampler.ASGCSampler.refineGrid | ( | self, | |
knowledge, | |||
qoi = "_" , |
|||
refinets = [0] |
|||
) |
References python.uq.learner.builder.GridDescriptor.GridDescriptor.__grid, python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__grid, python.uq.analysis.asgc.anova.hdmrAnalytic.HDMRAnalytic.__grid, python.uq.analysis.asgc.ASGCKnowledge.ASGCKnowledge.__iteration, python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__iteration, python.uq.analysis.asgc.ASGCAnalysisSpecification.ASGCAnalysisSpecification.__params, python.uq.estimators.SparseGridEstimator.SparseGridEstimator.__params, python.uq.learner.SimulationLearnerSpecification.SimulationLearnerSpecification.__params, python.uq.manager.ASGCUQManager.ASGCUQManager.__params, python.uq.analysis.mc.MCAnalysis.MCAnalysis.__params, python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__params, python.uq.analysis.asgc.ASGCAnalysis.ASGCAnalysis.__params, python.uq.parameters.ParameterSet.ParameterSet.__params, python.uq.analysis.asgc.anova.hdmrAnalytic.HDMRAnalytic.__params, python.uq.parameters.ParameterSet.ParameterSetIterator.__params, python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__refinementManager, python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__verbose, python.uq.analysis.asgc.ASGCAnalysis.ASGCAnalysis.__verbose, and python.uq.sampler.asgc.ASGCSampler.ASGCSampler.getSize().
def python.uq.sampler.asgc.ASGCSampler.ASGCSampler.setGrid | ( | self, | |
grid | |||
) |
References python.uq.learner.builder.GridDescriptor.GridDescriptor.__grid, python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__grid, and python.uq.analysis.asgc.anova.hdmrAnalytic.HDMRAnalytic.__grid.
def python.uq.sampler.asgc.ASGCSampler.ASGCSampler.setMemento | ( | self, | |
memento | |||
) |
Restores the state which is saved in the given memento @param memento: the memento object
References python.uq.estimators.SparseGridEstimationStrategy.SparseGridEstimationStrategy.fromJson(), python.uq.dists.CorrBeta.CorrBeta.fromJson(), python.uq.dists.TLognormal.TLognormal.fromJson(), python.uq.parameters.Parameter.Parameter.fromJson(), python.uq.dists.Uniform.Uniform.fromJson(), python.uq.dists.Corr.Corr.fromJson(), python.uq.dists.Beta.Beta.fromJson(), python.uq.dists.MultivariateNormal.MultivariateNormal.fromJson(), python.uq.dists.Lognormal.Lognormal.fromJson(), python.uq.dists.DataDist.DataDist.fromJson(), python.uq.dists.TNormal.TNormal.fromJson(), python.uq.dists.Normal.Normal.fromJson(), python.learner.solver.CGSolver.CGSolver.fromJson(), python.learner.TrainingStopPolicy.TrainingStopPolicy.fromJson(), python.uq.dists.KDEDist.KDEDist.fromJson(), python.learner.TrainingSpecification.TrainingSpecification.fromJson(), python.uq.sampler.asgc.ASGCSampler.ASGCSampler.fromJson(), python.uq.dists.NatafDist.NatafDist.fromJson(), python.uq.dists.J.J.fromJson(), python.uq.dists.Dist.Dist.fromJson(), python.uq.analysis.asgc.ASGCKnowledge.ASGCKnowledge.fromJson(), python.uq.learner.Learner.Learner.fromJson(), python.uq.dists.SGDEdist.SGDEdist.fromJson(), python.data.DataContainer.DataContainer.fromJson(), python.learner.Learner.Learner.fromJson(), and python.uq.parameters.ParameterSet.ParameterSet.fromJson().
def python.uq.sampler.asgc.ASGCSampler.ASGCSampler.toJson | ( | self | ) |
@return: string that represents the object
Referenced by python.uq.sampler.asgc.ASGCSampler.ASGCSampler.__str__(), python.uq.uq_setting.UQSetting.UQSetting.__str__(), python.uq.sampler.asgc.ASGCSampler.ASGCSampler.createMemento(), and python.uq.uq_setting.UQSetting.UQSetting.createMemento().
python.uq.sampler.asgc.ASGCSampler.ASGCSampler.samples |
Referenced by python.uq.sampler.Sample.SamplesIterator.__next__().