GitXplorerGitXplorer
l

fca-viz

public
0 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
94ec8de5cf6f98897f787ae67699dae70a5c1a30

Minor space formatting in README

llisjin committed 8 years ago
Unverified
2a27dd4a216d5a349c5207d5f0bf4bcb00a5a74f

Create README.md

llisjin committed 8 years ago
Unverified
526843be79755bbe1b6d9e3a7850715a851ecb73

Create LICENSE.md

llisjin committed 8 years ago
Unverified
ba9d1ea0c8102a50bf112a66370642c4e1f8802b

Small corrections

llisjin committed 8 years ago
Unverified
7295a20bc14bbe4c6a31a431bcef3bc6c1af46ca

Initial commit

llisjin committed 8 years ago

README

The README file for this repository.

fca-viz

Tool for formal concept analysis visualization

Setup

FCA

  1. Create an Xcode project and copy the contents of FCA_viz (concept.cpp, concept.h, set_ops.h)
  • Within the same directory, open Terminal and run the following two lines:
$ touch input.txt     # Contains input dataset
$ touch com.txt       # File of commands (may be left blank)
  1. Return to the root directory and open script.sh
  • On line 1, change FCA_XCODE to the absolute path of the Xcode project from the previous step
  • On line 2, change VIZ to the location of the viz folder within the root directory

Visualization

  1. To set up, cd into the viz directory and run:
$ bash setup_mac.sh    # Installs necessary packages

Usage

Simply run:

$ bash script.sh

This will lead you through the following steps:

  1. Input file: Insert a Boolean dataset of m lines and n characters per line
  • A '1' denotes that the object on that line has the attribute at that column, '0' means it does not:
1010    # Object 1 has attributes {1,3}
0110    # Object 2 has attributes {2,3}
1101    # Object 3 has attributes {1,2,4}
  1. Commands file (optional): Fill with set operations to compute on the dataset
  • Indicate a single command on each line in the format of <cmd> <e_0> <e_1> ... <e_n>
    • <cmd> is a character indicating the type of set operation:
      • c: closure
      • b: boundary
      • i: interior
      • d: derived set
      • s: isolated point
    • <e_i> is member i of the extent set parameter
  • Example:
c 1 2 3   # Find closure given extent set {1,2,3}
s 4 5     # Find the isolated point given extent set {4,5}
  1. Run program: Click the 'run' button when the Xcode project appears to generate output .txt files
  • The results of any set operations will be seen in the Xcode output window
  1. View output concept lattice
  • An image of the resulting concept lattice will appear
  • This is saved in the viz directory as output.png