sorbetto.core package
- class sorbetto.core.AbstractHomogeneousBinaryRelationOnPerformances(name: str | None = None)[source]
Bases:
ABC- property name: str | None
- class sorbetto.core.Entity(performance: TwoClassClassificationPerformance, name: str = 'ε', color: Any = None)[source]
Bases:
object- property color: str | tuple[float] | list[float]
- property name: str
- property performance: TwoClassClassificationPerformance
The result of the evaluation of the entity, that is its performance.
- Returns:
The entity’s performance
- Return type:
- class sorbetto.core.Importance(itn: float | int, ifp: float | int, ifn: float | int, itp: float | int, name: str = 'I')[source]
Bases:
objectThis class encodes some application-specific preferences. Currently, it is a random variable, called importance, that gives a positive value to each element of the sample space: tn (for true negative), fp (for false positive), fn (for false negative), and tp (for true positive).
See Piérard et al. [17] for more information on this topic.
- property ifn: float
- property ifp: float
- property itn: float
- property itp: float
- property name: str
- tol = 1e-10
- class sorbetto.core.PerformanceOrderingInducedByOneScore(score, name=None)[source]
Bases:
AbstractHomogeneousBinaryRelationOnPerformances- getRelationBetter() AbstractHomogeneousBinaryRelationOnPerformances[source]
- getRelationBetterOrEquivalent() AbstractHomogeneousBinaryRelationOnPerformances[source]
- getRelationComparable() AbstractHomogeneousBinaryRelationOnPerformances[source]
- getRelationEquivalent() AbstractHomogeneousBinaryRelationOnPerformances[source]
- getRelationIncomparable() AbstractHomogeneousBinaryRelationOnPerformances[source]
- getRelationWorse() AbstractHomogeneousBinaryRelationOnPerformances[source]
- getRelationWorseOrEquivalent() AbstractHomogeneousBinaryRelationOnPerformances[source]
- property score