commonpower.extensions.cost_allocation.CostAllocator

class CostAllocator(simulation_result: ShapleySimulationResult)[source]

Bases: object

Cost allocator based directly on Shapley values of imperfect knowledge system.

Cost allocator.

Parameters:

simulation_result (ShapleySimulationResult) – Simulation result from ShapleySimulator.

Methods

allocate

The cost for each player is her Shapley value.

allocate(**kwargs) list[float][source]

The cost for each player is her Shapley value.

Returns:

list[float] – Cost allocation.