sorbetto.flavor.ranking_flavor module

class sorbetto.flavor.ranking_flavor.RankingFlavor(entity: Entity, entity_list: list[Entity], name: str = 'Unnamed Ranking Flavor', colormap: Any = None)[source]

Bases: AbstractNumericFlavor

For a given rank \(r\), the Entity Flavor is the mathematical function that gives, to any Importance \(I\) (that is, some application-specific preferences), the entity ranked \(r\)-th according to the ordering of performances induced by the Ranking Score \(R_I\) corresponding to the importance \(I\).

property entity: Entity
property entity_list: list[Entity]
getDefaultColormap()[source]
getLowerBound()[source]
getUpperBound()[source]
property id_entity: int
property nb_entities: int
property performances: FiniteSetOfTwoClassClassificationPerformances