Giter VIP home page Giter VIP logo

Comments (4)

xflr6 avatar xflr6 commented on July 19, 2024

Thanks for the feedback (happy if this is useful to anyone).

lattice reduction

I think I am not familiar. Do you mean this method?

https://github.com/simplerick/nn_fca/blob/master/local/fca.py#L244-L249

Not sure if it uses the stability currently:

https://github.com/simplerick/nn_fca/blob/master/local/fca.py#L198-L203

Would this be for removing (omitting) arbitrary nodes from the graph when rendering for visualization or rather for keeping the reduced graph structure for further usage? Both Context and Lattice instances are treated as immutable in this library (and they point to each other); so the latter might require introducing a new type for a mutable graph detached from a context/lattice, but maybe there are other options.

from concepts.

jboynyc avatar jboynyc commented on July 19, 2024

I must admit I'm a novice, all I know about reduction/clarification is from this unit of the Coursera course on FCA. The basic idea, as I understand it, is that you set a cutoff point for stability, support or probability of concepts and eliminate them from the line graph to make it less noisy.

I'm mainly interested in this for the purposes of visualizing overall lattice structure, so mutating the data structures probably wouldn't be necessary.

from concepts.

xflr6 avatar xflr6 commented on July 19, 2024

Thanks for the link. IIUC both clarification and reduction are applied to the context (rather than its lattice) creating a new clarified/reduced context. So the reduced_lattice()-method mentioned above looks like a different kind of operation.

Adding e.g. Context.clarified() (or Definition.clarified()) seems straightforward (not sure if you have identical objects/attributes); I suspect .clarified(reduced=True) might require to dig in a bit into possible algorithms.

When it comes to removing nodes from the lattice graph (only for visualization or creating a new graph), I am wondering about the exact semantics: Say we have A < {B, C} < D, then removing B means removing the node and its edges (A, B) and (B, D). Removing C afterwards would additionally involve adding an edge (A, D) to keep the former transitive relations, right? Not sure if reduced_lattice() does that.

from concepts.

jboynyc avatar jboynyc commented on July 19, 2024

I think I need to do some more reading in this area. Since my original question was based on a misunderstanding, I'm going to close this issue. I'll come back to it when I have a better understanding.

from concepts.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.