
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
This is a module providing a set of commonly used algorithms in FCA, RCA, and some of its variants. Its general intention is to provide an easy to use API so that it's easier to create other programs using these algorithms. The main algorithm that calculates formal concepts is inclose
, and, in this version, it is implemented in C++. Considering this, the API is expected to behave somewhat acceptably.
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 |
fca_cli -c input.csv --show_hasse --output_dir path/to/folder/
Will create two files, one representing the hasse graph, the other one with a concept for each line. The line is the index in the hasse graph.
To plot the hasse diagrams of the contexts 1 and 2 after applying RCA with exists
fca_cli -k context_1.csv context_2.csv -r relation_1_2.csv relation_2_1.csv --show_hasse
to specify operator
fca_cli -k context_1.csv context_2.csv -r relation_1_2.csv relation_2_1.csv --show_hasse -o forall
Module for FCA basics such as retrieving concepts, drawing a hasse diagram, etc
from fca.api_models import Context, Concept
c = Context(O : List[str], A : List[str], I : List[List[int]])
concepts = c.get_concepts(c) List[Concept]
from fca.api_models import IncLattice
l = IncLattice(attributes=['a', 'b', 'c', 'd'])
l.add_intent('o1', [0, 2]) # numbers are the indices of the attributes
l.add_intent('o2', [1, 2])
.
.
.
from fca.api_models import IncLattice
l = IncLattice()
l.add_pair('o1', 'a')
l.add_pair('o2', 'b')
l.add_pair('o2', 'a')
.
.
.
from fca.api_models import Context
c = Context(O, A, I)
c.get_association_rules(min_support=0.4, min_confidence=1)
from fca.plot.plot import plot_from_hasse
from fca.api_models import Context
k = Context(O, A, I)
k.get_lattice().plot()
# plot receives a number of kwargs such as print_latex=True|False
l = IncLattice(attributes=['a', 'b', 'c', 'd'])
l.add_intent('o1', [0, 2]) # numbers are the indices of the attributes
l.add_intent('o2', [1, 2])
.
.
.
l.plot()
FAQs
FCA basic algorithms
We found that fca-algorithms demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.