Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

panks/FCA-Python

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FCA-Python

Formal concept analysis lattice generation and query in Python.

Dependencies

Usage

For the following context

  | 1   |   2   |   3   |   4   |
--|-----|-------|-------|-------|--
a | 1   |   0   |   1   |   0   |
--|-----|-------|-------|-------|--
b | 1   |   1   |   0   |   1   |
--|-----|-------|-------|-------|--
c | 1   |   0   |   1   |   0   |
--|-----|-------|-------|-------|--
d | 0   |   1   |   0   |   1   |
--|-----|-------|-------|-------|--

First input to the script would be the objects:

a b c d

Second would be the attributes:

1 2 3 4 5

and third input would be the matrix, in row major order. One row per line:

1 0 1 0
1 1 0 1
1 0 1 0
0 1 0 1

A file named lattice.png would be generated containing the representation of the concept lattice. And you can query the concepts i.e. extent for a given intent or intent for a given extent in terminal.

Authors

About

Formal concept analysis lattice generation and query in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.