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

Uploaded Source

Built Distribution

fca_algorithms-0.1.0-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fca-algorithms-0.1.0.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 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.0.tar.gz
Algorithm Hash digest
SHA256 db1fadaeb50de0cccd595750dda081c73f031a4c59cdec3dee6a9206afc86e7e
MD5 756c7aeefdc7b4594243907e81e1d3aa
BLAKE2b-256 4f00d7b2660f447243f4b86e4538a4490cae9de819210a2a0e33fdb48cb0a73b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fca_algorithms-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 23.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3741b6d5858f0997a6ec10c23299f664511251770563d2f6dafd5cc11587cc5
MD5 bf004a7f637b8f16a18153349a40fdee
BLAKE2b-256 4eba402e8715e275d2944881b8c58bfc6c629c19131f09c82416159b62c9ec3f

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