pyfca
https://github.com/pyfca/pyfca
Python Formal Concept Analysis (FCA).
The purpose is to collect algoritms for FCA.
Algorithms
So far:
lattice construction:
AddIntent
implications basis:
Koenig
lattice drawing:
create lattice diagram and output in
svg
tkinter
Plan
Create a basic lattice data structure:
Merge existing sources available online.
Lattice construction:
FCbO
InClose2
…
Implications basis:
Closure
LinClosure
Wild’s Closure
…
Usage
It can be used to create a concept lattice and to draw it either using tkinter() or svg().
import pyfca
fca = pyfca.Lattice([{1,2},{2},{1,3}])
diagram = pyfca.LatticeDiagram(fca,4*297,4*210)
diagram.svg().saveas('tmp.svg')
import cairosvg
cairosvg.svg2png(url="file:///<path to tmp.svg>", write_to='tmp.png')
The AddIntent algorithm is from the paper:
AddIntent: A New Incremental Algorithm for Constructing Concept Lattices
The lattice drawing algorithm is from:
Implications
This uses the python int as a bit field to store the FCA context.
See this blog for more.
Metadata
Release files for pyfca 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyfca-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for pyfca-0.3.3-py3-none-any.whl |
Release files / pyfca-0.3.3-py3-none-any.whl
| Download URL | pyfca-0.3.3-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0e3b17695b2c1c481e8d9d42b9ec94faec1347f3303f337374d30b3b34394d0
|
|
BLAKE2b-256 checksum How to use checksums |
174c4b56011026cfaea21389be9776ca9d1b3cb03f11bf41c2527817d0f9c0d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Security for pyfca 0.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.