SG++-Doxygen-Documentation
|
Class implements the interface of DataAdapter for storing and restoring of input data into / from files in ARFF-format. More...
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... | |
Class implements the interface of DataAdapter for storing and restoring of input data into / from files in ARFF-format.
def python.data.ARFFAdapter.ARFFAdapter.__init__ | ( | self, | |
filename = "" |
|||
) |
Constructor.
filename | Filename as String |
References python.controller.InfoToFile.InfoToFile.filename, and python.data.ARFFAdapter.ARFFAdapter.filename.
def python.data.ARFFAdapter.ARFFAdapter.loadData | ( | self, | |
name = "train" |
|||
) |
Reads dataset from file.
name | String for category of data set (train or test), default "train" |
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.
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.
points | DataVector with points |
values | DataVector with values, default None |
attributes | dictionary 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().
|
static |
Filename associated with data.
Referenced by python.data.ARFFAdapter.ARFFAdapter.__init__(), python.data.CSVAdapter.CSVAdapter.__init__(), python.data.DataSpecification.DataSpecification.__init__(), python.data.DataSpecification.DataSpecification.getFilename(), python.data.ARFFAdapter.ARFFAdapter.loadData(), python.data.CSVAdapter.CSVAdapter.loadData(), python.data.ARFFAdapter.ARFFAdapter.loadSpecification(), python.data.CSVAdapter.CSVAdapter.loadSpecification(), python.data.ARFFAdapter.ARFFAdapter.save(), python.data.CSVAdapter.CSVAdapter.save(), and python.data.DataSpecification.DataSpecification.setFilename().