-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
159 changed files
with
12,500 additions
and
3,444 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Euclidean Models | ||
================ | ||
|
||
.. automodule:: prefsampling.approval.euclidean | ||
|
||
.. autofunction:: prefsampling.approval.euclidean.euclidean_threshold | ||
|
||
.. autofunction:: prefsampling.approval.euclidean.euclidean_vcr | ||
|
||
.. autofunction:: prefsampling.approval.euclidean.euclidean_constant_size | ||
|
||
.. autoclass:: prefsampling.approval.euclidean.EuclideanSpace | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Resampling Models | ||
================= | ||
|
||
.. automodule:: prefsampling.approval.resampling | ||
|
||
.. autofunction:: prefsampling.approval.resampling.resampling | ||
|
||
.. autofunction:: prefsampling.approval.resampling.disjoint_resampling | ||
|
||
.. autofunction:: prefsampling.approval.resampling.moving_resampling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Truncated Ordinal Models | ||
======================== | ||
|
||
.. automodule:: prefsampling.approval.truncated_ordinal | ||
|
||
.. autofunction:: prefsampling.approval.truncated_ordinal.truncated_ordinal | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Urn Models | ||
================= | ||
|
||
.. automodule:: prefsampling.approval.urn | ||
|
||
.. autofunction:: prefsampling.approval.urn.urn | ||
|
||
.. autofunction:: prefsampling.approval.urn.urn_constant_size | ||
|
||
.. autofunction:: prefsampling.approval.urn.urn_partylist |
Binary file modified
BIN
-23.1 KB
(76%)
...-source/source/reference/validation_plots/approval/disjoint_resampling_0_25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+8 Bytes
(100%)
...-source/source/reference/validation_plots/approval/disjoint_resampling_0_33.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+84.5 KB
docs-source/source/reference/validation_plots/approval/impartial_0_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+63.3 KB
docs-source/source/reference/validation_plots/approval/impartial_0_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+65.2 KB
docs-source/source/reference/validation_plots/approval/impartial_0_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+69.6 KB
...urce/source/reference/validation_plots/approval/impartial_constant_size_0_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+64.1 KB
...urce/source/reference/validation_plots/approval/impartial_constant_size_0_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+64 KB
...urce/source/reference/validation_plots/approval/impartial_constant_size_0_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+76.4 KB
docs-source/source/reference/validation_plots/approval/moving_resampling_0_25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+74.1 KB
docs-source/source/reference/validation_plots/approval/moving_resampling_0_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+72.5 KB
docs-source/source/reference/validation_plots/approval/moving_resampling_0_75.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+69.5 KB
docs-source/source/reference/validation_plots/approval/moving_resampling_1_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-20 KB
(82%)
docs-source/source/reference/validation_plots/approval/noise_0_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-40 Bytes
(100%)
docs-source/source/reference/validation_plots/approval/noise_0_25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+72 Bytes
(100%)
docs-source/source/reference/validation_plots/approval/noise_0_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+160 Bytes
(100%)
docs-source/source/reference/validation_plots/approval/noise_0_75.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+288 Bytes
(100%)
docs-source/source/reference/validation_plots/approval/noise_1_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-16.1 KB
(80%)
docs-source/source/reference/validation_plots/approval/resampling_0_25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-77 Bytes
(100%)
docs-source/source/reference/validation_plots/approval/resampling_0_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+93 Bytes
(100%)
docs-source/source/reference/validation_plots/approval/resampling_0_75.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-49 Bytes
(100%)
docs-source/source/reference/validation_plots/approval/resampling_1_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ | |
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=8d27b9dea8ad943066ae" /> | ||
<script src="../_static/vendor/fontawesome/6.5.1/js/all.min.js?digest=8d27b9dea8ad943066ae"></script> | ||
|
||
<script src="../_static/documentation_options.js?v=537bb3bf"></script> | ||
<script src="../_static/documentation_options.js?v=90459621"></script> | ||
<script src="../_static/doctools.js?v=888ff710"></script> | ||
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script> | ||
<script src="../_static/scripts/sphinx-book-theme.js?v=efea14e4"></script> | ||
|
@@ -171,7 +171,11 @@ | |
<li class="toctree-l2 has-children"><a class="reference internal" href="../reference/approval/index.html">Approval</a><input class="toctree-checkbox" id="toctree-checkbox-4" name="toctree-checkbox-4" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-4"><i class="fa-solid fa-chevron-down"></i></label><ul> | ||
<li class="toctree-l3"><a class="reference internal" href="../reference/approval/impartial.html">Impartial Cultures</a></li> | ||
<li class="toctree-l3"><a class="reference internal" href="../reference/approval/identity.html">Unanimous Models</a></li> | ||
<li class="toctree-l3"><a class="reference internal" href="../reference/approval/euclidean.html">Euclidean Models</a></li> | ||
<li class="toctree-l3"><a class="reference internal" href="../reference/approval/urn.html">Urn Models</a></li> | ||
<li class="toctree-l3"><a class="reference internal" href="../reference/approval/noise.html">Noise Models</a></li> | ||
<li class="toctree-l3"><a class="reference internal" href="../reference/approval/resampling.html">Resampling Models</a></li> | ||
<li class="toctree-l3"><a class="reference internal" href="../reference/approval/truncatedordinal.html">Truncated Ordinal Models</a></li> | ||
</ul> | ||
</li> | ||
<li class="toctree-l2"><a class="reference internal" href="../reference/point/index.html">Point</a></li> | ||
|
@@ -302,13 +306,14 @@ <h1></h1> | |
<h1>Source code for prefsampling</h1><div class="highlight"><pre> | ||
<span></span><span class="n">__author__</span> <span class="o">=</span> <span class="s2">"Simon Rey and Stanisław Szufa"</span> | ||
<span class="n">__email__</span> <span class="o">=</span> <span class="s2">"[email protected]"</span> | ||
<span class="n">__version__</span> <span class="o">=</span> <span class="s2">"0.1.15"</span> | ||
<span class="n">__version__</span> <span class="o">=</span> <span class="s2">"0.1.16"</span> | ||
|
||
<span class="kn">from</span> <span class="nn">enum</span> <span class="kn">import</span> <span class="n">Enum</span> | ||
<span class="kn">from</span> <span class="nn">itertools</span> <span class="kn">import</span> <span class="n">chain</span> | ||
|
||
<span class="kn">from</span> <span class="nn">prefsampling.approval</span> <span class="kn">import</span> <span class="n">SetDistance</span> | ||
<span class="kn">from</span> <span class="nn">prefsampling.ordinal</span> <span class="kn">import</span> <span class="n">TreeSampler</span> | ||
<span class="kn">from</span> <span class="nn">prefsampling.core.euclidean</span> <span class="kn">import</span> <span class="n">EuclideanSpace</span> | ||
|
||
|
||
<div class="viewcode-block" id="CONSTANTS"> | ||
|
@@ -318,7 +323,7 @@ <h1>Source code for prefsampling</h1><div class="highlight"><pre> | |
|
||
<span class="n">_ignore_</span> <span class="o">=</span> <span class="s2">"member cls"</span> | ||
<span class="bp">cls</span> <span class="o">=</span> <span class="nb">vars</span><span class="p">()</span> | ||
<span class="k">for</span> <span class="n">member</span> <span class="ow">in</span> <span class="n">chain</span><span class="p">(</span><span class="nb">list</span><span class="p">(</span><span class="n">TreeSampler</span><span class="p">),</span> <span class="nb">list</span><span class="p">(</span><span class="n">SetDistance</span><span class="p">)):</span> | ||
<span class="k">for</span> <span class="n">member</span> <span class="ow">in</span> <span class="n">chain</span><span class="p">(</span><span class="nb">list</span><span class="p">(</span><span class="n">TreeSampler</span><span class="p">),</span> <span class="nb">list</span><span class="p">(</span><span class="n">SetDistance</span><span class="p">),</span> <span class="nb">list</span><span class="p">(</span><span class="n">EuclideanSpace</span><span class="p">)):</span> | ||
<span class="k">if</span> <span class="n">member</span><span class="o">.</span><span class="n">name</span> <span class="ow">in</span> <span class="bp">cls</span><span class="p">:</span> | ||
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span> | ||
<span class="sa">f</span><span class="s2">"The name </span><span class="si">{</span><span class="n">member</span><span class="o">.</span><span class="n">name</span><span class="si">}</span><span class="s2"> is used in more than one enumeration. The"</span> | ||
|
Oops, something went wrong.