SG++
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

def python.learner.formatter.LearnerFormatter.LearnerFormatter.deserialize (   self,
  serializationStream 
)
def python.learner.formatter.LearnerFormatter.LearnerFormatter.serialize (   self,
  memento,
  serializationStream 
)
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(), json::DictNode.serialize(), json::JSON.serialize(), sgpp::combigrid::FloatSerializationStrategy< T >.serialize(), sgpp::base::PolyGrid.serialize(), sgpp::base::ModPolyGrid.serialize(), json::TextNode.serialize(), python.learner.formatter.LearnerFormatter.LearnerFormatter.serialize(), json::IDNode.serialize(), sgpp::base::PolyBoundaryGrid.serialize(), sgpp::base::LinearClenshawCurtisGrid.serialize(), python.learner.formatter.GridFormatter.GridFormatter.serialize(), sgpp::combigrid::TreeStorageSerializationStrategy< T >.serialize(), sgpp::combigrid::AbstractCombigridStorage.serialize(), sgpp::base::LinearBoundaryGrid.serialize(), sgpp::combigrid::CombigridTreeStorage.serialize(), sgpp::combigrid::FunctionLookupTable.serialize(), python.learner.formatter.LearnedKnowledgeFormatter.LearnedKnowledgeFormatter.serialize(), sgpp::base::ModFundamentalSplineGrid.serialize(), sgpp::base::BsplineGrid.serialize(), sgpp::base::FundamentalSplineGrid.serialize(), sgpp::base::ModBsplineClenshawCurtisGrid.serialize(), sgpp::base::ModBsplineGrid.serialize(), sgpp::base::HashGridPoint.serialize(), sgpp::base::NakBsplineBoundaryCombigridGrid.serialize(), sgpp::base::BsplineClenshawCurtisGrid.serialize(), sgpp::base::BsplineBoundaryGrid.serialize(), sgpp::base::HashGridStorage.serialize(), sgpp::base::BoundingBox.serialize(), sgpp::base::Stretching.serialize(), and sgpp::base::Grid.serialize().

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: