From 6358a855641b011c1337d60f8668d1cec2419417 Mon Sep 17 00:00:00 2001 From: mmorge <maxime.morge@univ-lyon1.fr> Date: Fri, 2 May 2025 09:44:45 +0200 Subject: [PATCH] PyGAAMAS: Add Qwen3 strategy in the dictator game --- figures/dictator/dictator_violin.svg | 204 +++++++++++++++------------ src/dictator/dictator.py | 2 +- src/dictator/dictator_draw_violin.py | 3 +- 3 files changed, 120 insertions(+), 89 deletions(-) diff --git a/figures/dictator/dictator_violin.svg b/figures/dictator/dictator_violin.svg index 5d05687..dc8a2ec 100644 --- a/figures/dictator/dictator_violin.svg +++ b/figures/dictator/dictator_violin.svg @@ -6,7 +6,7 @@ <rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <cc:Work> <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/> - <dc:date>2025-05-02T09:23:34.959099</dc:date> + <dc:date>2025-05-02T09:40:34.701299</dc:date> <dc:format>image/svg+xml</dc:format> <dc:creator> <cc:Agent> @@ -39,7 +39,7 @@ z </g> <g id="FillBetweenPolyCollection_1"> <defs> - <path id="m59335e67d6" d="M 154.38123 -203.558343 + <path id="m0705853575" d="M 154.38123 -203.558343 L 145.31877 -203.558343 L 144.282608 -204.102054 L 143.085595 -204.645764 @@ -244,13 +244,13 @@ L 154.38123 -203.558343 z " style="stroke: #1f1f1f; stroke-width: 1.25"/> </defs> - <g clip-path="url(#pe3dc3e38a7)"> - <use xlink:href="#m59335e67d6" x="0" y="432" style="fill: #8bbbee; stroke: #1f1f1f; stroke-width: 1.25"/> + <g clip-path="url(#p1ea6650acf)"> + <use xlink:href="#m0705853575" x="0" y="432" style="fill: #8bbbee; stroke: #1f1f1f; stroke-width: 1.25"/> </g> </g> <g id="FillBetweenPolyCollection_2"> <defs> - <path id="ma0a20f8d6b" d="M 233.895826 -118.843382 + <path id="m5569c8b2d1" d="M 233.895826 -118.843382 L 233.204174 -118.843382 L 233.120222 -120.426505 L 233.022289 -122.009629 @@ -455,13 +455,13 @@ L 233.895826 -118.843382 z " style="stroke: #1f1f1f; stroke-width: 1.25"/> </defs> - <g clip-path="url(#pe3dc3e38a7)"> - <use xlink:href="#ma0a20f8d6b" x="0" y="432" style="fill: #409884; stroke: #1f1f1f; stroke-width: 1.25"/> + <g clip-path="url(#p1ea6650acf)"> + <use xlink:href="#m5569c8b2d1" x="0" y="432" style="fill: #409884; stroke: #1f1f1f; stroke-width: 1.25"/> </g> </g> <g id="FillBetweenPolyCollection_3"> <defs> - <path id="m4e1176b7b9" d="M 319.337652 -171.939222 + <path id="mcd679add3f" d="M 319.337652 -171.939222 L 315.162348 -171.939222 L 314.601599 -174.465702 L 313.936 -176.992182 @@ -666,13 +666,13 @@ L 319.337652 -171.939222 z " style="stroke: #1f1f1f; stroke-width: 1.25"/> </defs> - <g clip-path="url(#pe3dc3e38a7)"> - <use xlink:href="#m4e1176b7b9" x="0" y="432" style="fill: #56947b; stroke: #1f1f1f; stroke-width: 1.25"/> + <g clip-path="url(#p1ea6650acf)"> + <use xlink:href="#mcd679add3f" x="0" y="432" style="fill: #56947b; stroke: #1f1f1f; stroke-width: 1.25"/> </g> </g> <g id="FillBetweenPolyCollection_4"> <defs> - <path id="m6d4a5f2863" d="M 405.487817 -195.383861 + <path id="m4761a5a7e7" d="M 405.487817 -195.383861 L 396.412183 -195.383861 L 394.89719 -196.764713 L 393.05517 -198.145564 @@ -877,8 +877,8 @@ L 405.487817 -195.383861 z " style="stroke: #1f1f1f; stroke-width: 1.25"/> </defs> - <g clip-path="url(#pe3dc3e38a7)"> - <use xlink:href="#m6d4a5f2863" x="0" y="432" style="fill: #e77759; stroke: #1f1f1f; stroke-width: 1.25"/> + <g clip-path="url(#p1ea6650acf)"> + <use xlink:href="#m4761a5a7e7" x="0" y="432" style="fill: #e77759; stroke: #1f1f1f; stroke-width: 1.25"/> </g> </g> <g id="FillBetweenPolyCollection_5"> @@ -1085,11 +1085,11 @@ L 570.492101 481.711006 L 570.052329 487.259449 L 569.690007 492.807891 z -" clip-path="url(#pe3dc3e38a7)" style="fill: #6b72da; stroke: #1f1f1f; stroke-width: 1.25"/> +" clip-path="url(#p1ea6650acf)" style="fill: #6b72da; stroke: #1f1f1f; stroke-width: 1.25"/> </g> <g id="FillBetweenPolyCollection_6"> <defs> - <path id="m378ebae51a" d="M 656.548664 -182.325319 + <path id="m00746b7477" d="M 656.548664 -182.325319 L 647.551336 -182.325319 L 646.078146 -184.641979 L 644.29192 -186.958639 @@ -1294,13 +1294,13 @@ L 656.548664 -182.325319 z " style="stroke: #1f1f1f; stroke-width: 1.25"/> </defs> - <g clip-path="url(#pe3dc3e38a7)"> - <use xlink:href="#m378ebae51a" x="0" y="432" style="fill: #a38cee; stroke: #1f1f1f; stroke-width: 1.25"/> + <g clip-path="url(#p1ea6650acf)"> + <use xlink:href="#m00746b7477" x="0" y="432" style="fill: #a38cee; stroke: #1f1f1f; stroke-width: 1.25"/> </g> </g> <g id="FillBetweenPolyCollection_7"> <defs> - <path id="m9c9a979f1b" d="M 740.283056 -198.301594 + <path id="mee2276d232" d="M 740.283056 -198.301594 L 731.216944 -198.301594 L 729.954143 -199.287502 L 728.457933 -200.273409 @@ -1505,20 +1505,20 @@ L 740.283056 -198.301594 z " style="stroke: #1f1f1f; stroke-width: 1.25"/> </defs> - <g clip-path="url(#pe3dc3e38a7)"> - <use xlink:href="#m9c9a979f1b" x="0" y="432" style="fill: #ad3c4f; stroke: #1f1f1f; stroke-width: 1.25"/> + <g clip-path="url(#p1ea6650acf)"> + <use xlink:href="#mee2276d232" x="0" y="432" style="fill: #ad3c4f; stroke: #1f1f1f; stroke-width: 1.25"/> </g> </g> <g id="matplotlib.axis_1"> <g id="xtick_1"> <g id="line2d_1"> <defs> - <path id="m95ffb86119" d="M 0 0 + <path id="mffefa5aca3" d="M 0 0 L 0 3.5 " style="stroke: #000000; stroke-width: 0.8"/> </defs> <g> - <use xlink:href="#m95ffb86119" x="149.85" y="384.48" style="stroke: #000000; stroke-width: 0.8"/> + <use xlink:href="#mffefa5aca3" x="149.85" y="384.48" style="stroke: #000000; stroke-width: 0.8"/> </g> </g> <g id="text_1"> @@ -1833,7 +1833,7 @@ z <g id="xtick_2"> <g id="line2d_2"> <g> - <use xlink:href="#m95ffb86119" x="233.55" y="384.48" style="stroke: #000000; stroke-width: 0.8"/> + <use xlink:href="#mffefa5aca3" x="233.55" y="384.48" style="stroke: #000000; stroke-width: 0.8"/> </g> </g> <g id="text_2"> @@ -1955,7 +1955,7 @@ z <g id="xtick_3"> <g id="line2d_3"> <g> - <use xlink:href="#m95ffb86119" x="317.25" y="384.48" style="stroke: #000000; stroke-width: 0.8"/> + <use xlink:href="#mffefa5aca3" x="317.25" y="384.48" style="stroke: #000000; stroke-width: 0.8"/> </g> </g> <g id="text_3"> @@ -2028,7 +2028,7 @@ z <g id="xtick_4"> <g id="line2d_4"> <g> - <use xlink:href="#m95ffb86119" x="400.95" y="384.48" style="stroke: #000000; stroke-width: 0.8"/> + <use xlink:href="#mffefa5aca3" x="400.95" y="384.48" style="stroke: #000000; stroke-width: 0.8"/> </g> </g> <g id="text_4"> @@ -2053,7 +2053,7 @@ z <g id="xtick_5"> <g id="line2d_5"> <g> - <use xlink:href="#m95ffb86119" x="484.65" y="384.48" style="stroke: #000000; stroke-width: 0.8"/> + <use xlink:href="#mffefa5aca3" x="484.65" y="384.48" style="stroke: #000000; stroke-width: 0.8"/> </g> </g> <g id="text_5"> @@ -2159,7 +2159,7 @@ z <g id="xtick_6"> <g id="line2d_6"> <g> - <use xlink:href="#m95ffb86119" x="568.35" y="384.48" style="stroke: #000000; stroke-width: 0.8"/> + <use xlink:href="#mffefa5aca3" x="568.35" y="384.48" style="stroke: #000000; stroke-width: 0.8"/> </g> </g> <g id="text_6"> @@ -2238,7 +2238,7 @@ z <g id="xtick_7"> <g id="line2d_7"> <g> - <use xlink:href="#m95ffb86119" x="652.05" y="384.48" style="stroke: #000000; stroke-width: 0.8"/> + <use xlink:href="#mffefa5aca3" x="652.05" y="384.48" style="stroke: #000000; stroke-width: 0.8"/> </g> </g> <g id="text_7"> @@ -2264,7 +2264,7 @@ z <g id="xtick_8"> <g id="line2d_8"> <g> - <use xlink:href="#m95ffb86119" x="735.75" y="384.48" style="stroke: #000000; stroke-width: 0.8"/> + <use xlink:href="#mffefa5aca3" x="735.75" y="384.48" style="stroke: #000000; stroke-width: 0.8"/> </g> </g> <g id="text_8"> @@ -2379,12 +2379,12 @@ z <g id="ytick_1"> <g id="line2d_9"> <defs> - <path id="mcf0942b770" d="M 0 0 + <path id="m2f4c9e3cac" d="M 0 0 L -3.5 0 " style="stroke: #000000; stroke-width: 0.8"/> </defs> <g> - <use xlink:href="#mcf0942b770" x="108" y="384.48" style="stroke: #000000; stroke-width: 0.8"/> + <use xlink:href="#m2f4c9e3cac" x="108" y="384.48" style="stroke: #000000; stroke-width: 0.8"/> </g> </g> <g id="text_10"> @@ -2397,7 +2397,7 @@ L -3.5 0 <g id="ytick_2"> <g id="line2d_10"> <g> - <use xlink:href="#mcf0942b770" x="108" y="317.952" style="stroke: #000000; stroke-width: 0.8"/> + <use xlink:href="#m2f4c9e3cac" x="108" y="317.952" style="stroke: #000000; stroke-width: 0.8"/> </g> </g> <g id="text_11"> @@ -2411,7 +2411,7 @@ L -3.5 0 <g id="ytick_3"> <g id="line2d_11"> <g> - <use xlink:href="#mcf0942b770" x="108" y="251.424" style="stroke: #000000; stroke-width: 0.8"/> + <use xlink:href="#m2f4c9e3cac" x="108" y="251.424" style="stroke: #000000; stroke-width: 0.8"/> </g> </g> <g id="text_12"> @@ -2425,7 +2425,7 @@ L -3.5 0 <g id="ytick_4"> <g id="line2d_12"> <g> - <use xlink:href="#mcf0942b770" x="108" y="184.896" style="stroke: #000000; stroke-width: 0.8"/> + <use xlink:href="#m2f4c9e3cac" x="108" y="184.896" style="stroke: #000000; stroke-width: 0.8"/> </g> </g> <g id="text_13"> @@ -2471,7 +2471,7 @@ z <g id="ytick_5"> <g id="line2d_13"> <g> - <use xlink:href="#mcf0942b770" x="108" y="118.368" style="stroke: #000000; stroke-width: 0.8"/> + <use xlink:href="#m2f4c9e3cac" x="108" y="118.368" style="stroke: #000000; stroke-width: 0.8"/> </g> </g> <g id="text_14"> @@ -2485,7 +2485,7 @@ z <g id="ytick_6"> <g id="line2d_14"> <g> - <use xlink:href="#mcf0942b770" x="108" y="51.84" style="stroke: #000000; stroke-width: 0.8"/> + <use xlink:href="#m2f4c9e3cac" x="108" y="51.84" style="stroke: #000000; stroke-width: 0.8"/> </g> </g> <g id="text_15"> @@ -2631,132 +2631,137 @@ z <g id="line2d_15"> <path d="M 116.383766 218.16 L 183.316234 218.16 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> </g> <g id="line2d_16"> <path d="M 116.383766 218.16 L 183.316234 218.16 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 3.125,1.25; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 3.125,1.25; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> </g> <g id="line2d_17"> <path d="M 116.383766 218.16 L 183.316234 218.16 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> </g> <g id="line2d_18"> <path d="M 200.176848 218.16 L 266.923152 218.16 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> </g> <g id="line2d_19"> <path d="M 200.176848 218.16 L 266.923152 218.16 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 3.125,1.25; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 3.125,1.25; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> </g> <g id="line2d_20"> <path d="M 203.553893 184.896 L 263.546107 184.896 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> </g> <g id="line2d_21"> <path d="M 290.661029 209.844 L 343.838971 209.844 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> </g> <g id="line2d_22"> <path d="M 283.787751 184.896 L 350.712249 184.896 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 3.125,1.25; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 3.125,1.25; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> </g> <g id="line2d_23"> <path d="M 294.990292 155.79 L 339.509708 155.79 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> </g> <g id="line2d_24"> <path d="M 367.506751 218.16 L 434.393249 218.16 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> </g> <g id="line2d_25"> <path d="M 367.506751 218.16 L 434.393249 218.16 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 3.125,1.25; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 3.125,1.25; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> </g> <g id="line2d_26"> <path d="M 367.506751 218.16 L 434.393249 218.16 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> </g> <g id="line2d_27"> <path d="M 451.17 184.896 L 518.13 184.896 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke: #1f1f1f; stroke-width: 1.25; stroke-linecap: square"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke: #1f1f1f; stroke-width: 1.25; stroke-linecap: square"/> </g> <g id="line2d_28"> <path d="M 536.187134 351.216 L 600.512866 351.216 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> </g> <g id="line2d_29"> <path d="M 535.072251 218.16 L 601.627749 218.16 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 3.125,1.25; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 3.125,1.25; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> </g> <g id="line2d_30"> <path d="M 535.072251 218.16 L 601.627749 218.16 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> </g> <g id="line2d_31"> <path d="M 618.631272 218.16 L 685.468728 218.16 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> </g> <g id="line2d_32"> <path d="M 618.631272 218.16 L 685.468728 218.16 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 3.125,1.25; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 3.125,1.25; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> </g> <g id="line2d_33"> <path d="M 618.631272 218.16 L 685.468728 218.16 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> </g> <g id="line2d_34"> <path d="M 702.303612 218.16 L 769.196388 218.16 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> </g> <g id="line2d_35"> <path d="M 702.303612 218.16 L 769.196388 218.16 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 3.125,1.25; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 3.125,1.25; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> </g> <g id="line2d_36"> <path d="M 702.303612 218.16 L 769.196388 218.16 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 1.5625,0.9375; stroke-dashoffset: 0; stroke: #1f1f1f; stroke-width: 1.25"/> </g> <g id="line2d_37"> <path d="M 108 151.632 L 777.6 151.632 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 7.4,3.2; stroke-dashoffset: 0; stroke: #7abaff; stroke-width: 2"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 7.4,3.2; stroke-dashoffset: 0; stroke: #7abaff; stroke-width: 2"/> </g> <g id="line2d_38"> <path d="M 108 218.16 L 777.6 218.16 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 7.4,3.2; stroke-dashoffset: 0; stroke: #32a68c; stroke-width: 2"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 7.4,3.2; stroke-dashoffset: 0; stroke: #32a68c; stroke-width: 2"/> </g> <g id="line2d_39"> <path d="M 108 218.16 L 777.6 218.16 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 7.4,3.2; stroke-dashoffset: 0; stroke: #ff6941; stroke-width: 2"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 7.4,3.2; stroke-dashoffset: 0; stroke: #ff6941; stroke-width: 2"/> </g> <g id="line2d_40"> <path d="M 108 218.16 L 777.6 218.16 -" clip-path="url(#pe3dc3e38a7)" style="fill: none; stroke-dasharray: 7.4,3.2; stroke-dashoffset: 0; stroke: #5862ed; stroke-width: 2"/> +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 7.4,3.2; stroke-dashoffset: 0; stroke: #5862ed; stroke-width: 2"/> + </g> + <g id="line2d_41"> + <path d="M 108 218.16 +L 777.6 218.16 +" clip-path="url(#p1ea6650acf)" style="fill: none; stroke-dasharray: 7.4,3.2; stroke-dashoffset: 0; stroke: #c02942; stroke-width: 2"/> </g> <g id="patch_3"> <path d="M 108 384.48 @@ -2912,24 +2917,24 @@ z <path d="M 115 379.48 L 332.7625 379.48 Q 334.7625 379.48 334.7625 377.48 -L 334.7625 319.7675 -Q 334.7625 317.7675 332.7625 317.7675 -L 115 317.7675 -Q 113 317.7675 113 319.7675 +L 334.7625 305.089375 +Q 334.7625 303.089375 332.7625 303.089375 +L 115 303.089375 +Q 113 303.089375 113 305.089375 L 113 377.48 Q 113 379.48 115 379.48 z " style="fill: #ffffff; opacity: 0.8; stroke: #cccccc; stroke-linejoin: miter"/> </g> - <g id="line2d_41"> - <path d="M 117 325.865937 -L 127 325.865937 -L 137 325.865937 + <g id="line2d_42"> + <path d="M 117 311.187813 +L 127 311.187813 +L 137 311.187813 " style="fill: none; stroke-dasharray: 7.4,3.2; stroke-dashoffset: 0; stroke: #7abaff; stroke-width: 2"/> </g> <g id="text_18"> <!-- gpt-4.5-preview-2025-02-27 strategy --> - <g transform="translate(145 329.365937) scale(0.1 -0.1)"> + <g transform="translate(145 314.687813) scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-67"/> <use xlink:href="#DejaVuSans-70" transform="translate(63.476562 0)"/> <use xlink:href="#DejaVuSans-74" transform="translate(126.953125 0)"/> @@ -2967,15 +2972,15 @@ L 137 325.865937 <use xlink:href="#DejaVuSans-79" transform="translate(1798.433594 0)"/> </g> </g> - <g id="line2d_42"> - <path d="M 117 340.544062 -L 127 340.544062 -L 137 340.544062 + <g id="line2d_43"> + <path d="M 117 325.865937 +L 127 325.865937 +L 137 325.865937 " style="fill: none; stroke-dasharray: 7.4,3.2; stroke-dashoffset: 0; stroke: #32a68c; stroke-width: 2"/> </g> <g id="text_19"> <!-- llama3 strategy --> - <g transform="translate(145 344.044062) scale(0.1 -0.1)"> + <g transform="translate(145 329.365937) scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-6c"/> <use xlink:href="#DejaVuSans-6c" transform="translate(27.783203 0)"/> <use xlink:href="#DejaVuSans-61" transform="translate(55.566406 0)"/> @@ -2993,15 +2998,15 @@ L 137 340.544062 <use xlink:href="#DejaVuSans-79" transform="translate(728.857422 0)"/> </g> </g> - <g id="line2d_43"> - <path d="M 117 355.222188 -L 127 355.222188 -L 137 355.222188 + <g id="line2d_44"> + <path d="M 117 340.544062 +L 127 340.544062 +L 137 340.544062 " style="fill: none; stroke-dasharray: 7.4,3.2; stroke-dashoffset: 0; stroke: #ff6941; stroke-width: 2"/> </g> <g id="text_20"> <!-- mistral-small strategy --> - <g transform="translate(145 358.722188) scale(0.1 -0.1)"> + <g transform="translate(145 344.044062) scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-6d"/> <use xlink:href="#DejaVuSans-69" transform="translate(97.412109 0)"/> <use xlink:href="#DejaVuSans-73" transform="translate(125.195312 0)"/> @@ -3026,15 +3031,15 @@ L 137 355.222188 <use xlink:href="#DejaVuSans-79" transform="translate(1038.818359 0)"/> </g> </g> - <g id="line2d_44"> - <path d="M 117 369.900312 -L 127 369.900312 -L 137 369.900312 + <g id="line2d_45"> + <path d="M 117 355.222188 +L 127 355.222188 +L 137 355.222188 " style="fill: none; stroke-dasharray: 7.4,3.2; stroke-dashoffset: 0; stroke: #5862ed; stroke-width: 2"/> </g> <g id="text_21"> <!-- deepseek-r1 strategy --> - <g transform="translate(145 373.400312) scale(0.1 -0.1)"> + <g transform="translate(145 358.722188) scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-64"/> <use xlink:href="#DejaVuSans-65" transform="translate(63.476562 0)"/> <use xlink:href="#DejaVuSans-65" transform="translate(125 0)"/> @@ -3057,11 +3062,36 @@ L 137 369.900312 <use xlink:href="#DejaVuSans-79" transform="translate(1013.574219 0)"/> </g> </g> + <g id="line2d_46"> + <path d="M 117 369.900313 +L 127 369.900313 +L 137 369.900313 +" style="fill: none; stroke-dasharray: 7.4,3.2; stroke-dashoffset: 0; stroke: #c02942; stroke-width: 2"/> + </g> + <g id="text_22"> + <!-- qwen3 strategy --> + <g transform="translate(145 373.400313) scale(0.1 -0.1)"> + <use xlink:href="#DejaVuSans-71"/> + <use xlink:href="#DejaVuSans-77" transform="translate(63.476562 0)"/> + <use xlink:href="#DejaVuSans-65" transform="translate(145.263672 0)"/> + <use xlink:href="#DejaVuSans-6e" transform="translate(206.787109 0)"/> + <use xlink:href="#DejaVuSans-33" transform="translate(270.166016 0)"/> + <use xlink:href="#DejaVuSans-20" transform="translate(333.789062 0)"/> + <use xlink:href="#DejaVuSans-73" transform="translate(365.576172 0)"/> + <use xlink:href="#DejaVuSans-74" transform="translate(417.675781 0)"/> + <use xlink:href="#DejaVuSans-72" transform="translate(456.884766 0)"/> + <use xlink:href="#DejaVuSans-61" transform="translate(497.998047 0)"/> + <use xlink:href="#DejaVuSans-74" transform="translate(559.277344 0)"/> + <use xlink:href="#DejaVuSans-65" transform="translate(598.486328 0)"/> + <use xlink:href="#DejaVuSans-67" transform="translate(660.009766 0)"/> + <use xlink:href="#DejaVuSans-79" transform="translate(723.486328 0)"/> + </g> + </g> </g> </g> </g> <defs> - <clipPath id="pe3dc3e38a7"> + <clipPath id="p1ea6650acf"> <rect x="108" y="51.84" width="669.6" height="332.64"/> </clipPath> </defs> diff --git a/src/dictator/dictator.py b/src/dictator/dictator.py index 40d831c..6b06abd 100644 --- a/src/dictator/dictator.py +++ b/src/dictator/dictator.py @@ -249,7 +249,7 @@ class Dictator: motivation = "The decision is to divide the money equally." agent_response = AgentResponse(my_share=my_share, other_share=other_share, motivation=motivation) return agent_response.dict() - if self.model in ["deepseek-r1", "deepseek-r1:7b"]: + if self.model in ["deepseek-r1", "deepseek-r1:7b","qwen3"]: half_amount = self.amount // 2 return { "my_share": half_amount, diff --git a/src/dictator/dictator_draw_violin.py b/src/dictator/dictator_draw_violin.py index de8705c..7859993 100644 --- a/src/dictator/dictator_draw_violin.py +++ b/src/dictator/dictator_draw_violin.py @@ -45,7 +45,8 @@ strategy_values = { 'gpt-4.5-preview-2025-02-27': 70, 'llama3': 50, 'mistral-small': 50, - 'deepseek-r1': 50 + 'deepseek-r1': 50, + 'qwen3': 50 } for model, value in strategy_values.items(): -- GitLab