Dear sir,
I have written unit test for manual initialization of centers. Please have
a look at it at ;
https://gist.github.com/mazumdarparijat/7360379
I am not very confident if its correct.
Regards,
Parijat


On Mon, Nov 4, 2013 at 10:31 PM, Parijat Mazumdar <mazumdarparijat@gmail.com
> wrote:

> ok sure. Let me try. Thanks.
>
>
> On Mon, Nov 4, 2013 at 9:55 PM, Soeren Sonnenburg <
> notifications@github.com> wrote:
>
>> In src/shogun/clustering/KMeans.cpp:
>>
>> > @@ -63,7 +79,8 @@ bool CKMeans::train_machine(CFeatures* data)
>> >  	for (int32_t i=0; i<num; i++)
>> >  		Weights.vector[i]=1.0;
>> >
>> > -	clustknb(false, NULL);
>> > +	if(mus_initial.vlen>0) clustknb(true, mus_initial);
>>
>> for the final PR please provide us one commit only. you can use
>>
>> git reset --soft <version_before_your changes>
>>
>> to get all your commits back to non-committed. Then just git commit -a
>> everything
>>
>> —
>> Reply to this email directly or view it on GitHub<https://github.com/shogun-toolbox/shogun/pull/1748/files#r7404479>
>> .
>>
>
>
>
> --
> PARIJAT MAZUMDAR
> JUNIOR UNDERGRADUATE
> ELECTRICAL ENGINEERING
> IIT DELHI
>



-- 
PARIJAT MAZUMDAR
JUNIOR UNDERGRADUATE
ELECTRICAL ENGINEERING
IIT DELHI