All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Interface weka.attributeSelection.AttributeTransformer

public interface AttributeTransformer
Abstract attribute transformer. Transforms the dataset.

Author:
Mark Hall (mhall@cs.waikato.ac.nz)

Method Index

 o convertInstance(Instance)
Transforms an instance in the format of the original data to the transformed space
 o transformedData()
Returns the transformed data
 o transformedHeader()
Returns just the header for the transformed data (ie.

Methods

 o transformedHeader
 public abstract Instances transformedHeader() throws Exception
Returns just the header for the transformed data (ie. an empty set of instances. This is so that AttributeSelection can determine the structure of the transformed data without actually having to get all the transformed data through getTransformedData().

Returns:
the header of the transformed data.
Throws: Exception
if the header of the transformed data can't be determined.
 o transformedData
 public abstract Instances transformedData() throws Exception
Returns the transformed data

Returns:
A set of instances representing the transformed data
Throws: Exception
if the attribute could not be evaluated
 o convertInstance
 public abstract Instance convertInstance(Instance instance) throws Exception
Transforms an instance in the format of the original data to the transformed space

Returns:
a transformed instance
Throws: Exception
if the instance could not be transformed

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home