From c3cf37f930602e7d4716321b5d0c70869cc9e1e9 Mon Sep 17 00:00:00 2001 From: Natsu Ozawa Date: Fri, 29 Mar 2024 16:13:09 +0000 Subject: [PATCH] Update docs --- docs/getting_started.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/getting_started.rst b/docs/getting_started.rst index 87294e0..300c521 100644 --- a/docs/getting_started.rst +++ b/docs/getting_started.rst @@ -40,6 +40,7 @@ Quick Start Example from socialchoicekit.deterministic_scoring import Plurality, SocialWelfare from socialchoicekit.elicitation_voting import KARV from socialchoicekit.elicitation_utils import ValuationProfileElicitor, SynchronousStdInElicitor + from socialchoicekit.distortion import distortion url = 'https://www.preflib.org/static/data/agh/00009-00000001.soc' @@ -70,7 +71,7 @@ Quick Start Example plurality_winner = plurality.scf(profile) print(plurality.score(profile)) print("Plurality winner: ", plurality_winner) - print("Distortion: ", optimal_welfare / social_welfare[plurality_winner - 1]) + print("Distortion: ", distortion(plurality_winner, valuation_profile)) # 3) Elicitation (query)-based voting print("----- 3) Elicitation-based voting -----") @@ -80,7 +81,7 @@ Quick Start Example karv_winner = karv.scf(profile, valuation_profile_elicitor) # karv_winner = karv.scf(profile, stdin_elicitor) print("KARV winner: ", karv_winner) - print("Distortion: ", optimal_welfare / social_welfare[karv_winner - 1]) + print("Distortion: ", distortion(karv_winner, valuation_profile)) User Guide ----------