Hitachi Vantara Pentaho Community Wiki
Child pages
  • RenameAttribute
Skip to end of metadata
Go to start of metadata

Package

weka.filters.unsupervised.attribute

Synopsis

This filter is used for renaming attribute names.
Regular expressions can be used in the matching and replacing.
See Javadoc of java.util.regex.Pattern class for more information: http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html

Options

The table below describes the options available for RenameAttribute.

Option

Description

attributeIndices

Specify range of attributes to act on; this is a comma separated list of attribute indices, with "first" and "last" valid values; specify an inclusive range with "-"; eg: "first-3,5,6-10,last".

debug

Turns on output of debugging information.

find

The regular expression that the attribute names must match.

invertSelection

If set to true, the selection will be inverted; eg: the attribute indices '2-4' then mean everything apart from '2-4'.

replace

The regular expression to use for replacing the matching attribute names with.

replaceAll

If set to true, then all occurrences of the match will be replaced; otherwise only the first.

Capabilities

The table below describes the capabilities of RenameAttribute.

Capability

Supported

Class

Numeric class, Relational class, No class, Empty nominal class, String class, Missing class values, Unary class, Binary class, Date class, Nominal class

Attributes

Date attributes, Missing values, String attributes, Numeric attributes, Nominal attributes, Empty nominal attributes, Unary attributes, Binary attributes, Relational attributes

Min # of instances

0

  • No labels