Skip to main content

FCA basic algorithms

Project description

FCA utils

Module for FCA basics such as retrieving concepts, drawing a hasse diagram, etc

Getting formal concepts

from fca.api_models import Context

c = Context(O, A, I)
concepts = c.get_concepts(c)

Getting association rules

from fca.api_models import Context

c = Context(O, A, I)
c.solver.get_association_rules(c, min_support=0.4, min_confidence=1)

Drawing hasse diagram

from fca.plot.plot import plot_from_hasse
from fca.api_models import Context


c = Context(O, A, I)
hasse_lattice, concepts = c.get_lattice(c)
plot_from_hasse(hasse_lattice, concepts)

CLI

To plot a hasse diagram from a context

fca_cli -c input.csv --show_hasse

The context is expected to be a csv with the following format

name attr1 attr2
obj1 x
obj2 x
obj3 x x
obj4

TODO

  • Make algorithms to be able to work with streams (big files)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fca-algorithms-0.1.1.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

fca_algorithms-0.1.1-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

Details for the file fca-algorithms-0.1.1.tar.gz.

File metadata

  • Download URL: fca-algorithms-0.1.1.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.8

File hashes

Hashes for fca-algorithms-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ad4d2223d09b7e461d26dbc65219f203258138c5bd6a8f6347edbe781cedf223
MD5 80461f976f14bc528aea6c982c103f03
BLAKE2b-256 853b9c7896d601d7baea49c7382e118004f95903e730aad4efe2993e909f8c7a

See more details on using hashes here.

File details

Details for the file fca_algorithms-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: fca_algorithms-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 23.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.8

File hashes

Hashes for fca_algorithms-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa57889d1484831b8749748c5093881b0caf9b1d7eea0f66a0947a08abd23cf9
MD5 cb956d5d3494e57ea39251366c4be11f
BLAKE2b-256 96702f171668e536b5598bbdd7c7877eb4bba1f12511683ace336dfdf4065aa3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page