<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/python-cluster/patches/" rel="alternate"/><link href="https://sourceforge.net/p/python-cluster/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/python-cluster/patches/</id><updated>2006-08-05T19:29:03Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>Topological output and minor changes</title><link href="https://sourceforge.net/p/python-cluster/patches/1/" rel="alternate"/><published>2006-08-05T19:29:03Z</published><updated>2006-08-05T19:29:03Z</updated><author><name>ajaksu</name><uri>https://sourceforge.net/u/ajaksu2/</uri></author><id>https://sourceforge.netb3cdd6d2b90814e0c4acaf7730f30f78c2f923c2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Michel,&lt;/p&gt;
&lt;p&gt;Pretty useful project you have here, I haven't read the&lt;br /&gt;
clustering algorithms yet but have used it (with&lt;br /&gt;
ecological similarity indexes among samples!).&lt;br /&gt;
Hierarchical clustering makes that a LOT more useful,&lt;br /&gt;
so thank you very much :)&lt;/p&gt;
&lt;p&gt;This patch adds a topological output to&lt;br /&gt;
Cluster(.topology()) and a respective method to&lt;br /&gt;
BaseClusterMethod(.topo()). It also changes .data()&lt;br /&gt;
behavior to avoid the .data()[0] idiom.&lt;/p&gt;
&lt;p&gt;Feeding the output of .topo() to&lt;br /&gt;
&lt;a href="http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/139422" rel="nofollow"&gt;http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/139422&lt;/a&gt;&lt;br /&gt;
gives (e.g.):&lt;/p&gt;
&lt;p&gt;9 -----+   &lt;br /&gt;
|--+&lt;br /&gt;
8 -----+  |&lt;br /&gt;
|--&lt;br /&gt;
# --+     |&lt;br /&gt;
|--+  |&lt;br /&gt;
w --+  |  |&lt;br /&gt;
|--+&lt;br /&gt;
e -----+&lt;/p&gt;
&lt;p&gt;Regarding the .data() change:&lt;br /&gt;
* I think it'd be better to  keep two different&lt;br /&gt;
datasets (.raw and .data?), because both states (flat&lt;br /&gt;
and clustered) are pretty different beasts.&lt;br /&gt;
*  Perhaps having .data() "contents" stored as&lt;br /&gt;
.data would make things easier (in a "why call a method&lt;br /&gt;
with no parameters, that returns an object" way :)).&lt;br /&gt;
Making .data a property would keep current behavior and&lt;br /&gt;
require less ()s :)&lt;/p&gt;
&lt;p&gt;I'm working on an advanced version of the topological&lt;br /&gt;
view and on a derivative of that printing recipe for my&lt;br /&gt;
own needs, but will forward them here when done.&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;br /&gt;
Daniel&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>