Filter-Compl
Overview
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.
Synopsis
Usage: ./pre04_filterCompl.sh <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]
Example
Let's take the complement of the 1st, 3rd, and 5th rows of laszlo.rcf. Contents of sample/filter_compl/filter.txt:
[o1,o3,o5]
Command:
./pre04_filterCompl.sh sample/laszlo.rcf sample/filter_compl/filter.txt
Output:
# This file contains the complements of the following individuals:
# [o1, o3, o5]
[Relational Context]
Default Name
[Binary Relation]
Name_of_dataset
o2 | o4
a | b | c | d | e
1 0 1 0 0
0 1 1 0 1
[END Relational Context]
page revision: 3, last edited: 06 Dec 2009 23:17





