|  | ## Weight by User Specification

#### Synopsis

This operator defines the weights for all features based on a list of regular expressions for the feature names which can be used to set a specified weight to features with a name fulfilling these expressions.

#### Description

This operator is able to create feature weights based on regular expressions defined for the feature names. For example, the user can map all features with a name starting with "Att" to the weight 0.5 by using the regular expression "Att.*". Alternatively, the specified weight may be considered as weight sum for all attributes matching the corresponding regular expression and may be equally distributed among these attributes. All other feature weights whose feature names are not covered by one of the regular expressions are set to the default weight.

Please note that the weights defined in the regular expression list are set in the order as they are defined in the list, i.e. weights can overwrite weights set before.

#### Input

- example set: expects: ExampleSet

#### Output

- weights:
- example set:

#### Parameters

- normalize weights: Activates the normalization of all weights.
- name regex to weights: This list maps different regular expressions for the feature names to the specified weights.
- distribute weights: If enabled, the weights specified in the list are split and distributed equally among the attributes matching the corresponding regular expressions.
- default weight: This default weight is used for all features not covered by any of the regular expressions given in the list.

#### ExampleProcess