SG++-Doxygen-Documentation
python.learner.formatter.LearnerFormatter.LearnerFormatter Class Reference
Inheritance diagram for python.learner.formatter.LearnerFormatter.LearnerFormatter:

Public Member Functions

def deserialize (self, serializationStream)
 Deserializes the Learner memento object from the stream. More...
 
def serialize (self, memento, serializationStream)
 Serializes the Learner memento to the stream. More...
 
def serializeToFile (self, memento, filename)
 Serializes the Learner memento to the file. More...
 
def toString (self, memento)
 Returns a string that represents the Learner memento object. More...
 

Member Function Documentation

◆ deserialize()

def python.learner.formatter.LearnerFormatter.LearnerFormatter.deserialize (   self,
  serializationStream 
)

◆ serialize()

def python.learner.formatter.LearnerFormatter.LearnerFormatter.serialize (   self,
  memento,
  serializationStream 
)

◆ serializeToFile()

def python.learner.formatter.LearnerFormatter.LearnerFormatter.serializeToFile (   self,
  memento,
  filename 
)

Serializes the Learner memento to the file.

Parameters
mementoThe Learner memento structure
filenameThe name of file where memento should be serialized to.

References python.utils.GzipSerializer.GzipSerializer.gzOpen(), python.learner.formatter.GridImageFormatter.GridImageFormatter.serialize(), sgpp::combigrid::AbstractSerializationStrategy< T >.serialize(), sgpp::combigrid::DefaultSerializationStrategy< T >.serialize(), json::ListNode.serialize(), json::Node.serialize(), sgpp::combigrid::FloatSerializationStrategy< T >.serialize(), json::JSON.serialize(), json::DictNode.serialize(), sgpp::base::ModPolyGrid.serialize(), sgpp::base::PolyGrid.serialize(), json::TextNode.serialize(), python.learner.formatter.LearnerFormatter.LearnerFormatter.serialize(), json::IDNode.serialize(), sgpp::base::PolyBoundaryGrid.serialize(), sgpp::base::LinearClenshawCurtisBoundaryGrid.serialize(), sgpp::base::PolyClenshawCurtisBoundaryGrid.serialize(), sgpp::combigrid::TreeStorageSerializationStrategy< T >.serialize(), sgpp::combigrid::AbstractCombigridStorage.serialize(), python.learner.formatter.GridFormatter.GridFormatter.serialize(), sgpp::base::LinearBoundaryGrid.serialize(), sgpp::combigrid::CombigridTreeStorage.serialize(), sgpp::combigrid::FunctionLookupTable.serialize(), python.learner.formatter.LearnedKnowledgeFormatter.LearnedKnowledgeFormatter.serialize(), sgpp::base::LinearClenshawCurtisGrid.serialize(), sgpp::base::ModLinearClenshawCurtisGrid.serialize(), sgpp::base::PolyClenshawCurtisGrid.serialize(), sgpp::base::ModPolyClenshawCurtisGrid.serialize(), sgpp::base::BsplineGrid.serialize(), sgpp::base::FundamentalSplineGrid.serialize(), sgpp::base::ModFundamentalSplineGrid.serialize(), sgpp::base::ModBsplineGrid.serialize(), sgpp::base::ModBsplineClenshawCurtisGrid.serialize(), sgpp::base::NakBsplineBoundaryCombigridGrid.serialize(), sgpp::base::BsplineClenshawCurtisGrid.serialize(), sgpp::base::BsplineBoundaryGrid.serialize(), sgpp::base::HashGridPoint.serialize(), sgpp::base::HashGridStorage.serialize(), sgpp::base::BoundingBox.serialize(), sgpp::base::Stretching.serialize(), and sgpp::base::Grid.serialize().

◆ toString()

def python.learner.formatter.LearnerFormatter.LearnerFormatter.toString (   self,
  memento 
)

Returns a string that represents the Learner memento object.

Parameters
mementoThe LearnerMemento object.
Returns
A string that represents the Learner memento object.

References python.utils.json.write().

Referenced by python.uq.learner.Learner.Learner.createMemento(), and python.learner.Learner.Learner.createMemento().


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