Main Page | Class Hierarchy | Class List | Class Members

kddml.Core.DataSources.PPInternalTable Class Reference

Inheritance diagram for kddml.Core.DataSources.PPInternalTable:

kddml.Core.DataSources.InternalTable kddml.Core.DataSources.PPInternalTableManager kddml.Core.KDDMLObject kddml.Core.DataSources.InternalTableManager kddml.Core.DataSources.InternalTableManager kddml.Core.HTMLTranslator List of all members.

Public Member Functions

KDDMLObjectType getType ()
void saveToRepository () throws KDDMLCoreException
String toString ()
Object load (long i) throws InternalTableException
void increasePointer (int i) throws InternalTableException
DataStatisticsManager getPPStatistic ()
void reset () throws InternalTableException
void addInstances (Object inst1, Object inst2) throws InternalTableException
long optimize ()
HistoryManager getHistory ()
void setHistory (HistoryManager elem) throws kddml.Core. KDDMLCoreException
void saveHTML () throws KDDMLCoreException

Detailed Description

This class contains a preprocessing table, i.e. a table used in the preprocessing task. It is composed by:
  1. the data schema, that includes attributes types and some simple statistics on attribute values;
  2. the physical data section as a text file in comma separated format;
  3. the preprocessing data section including preprocessing information such as marks associated to a physical instance value belonging to the data section. Also the preprocessing section is in a CSV format, with the number of columns and rows coinciding with the number of attributes and rows of the data section. By convention, all instances values of preprocessing section are set to a missing value when the preprocessing phase starts;
  4. the preprocessing history used to list the set of preprocessing operations performed on the table.

Title: KDDML

Description: Knowledge Discovery in Database Environment

Copyright: Copyright (c) 2004

Company: Universita' di Pisa - Dipartimento di Informatica

Author:
Andrea Romei (romei@di.unipi.it)

Sandra Zimei (zimei@cli.di.unipi.it)

Version:
2.0


Member Function Documentation

KDDMLObjectType kddml.Core.DataSources.PPInternalTable.getType  )  [virtual]
 

Returns the type of the object.

Returns:
KDDMLObjectType

Reimplemented from kddml.Core.DataSources.InternalTable.

void kddml.Core.DataSources.PPInternalTable.saveToRepository  )  throws KDDMLCoreException [virtual]
 

Saves the object in the system repository. The data schema is representend as XML document. The physical instances as text file in comma separated format. The preprocessing instances as text file in comma separated format. The destination path is provided by the object_path variable for the data schema, by the object_data_path variable for the row data and by the object_PPdata_path variable for the preprocessing instances. By definition, row data and preprocessing information are already stored in the repository.

Exceptions:
KDDMLCoreException 

Reimplemented from kddml.Core.DataSources.InternalTable.

String kddml.Core.DataSources.PPInternalTable.toString  ) 
 

Returns a representation of this object as string.

Returns:
String

Reimplemented from kddml.Core.DataSources.InternalTable.

Object kddml.Core.DataSources.PPInternalTable.load long  i  )  throws InternalTableException
 

Loads i instances from the position specified by the pointer and returns they as generic object. If the input parameter is greater than the total number of instances, or if it is equal to -1, then the method returns all instances. If i is equal to 0, it returns only the schema of tuples.

Parameters:
i long a non-negative integer representing the the number of instances that will be stored in RAM. -1 if all instances must be return.
Exceptions:
KDDMLCoreException 
Returns:
Object a two-dimensional array of weka.core.Instances. The first element contains the row data; the second element contains the preprocessing section.
Exceptions:
InternalTableException 

Reimplemented from kddml.Core.DataSources.InternalTable.

void kddml.Core.DataSources.PPInternalTable.increasePointer int  i  )  throws InternalTableException
 

Increases the instances pointer of the specified quantity.

Parameters:
i int
Exceptions:
InternalTableException 

Reimplemented from kddml.Core.DataSources.InternalTable.

DataStatisticsManager kddml.Core.DataSources.PPInternalTable.getPPStatistic  ) 
 

Returns the statistics related to the preprocessing section.

Returns:
InternalTableManager.

Implements kddml.Core.DataSources.PPInternalTableManager.

void kddml.Core.DataSources.PPInternalTable.reset  )  throws InternalTableException
 

Initializes the instances pointer to the begin of data file.

Exceptions:
InternalTableException 

Reimplemented from kddml.Core.DataSources.InternalTable.

void kddml.Core.DataSources.PPInternalTable.addInstances Object  inst1,
Object  inst2
throws InternalTableException
 

Adds the input instances to the table. Throws an exception if the data schema of the input table and the data schema of the input instances are not compatible.

Parameters:
inst1 Object the set of instances representing the data as weka.core.Instances.
inst2 Object the set of instances representing the preprocessing data as weka.core.Instances.
Exceptions:
InternalTableException if the schemas are not compatible.

Implements kddml.Core.DataSources.PPInternalTableManager.

long kddml.Core.DataSources.PPInternalTable.optimize  ) 
 

Computes the optimal number of instances to load. It can depend from the total number of instances and attributes and the quantity of available system RAM.

Returns:
long

Reimplemented from kddml.Core.DataSources.InternalTable.

HistoryManager kddml.Core.DataSources.PPInternalTable.getHistory  ) 
 

Returns the history related to this preprocessing table.

Returns:
HistoryManager

Implements kddml.Core.DataSources.PPInternalTableManager.

void kddml.Core.DataSources.PPInternalTable.setHistory HistoryManager  elem  )  throws kddml.Core. KDDMLCoreException
 

Sets the history to this preprocessing table.

Parameters:
elem HistoryManager
Exceptions:
KDDMLCoreException 

Implements kddml.Core.DataSources.PPInternalTableManager.

void kddml.Core.DataSources.PPInternalTable.saveHTML  )  throws KDDMLCoreException [virtual]
 

Memorizza l'insieme di istanze come documento HTML.

Exceptions:
KDDMLCoreException 

Reimplemented from kddml.Core.DataSources.InternalTable.


Generated on Thu Feb 23 13:04:44 2006 for kddml by  doxygen 1.4.3