lefromage / sofia-ml

Automatically exported from code.google.com/p/sofia-ml
0 stars 0 forks source link

The ids in cluster output are formatted scientific notation rather than ints #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

This effects large ids.

The issue is in cluster-src/sofia-kmeans.cc

The solution diff is:

345c345
<             << test_data->VectorAt(i).GetY() << std::endl;

---
>             << (int)test_data->VectorAt(i).GetY() << std::endl;

Original issue reported on code.google.com by clive....@rummble.com on 6 Mar 2013 at 2:37