Anonymous | Login | Signup for a new account | 2024-11-22 02:22 MSK |
Main | My View | View Issues | Change Log | Roadmap | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||
0000329 | [ALGLIB] Spec.functions | major | always | 2010-05-07 22:52 | 2010-05-26 12:33 | ||
Reporter | gighi | View Status | public | ||||
Assigned To | SergeyB | ||||||
Priority | normal | Resolution | fixed | Platform | |||
Status | resolved | OS | |||||
Projection | none | OS Version | |||||
ETA | none | Fixed in Version | 2.6.0 | Product Version | 2.5.0 | ||
Target Version | Product Build | ||||||
Summary | 0000329: FIXED: K-Means++: 'multiple restarts' doesn't work correctly | ||||||
Description |
Hi, I have a problem regarding the K-Means++ implementation contained in ALGLIB. Please have a look at kmeans.cpp:238: if( ap::fp_less(e,ebest) ) { copymatrix(ct, 0, k-1, 0, nvars-1, ctbest, 0, k-1, 0, nvars-1); } Now, if "e" is less then "ebest", the current table containing centroids is saved as the "best centroids set", but, as you can easily see, the variable "ebest" is never updated, so its value will always be "ap::maxrealnumber". As a consequence of this, the "number of restarts" of the algorithm is completely useless, because only the last iteration will be considered, even if it's not the best one. Am I wrong? This produces an output which is not the best one computed by the algorithm. |
||||||
Steps To Reproduce | |||||||
Additional Information | |||||||
Programming language | Unspecified | ||||||
Attached Files | |||||||
|
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |