接口 AttributeTransformer
- 所有已知实现类:
LatentSemanticAnalysis
,PrincipalComponents
public interface AttributeTransformer
Abstract attribute transformer. Transforms the dataset.
- 版本:
- $Revision: 4613 $
- 作者:
- Mark Hall (mhall@cs.waikato.ac.nz)
-
方法概要
修饰符和类型方法说明convertInstance
(Instance instance) Transforms an instance in the format of the original data to the transformed spacetransformedData
(Instances data) Transform the supplied data set (assumed to be the same format as the training data)Returns just the header for the transformed data (ie.
-
方法详细资料
-
transformedHeader
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().- 返回:
- the header of the transformed data.
- 抛出:
Exception
- if the header of the transformed data can't be determined.
-
transformedData
Transform the supplied data set (assumed to be the same format as the training data)- 返回:
- A set of instances representing the transformed data
- 抛出:
Exception
- if the attribute could not be evaluated
-
convertInstance
Transforms an instance in the format of the original data to the transformed space- 返回:
- a transformed instance
- 抛出:
Exception
- if the instance could not be transformed
-