Hi Alex.

It should be fully connected. I'll check again.

Thanks.
Andy

On 03/12/2013 04:07 PM, Alexandre Gramfort wrote:
> hi Andy,
>
> is your graph fully connected? ie one connected compotent? if not
> you should tell the estimator.
>
> let me know if it works.
>
> Alex
>
> On Tue, Mar 12, 2013 at 3:16 PM, Andreas Mueller
> <[email protected]> wrote:
>> Hey everybody.
>> I have been trying to use Ward with a fixed connectivity matrix today
>> and ran into some problems:
>>
>>     File "/home/VI/staff/amueller/checkout/scikit-learn/sklearn/base.py",
>> line 330, in fit_predict
>>       self.fit(X)
>>     File
>> "/home/VI/staff/amueller/checkout/scikit-learn/sklearn/cluster/hierarchical.py",
>> line 380, in fit
>>       copy=self.copy, n_clusters=n_clusters)
>>     File
>> "/home/VI/staff/amueller/checkout/scikit-learn/sklearn/cluster/hierarchical.py",
>> line 165, in ward_tree
>>       inert, i, j = heappop(inertia)
>> IndexError: index out of range
>>
>> I checked and the number of nodes is the same as the number of samples
>> during fit.
>> Is there some assumption about the graph that I could be missing?
>> I see this error only for "low" number of clusters. If I increase
>> n_clusters,
>> it goes away.
>>
>>
>> Any help would be much appreciated.
>>
>> Cheers,
>> Andy
>>
>> ------------------------------------------------------------------------------
>> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
>> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
>> endpoint security space. For insight on selecting the right partner to
>> tackle endpoint security challenges, access the full report.
>> http://p.sf.net/sfu/symantec-dev2dev
>> _______________________________________________
>> Scikit-learn-general mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to