A program to recognize and reward our most engaged community members
ideale wrote:1. I want to know how can I selectt the attributes that I want to involve in the training. My file is an *.ARFF file. I have 20 attributes (fields) but I want to use only some of them.
ideale wrote:2. Where to indicate the predited attribute ?
ideale wrote:3. Can I choose more than one predicted attribute ?
ideale wrote:Thank you
Tobias Malbrecht wrote:Use the [tt]AttributeFilter[/tt] operator which allows to filter attributes given their types or their names (specified as regular expression).
Tobias Malbrecht wrote:Using the [tt]ChangeAttributeRole[/tt] operator you can mark an attribute as label which is the attribute which should be predicted from the other (regular) attributes.
I wat to use only the 4 first attributes (learner, group, sexe, age)I used the attributeFilterI wrote in the condition_class parameter the following expression :attribute='student' ANDAND attribute='group' ANDAND attribute='sexe' ANDAND attribute='age'
<operator name="FeatureNameFilter" class="FeatureNameFilter"> <parameter key="except_features_with_name" value="student||group||sexe||age"/> <parameter key="skip_features_with_name" value=".*"/> </operator>
I wat sexe as the predicted parameter, so I used the ChangeAttributeRole.I wrote the name parameter the value :sexe
<operator name="ChangeAttributeRole" class="ChangeAttributeRole"> <parameter key="name" value="sexe"/> <parameter key="target_role" value="label"/> </operator>