Skip to content

Commit 6fd888c

Browse files
author
eltrompetero
committed
prep for pypi
1 parent 308217f commit 6fd888c

File tree

10 files changed

+95
-18
lines changed

10 files changed

+95
-18
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ source. Download the latest release from GitHub. Make sure that you are running
3030
3.7 or higher. Inside the top directory "coniii", you must run
3131
```bash
3232
$ cd dist
33-
$ pip install coniii-2.0.0-py3-none-any.whl
33+
$ pip install coniii-2.1.1-py3-none-any.whl
3434
```
3535
or the appropriate wheel file version.
3636

RELEASE_NOTES

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2323
SOFTWARE.
2424

2525

26+
v2.1.1 (Released 2019/11/29)
27+
----------------------------------------------------
28+
- Added convenient multiplier transformation functions utils.vec2mat and
29+
utils.mat2vec.
30+
- Output from ClusterExpansion.solve is of different order when
31+
full_output=True. Now, entropy estimate comes second instead of first to
32+
maintain consistency for when full_output=False.
33+
2634
v2.1.0 (Released 2019/11/28)
2735
----------------------------------------------------
2836
- Fixed bug in Pseudo. It was using a non-standard algorithm for solving the

coniii/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
22-
version = '2.1.0'
22+
version = '2.1.1'

docs/_build/html/coniii_rst/coniii.solvers.html

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -121,25 +121,31 @@
121121
<dd><p>threshold : float
122122
meanFieldRef : bool, False</p>
123123
<blockquote>
124-
<div><p>Expand about mean-field reference</p>
124+
<div><p>Expand about mean-field reference.</p>
125125
</div></blockquote>
126126
<dl class="simple">
127-
<dt>independentRef<span class="classifier">bool, True</span></dt><dd><p>Expand about independent reference</p>
127+
<dt>independentRef<span class="classifier">bool, True</span></dt><dd><p>Expand about independent reference.</p>
128128
</dd>
129-
<dt>priorLmbda<span class="classifier">float, 0.</span></dt><dd><p>Strength of non-interacting prior</p>
129+
<dt>priorLmbda<span class="classifier">float, 0.</span></dt><dd><p>Strength of non-interacting prior.</p>
130130
</dd>
131131
<dt>meanFieldPriorLmbda<span class="classifier">float, None</span></dt><dd><p>Strength of non-interacting prior in mean field calculation (defaults to
132-
priorLmbda)</p>
132+
priorLmbda).</p>
133133
</dd>
134134
</dl>
135135
<dl class="simple">
136-
<dt>With full_output=False, returns</dt><dd><p>J : Estimated interaction matrix</p>
136+
<dt>ndarray</dt><dd><p>Solved multipliers (parameters). For Ising problem, these can be converted
137+
into matrix format using utils.vec2mat.</p>
137138
</dd>
138-
<dt>With full_output=True, returns</dt><dd><p>ent : Estimated entropy
139-
J : Estimated interaction matrix
140-
clusters : List of clusters
141-
deltaSdict :
142-
deltaJdict :</p>
139+
<dt>float (optional, only if full_output=True)</dt><dd><p>Estimated entropy.</p>
140+
</dd>
141+
<dt>ndarray</dt><dd><p>Solved multipliers (parameters). For Ising problem, these can be converted
142+
into matrix format using utils.vec2mat.</p>
143+
</dd>
144+
<dt>list (optional, only if full_output=True)</dt><dd><p>List of clusters.</p>
145+
</dd>
146+
<dt>dict (optional, only if full_output=True)</dt><dd><p>deltaSdict</p>
147+
</dd>
148+
<dt>dict (optional, only if full_output=True)</dt><dd><p>deltaJdict</p>
143149
</dd>
144150
</dl>
145151
</dd></dl>
@@ -200,7 +206,8 @@
200206
</dd>
201207
</dl>
202208
<dl class="simple">
203-
<dt>ndarray</dt><dd><p>Solved multipliers (parameters).</p>
209+
<dt>ndarray</dt><dd><p>Solved multipliers (parameters). For Ising problem, these can be converted
210+
into matrix format using utils.vec2mat.</p>
204211
</dd>
205212
<dt>dict, optional</dt><dd><p>Output from scipy.optimize.root.</p>
206213
</dd>
@@ -301,7 +308,8 @@
301308
<p>learn_parameters_kwargs : dict, {‘maxdlamda’:1,’eta’:1}
302309
generate_kwargs : dict, {}</p>
303310
<dl class="simple">
304-
<dt>ndarray</dt><dd><p>Found solution to inverse problem.</p>
311+
<dt>ndarray</dt><dd><p>Solved multipliers (parameters). For Ising problem, these can be converted
312+
into matrix format using utils.vec2mat.</p>
305313
</dd>
306314
<dt>int</dt><dd><p>Error flag.
307315
0, converged within given criterion
@@ -507,7 +515,8 @@
507515
</dd>
508516
</dl>
509517
<dl class="simple">
510-
<dt>ndarray</dt><dd><p>Solution.</p>
518+
<dt>ndarray</dt><dd><p>Solved multipliers (parameters). For Ising problem, these can be converted
519+
into matrix format using utils.vec2mat.</p>
511520
</dd>
512521
<dt>dict (optional)</dt><dd><p>Output from scipy.optimize.minimize returned if full_output is True.</p>
513522
</dd>
@@ -601,7 +610,8 @@
601610
</dd>
602611
</dl>
603612
<dl class="simple">
604-
<dt>ndarray</dt><dd><p>multipliers</p>
613+
<dt>ndarray</dt><dd><p>Solved multipliers (parameters). For Ising problem, these can be converted
614+
into matrix format using utils.vec2mat.</p>
605615
</dd>
606616
</dl>
607617
</dd></dl>
@@ -646,7 +656,7 @@
646656
<dt>min_independent<span class="classifier">bool, True</span></dt><dd><p>** As of v1.0.3, min_independent is the only mode currently supported **
647657
Each &lt;xi&gt; and &lt;xi xj&gt; residual is treated as independent</p>
648658
</dd>
649-
<dt>cooc_cov<span class="classifier">ndarray,None</span></dt><dd><p>** As of v1.0.3, not currently supported **
659+
<dt>cooc_cov<span class="classifier">ndarray, None</span></dt><dd><p>** As of v1.0.3, not currently supported **
650660
Provide a covariance matrix for residuals. Should typically be
651661
coocSampleCovariance(samples). Only used if min_covariance and
652662
min_independent are False.</p>
@@ -655,6 +665,11 @@
655665
Strength of noninteracting prior.</p>
656666
</dd>
657667
</dl>
668+
<dl class="simple">
669+
<dt>ndarray</dt><dd><p>Solved multipliers (parameters). For Ising problem, these can be converted
670+
into matrix format using utils.vec2mat.</p>
671+
</dd>
672+
</dl>
658673
</dd></dl>
659674

660675
</dd></dl>

docs/_build/html/coniii_rst/coniii.test_utils.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@
7878
<code class="sig-prename descclassname">coniii.test_utils.</code><code class="sig-name descname">test_sub_to_ind</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#coniii.test_utils.test_sub_to_ind" title="Permalink to this definition"></a></dt>
7979
<dd></dd></dl>
8080

81+
<dl class="function">
82+
<dt id="coniii.test_utils.test_vec2mat">
83+
<code class="sig-prename descclassname">coniii.test_utils.</code><code class="sig-name descname">test_vec2mat</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#coniii.test_utils.test_vec2mat" title="Permalink to this definition"></a></dt>
84+
<dd></dd></dl>
85+
8186
</div>
8287

8388

docs/_build/html/coniii_rst/coniii.utils.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,21 @@
295295
</dl>
296296
</dd></dl>
297297

298+
<dl class="function">
299+
<dt id="coniii.utils.mat2vec">
300+
<code class="sig-prename descclassname">coniii.utils.</code><code class="sig-name descname">mat2vec</code><span class="sig-paren">(</span><em class="sig-param">multipliers</em><span class="sig-paren">)</span><a class="headerlink" href="#coniii.utils.mat2vec" title="Permalink to this definition"></a></dt>
301+
<dd><p>Convert matrix form of Ising parameters to a vector.</p>
302+
<p>This is specific to the Ising model.</p>
303+
<dl class="simple">
304+
<dt>multipliers<span class="classifier">ndarray</span></dt><dd><p>Matrix of couplings with diagonal elements as fields.</p>
305+
</dd>
306+
</dl>
307+
<dl class="simple">
308+
<dt>ndarray</dt><dd><p>Vector of fields and couplings, respectively.</p>
309+
</dd>
310+
</dl>
311+
</dd></dl>
312+
298313
<dl class="function">
299314
<dt id="coniii.utils.multinomial">
300315
<code class="sig-prename descclassname">coniii.utils.</code><code class="sig-name descname">multinomial</code><span class="sig-paren">(</span><em class="sig-param">*args</em><span class="sig-paren">)</span><a class="headerlink" href="#coniii.utils.multinomial" title="Permalink to this definition"></a></dt>
@@ -427,6 +442,27 @@
427442
</dl>
428443
</dd></dl>
429444

445+
<dl class="function">
446+
<dt id="coniii.utils.vec2mat">
447+
<code class="sig-prename descclassname">coniii.utils.</code><code class="sig-name descname">vec2mat</code><span class="sig-paren">(</span><em class="sig-param">multipliers</em>, <em class="sig-param">separate_fields=False</em><span class="sig-paren">)</span><a class="headerlink" href="#coniii.utils.vec2mat" title="Permalink to this definition"></a></dt>
448+
<dd><p>Convert vector of parameters containing fields and couplings to a matrix where the
449+
diagonal elements are the fields and the remaining elements are the couplings. Fields
450+
can be returned separately with the separate_fields keyword argument.</p>
451+
<p>This is specific to the Ising model.</p>
452+
<dl class="simple">
453+
<dt>multipliers<span class="classifier">ndarray</span></dt><dd><p>Vector of fields and couplings.</p>
454+
</dd>
455+
</dl>
456+
<p>separate_fields : bool, False</p>
457+
<dl class="simple">
458+
<dt>ndarray</dt><dd><p>n x n matrix. Diagonal elements are fields <em>unless</em> separate_fields keyword
459+
argument is True, in which case the diagonal elements are 0.</p>
460+
</dd>
461+
<dt>ndarray (optional)</dt><dd><p>Fields if separate_fields keyword argument is True.</p>
462+
</dd>
463+
</dl>
464+
</dd></dl>
465+
430466
<dl class="function">
431467
<dt id="coniii.utils.xbin_states">
432468
<code class="sig-prename descclassname">coniii.utils.</code><code class="sig-name descname">xbin_states</code><span class="sig-paren">(</span><em class="sig-param">n</em>, <em class="sig-param">sym=False</em><span class="sig-paren">)</span><a class="headerlink" href="#coniii.utils.xbin_states" title="Permalink to this definition"></a></dt>

docs/_build/html/genindex.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ <h1 id="index">Index</h1>
5454
| <a href="#S"><strong>S</strong></a>
5555
| <a href="#T"><strong>T</strong></a>
5656
| <a href="#U"><strong>U</strong></a>
57+
| <a href="#V"><strong>V</strong></a>
5758
| <a href="#W"><strong>W</strong></a>
5859
| <a href="#X"><strong>X</strong></a>
5960
| <a href="#Z"><strong>Z</strong></a>
@@ -409,6 +410,8 @@ <h2 id="M">M</h2>
409410
<table style="width: 100%" class="indextable genindextable"><tr>
410411
<td style="width: 33%; vertical-align: top;"><ul>
411412
<li><a href="coniii_rst/coniii.mean_field_ising.html#coniii.mean_field_ising.m">m() (in module coniii.mean_field_ising)</a>
413+
</li>
414+
<li><a href="coniii_rst/coniii.utils.html#coniii.utils.mat2vec">mat2vec() (in module coniii.utils)</a>
412415
</li>
413416
<li><a href="coniii_rst/coniii.solvers.html#coniii.solvers.MCH">MCH (class in coniii.solvers)</a>
414417
</li>
@@ -617,6 +620,8 @@ <h2 id="T">T</h2>
617620
<li><a href="coniii_rst/coniii.test_utils.html#coniii.test_utils.test_sub_to_ind">test_sub_to_ind() (in module coniii.test_utils)</a>
618621
</li>
619622
<li><a href="coniii_rst/coniii.test_samplers.html#coniii.test_samplers.test_test_sample_ising">test_test_sample_ising() (in module coniii.test_samplers)</a>
623+
</li>
624+
<li><a href="coniii_rst/coniii.test_utils.html#coniii.test_utils.test_vec2mat">test_vec2mat() (in module coniii.test_utils)</a>
620625
</li>
621626
<li><a href="coniii_rst/coniii.pseudo_inverse_ising.html#coniii.pseudo_inverse_ising.testDerivatives">testDerivatives() (in module coniii.pseudo_inverse_ising)</a>
622627
</li>
@@ -655,6 +660,14 @@ <h2 id="U">U</h2>
655660
</ul></td>
656661
</tr></table>
657662

663+
<h2 id="V">V</h2>
664+
<table style="width: 100%" class="indextable genindextable"><tr>
665+
<td style="width: 33%; vertical-align: top;"><ul>
666+
<li><a href="coniii_rst/coniii.utils.html#coniii.utils.vec2mat">vec2mat() (in module coniii.utils)</a>
667+
</li>
668+
</ul></td>
669+
</tr></table>
670+
658671
<h2 id="W">W</h2>
659672
<table style="width: 100%" class="indextable genindextable"><tr>
660673
<td style="width: 33%; vertical-align: top;"><ul>

docs/_build/html/objects.inv

20 Bytes
Binary file not shown.

docs/_build/html/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)