Shapley
shapley
is a fast shapley value calculator written in rust.
Quick Start
Install
Usage
use Shapley;
let shapley = new;
println!; // 10
println!; // 20
shapley
is a fast shapley value calculator written in rust.
cargo add shapley
use shapley::Shapley;
let shapley = Shapley::new(players: [1, 2], coalition_worth: {
(): 0,
(1,): 10,
(2,): 20,
(1, 2): 30,
});
println!("{}", shapley.shapley_value(1)); // 10
println!("{}", shapley.shapley_value(2)); // 20