SG++
python.data.ARFFAdapter.ARFFAdapter Class Reference

Class implements the interface of DataAdapter for storing and restoring of input data into / from files in ARFF-format. More...

Inheritance diagram for python.data.ARFFAdapter.ARFFAdapter:

Public Member Functions

def __init__ (self, filename="")
 Constructor. More...
 
def loadData (self, name="train")
 Reads dataset from file. More...
 
def loadSpecification (self)
 Loads attribute specification from file. More...
 
def save (self, points, values=None, attributes=None)
 Store data into file. More...
 

Static Public Attributes

 filename = None
 Filename associated with data. More...
 

Detailed Description

Class implements the interface of DataAdapter for storing and restoring of input data into / from files in ARFF-format.

Constructor & Destructor Documentation

def python.data.ARFFAdapter.ARFFAdapter.__init__ (   self,
  filename = "" 
)

Constructor.

Parameters
filenameFilename as String

References python.controller.InfoToFile.InfoToFile.filename, and python.data.ARFFAdapter.ARFFAdapter.filename.

Member Function Documentation

def python.data.ARFFAdapter.ARFFAdapter.loadData (   self,
  name = "train" 
)

Reads dataset from file.

Parameters
nameString for category of data set (train or test), default "train"
Returns
DataContainer with data set

References python.data.ARFFAdapter.ARFFAdapter.__gzOpen(), python.controller.InfoToFile.InfoToFile.filename, and python.data.ARFFAdapter.ARFFAdapter.filename.

def python.data.ARFFAdapter.ARFFAdapter.loadSpecification (   self)

Loads attribute specification from file.

Returns
dictionary with attribute specification

References python.data.ARFFAdapter.ARFFAdapter.__gzOpen(), python.controller.InfoToFile.InfoToFile.filename, python.data.ARFFAdapter.ARFFAdapter.filename, and sgpp::combigrid.split().

def python.data.ARFFAdapter.ARFFAdapter.save (   self,
  points,
  values = None,
  attributes = None 
)

Store data into file.

Parameters
pointsDataVector with points
valuesDataVector with values, default None
attributesdictionary with attributes of dataset, default None

References python.data.ARFFAdapter.ARFFAdapter.__gzOpen(), python.controller.InfoToFile.InfoToFile.filename, python.data.ARFFAdapter.ARFFAdapter.filename, and sgpp::combigrid.join().

Member Data Documentation


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