eunoia.VennFit¶
- class eunoia.VennFit(shapes: tuple[~eunoia._models.S, ...], original_values: dict[str, float], fitted_values: dict[str, float], residuals: dict[str, float], region_error: dict[str, float], diag_error: float, stress: float, loss: float, container: ~eunoia._models.Container | None = None, plot_data: dict[str, ~typing.Any] = <factory>)[source]¶
Result of laying out a (non-proportional) Venn diagram.
Shares
EulerFit’s structure andplot()method, but the diagram is topological: every set intersection is drawn regardless of its area, so the area-proportional error metrics are not meaningful and are left at zero.fitted_valuesholds the geometric area of each region;original_valuesis empty (a Venn layout has no requested areas).- __init__(shapes: tuple[~eunoia._models.S, ...], original_values: dict[str, float], fitted_values: dict[str, float], residuals: dict[str, float], region_error: dict[str, float], diag_error: float, stress: float, loss: float, container: ~eunoia._models.Container | None = None, plot_data: dict[str, ~typing.Any] = <factory>) None[source]¶
Methods
__init__(shapes, ...], original_values, ...)plot(*[, ax, colors, fills, edges, labels, ...])Render the fitted diagram with matplotlib.
Attributes
containershapesoriginal_valuesfitted_valuesresidualsregion_errordiag_errorstresslossplot_data