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 base_models import Context
from get_lattice import Inclose

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

Getting association rules

from base_models import Context
from get_lattice import Inclose

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

Drawing hasse diagram

from get_lattice import Inclose
from plot.plot import plot_from_hasse
from base_models import Context


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

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.0.2.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

fca_algorithms-0.0.2-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fca-algorithms-0.0.2.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for fca-algorithms-0.0.2.tar.gz
Algorithm Hash digest
SHA256 88a7b3d6aa39504f1139cfd8e1759d393146876f1313ef9ac8b6da1dc828eacc
MD5 257527955a19676a9336f653d2787f5b
BLAKE2b-256 3e1d57295ffb1392300f93b021d762a6daba088a5f8a8b7953e94e1a98a8a750

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fca_algorithms-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for fca_algorithms-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9b62cee07b2e303caa938ff781ebe3692c6bb2d02bc41878a0a61db8beffdee6
MD5 c3c6cb4d380f909ccbf46c3af720d9c4
BLAKE2b-256 81edf0a2e2d08f2a8716b339d789ecb121932f638942e63a19311eac9b0ab7c3

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