Table of Contents


Filter-Compl (Filter-Complement) is a utility for filtering certain objects/individuals from an .rcf file. AssRuleX can generate rules, and with the -examples option one can produce the positive and negative examples. Idea: take the complement of the positive examples and work with the rest. The output of this software is another .rcf file that contains the complements.


Usage: ./  <dataset.rcf>  <individuals.txt>

dataset.rcf                        Your dataset in RCF format
individuals.txt                    File containing the individuals whose complement
                                   you want to filter from dataset.rcf

Well-shaped individuals file contents: [list of objects separated with ","]
Example:                               [o1,o5,o6]


Let's take the complement of the 1st, 3rd, and 5th rows of laszlo.rcf. Contents of sample/filter_compl/filter.txt:



./ sample/laszlo.rcf sample/filter_compl/filter.txt


# This file contains the complements of the following individuals:
# [o1, o3, o5]

[Relational Context]
Default Name
[Binary Relation]
o2 | o4
a | b | c | d | e
1 0 1 0 0
0 1 1 0 1
[END Relational Context]
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License