接口 AttributeTransformer

所有已知实现类:
LatentSemanticAnalysis, PrincipalComponents

public interface AttributeTransformer
Abstract attribute transformer. Transforms the dataset.
版本:
$Revision: 4613 $
作者:
Mark Hall (mhall@cs.waikato.ac.nz)
  • 方法详细资料

    • transformedHeader

      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().
      返回:
      the header of the transformed data.
      抛出:
      Exception - if the header of the transformed data can't be determined.
    • transformedData

      Instances transformedData(Instances data) throws Exception
      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

      Instance convertInstance(Instance instance) throws Exception
      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