To work with weights, use methods of the type DM_RuleSettings
or of the type DM_LogicalDataSpec.
DM_RuleSettings
- To get the name of the field that contains cost information for
the items in association rules tasks or sequence rules tasks, use
the method DM_getWeightField.
- To set the name of the field that contains cost information for
the items in association rules tasks or sequence rules tasks, use
the method DM_setWeightField.
DM_LogicalDataSpec
- To get the number of cost information settings in association
rules tasks or sequence rules tasks, use the method DM_getNumCost.
- To remove the weight whose key attribute has the given value in
association rules tasks or sequence rules tasks, use the method DM_remCost.