API Reference

Context

context.FormalContext([data, object_names, ...])

A class used to represent Formal Context object from FCA theory.

context.BinTable([data])

A class to encapsulate the work with binary tables in an efficient way

context.converters

This module provides a number of functions to read/write FormalContext object from/to a file

MVContext

mvcontext.MVContext([data, pattern_types, ...])

A class used to represent Many Valued Context object from FCA theory.

mvcontext.pattern_structure

This module contains classes of basic Pattern Structures which allow FCA to work with data of any complex description

Lattice

lattice.ConceptLattice(concepts, **kwargs)

A class used to represent Concept Lattice object from FCA theory

lattice.formal_concept

This module provides a class FormalConcept which represents the Formal Concept object from FCA theory

lattice.pattern_concept

This module provides a class PatternConcept which represents the Pattern Concept object from FCA theory

lattice.concept_measures

This module provides a set of functions to compute interestingness measures of concepts

Visualizer

visualizer.LineVizNx([mover, nodelist, ...])

A class to draw line visualisations via Networkx package

visualizer.Mover([pos, direction])

Class to make node moving in Hasse Diagrams easier

Visualizers to be deleted in the future

visualizer.ConceptLatticeVisualizer([...])

A class for visualizing the ConceptLattice .

visualizer.POSetVisualizer([poset, ...])

A class to visualize POSet as graph .

Machine Learning

ml.decision_lattice

This module provides 'DecisionLatticeClassifier' and 'DecisionLatticeRegressor' classes to use 'ConceptLattice' in a DecisionTree-like manner

Algorithms

algorithms.concept_construction

This module contains functions that take a FormalContext (or MVContext) and return a set of formal (or pattern) concepts.

algorithms.lattice_construction

This module contains a number of function which take a set of formal (or pattern) concepts and return its subconcepts_dict i.e. the order of given concepts in the form {parent_concept_index: child_concept_index}.

POSet

poset.POSet([elements, leq_func, use_cache, ...])

A class to represent a Partially Ordered Set (POSet)

poset.lattice

The module provides a lattice object from Order theory and its upper/lower semilattices.

poset.tree

The module provides BinaryTree class which represents a binary tree as a partial case of a poset.

Utils

utils.utils

This module provides a set of functions which can be useful in any subpackage of fcapy package