Giter Club home page Giter Club logo

Comments (1)

jolars avatar jolars commented on June 2, 2024 1

There is not in general an exact solution to 4-set diagrams. eulerr uses numerical optimization to find a good approximation in these cases. Even then, the objective is non-convex so there are multiple local minimi that one might get stuck in.

Repeatedly running the above code occasionally results in a plot with the correct sections:

Sure, but that doesn't mean that the loss is lower for this fit. I am working on adding multiple loss metrics, some of which will penalize missing intersections more, however.

Are there sets for which the overlaps are impossible to capture in a eulerr plot?

Yes, absolutely. The package does not guarantee that the fit is exact.

If so is there a way to know when this would be the case without manually checking overlaps?

I don't know of any analytical way, although it of course generally gets harder the more and larger the intersections between many sets are.

Could there be some way to run euler + plot iteratively, checking overlaps at each step by summing the plot labels and plotting only when the correct number of observations would be shown? A clue for the first plot is the overlapping colors are not as expected (white though overlapping).

There is no guarantee that there is an exact solution, so this would guarantee anything. But it would be straightforward to do something like this to increase the likelihood of finding the global minimum. You can also try using the more powerful, but slower, optimizer through extra.args.

from eulerr.

Related Issues (20)

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.