Package

weka.filters.unsupervised.instance

Synopsis

Filters instances according to a user-specified expression.

Grammar:

boolexpr_list ::= boolexpr_list boolexpr_part | boolexpr_part;

boolexpr_part ::= boolexpr:e {: parser.setResult(e); :} ;

boolexpr ::=    BOOLEAN 
              | true
              | false
              | expr < expr
              | expr <= expr
              | expr > expr
              | expr >= expr
              | expr = expr
              | ( boolexpr )
              | not boolexpr
              | boolexpr and boolexpr
              | boolexpr or boolexpr
              | ATTRIBUTE is STRING
              ;

expr      ::=   NUMBER
              | ATTRIBUTE
              | ( expr )
              | opexpr
              | funcexpr
              ;

opexpr    ::=   expr + expr
              | expr - expr
              | expr * expr
              | expr / expr
              ;

funcexpr ::=    abs ( expr )
              | sqrt ( expr )
              | log ( expr )
              | exp ( expr )
              | sin ( expr )
              | cos ( expr )
              | tan ( expr )
              | rint ( expr )
              | floor ( expr )
              | pow ( expr for base , expr for exponent )
              | ceil ( expr )
              ;

Notes:

Examples:

Options

The table below describes the options available for SubsetByExpression.

Option

Description

debug

Turns on output of debugging information.

expression

The expression to used for filtering the dataset.

Capabilities

The table below describes the capabilites of SubsetByExpression.

Capability

Supported

Class

Date class, Numeric class, Missing class values, Nominal class, No class, Binary class

Attributes

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

Min # of instances

0