tchakravarty / sofia-ml

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

Assertion '!cluster_centers_empty()' fails and crashes program #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
cd "sofia-ml-read-only"

./sofia-kmeans --k 100 --init_type random --opt_type mini_batch_kmeans 
--mini_batch_size 100 --iterations 1000 --cluster_mapping_type rbf_kernel 
--test_file <test file location goes here> --cluster_mapping_out <cluster 
mapping output location goes here>

What is the expected output? What do you see instead?

The expected output is a cluster mapping text file. Instead, I see:

cd "sofia-ml-read-only"

sofia-kmeans: sf-cluster-centers.cc:93: float 
SfClusterCenters::SqDistanceToClosestCenter(const SfSparseVector&, int*) const: 
Assertion `!cluster_centers_.empty()' failed.

What version of the product are you using? On what operating system?

I don't know where to find the product version. The most recent version is the 
one I have been using.
Operating system: Ubuntu 12.04.5 LTS

Please provide any additional information below.

N/A

Original issue reported on code.google.com by travis.n...@gmail.com on 23 Sep 2014 at 6:46

GoogleCodeExporter commented 9 years ago
Addendum: Under "What is the expected output?", the line 'cd 
"sofia-ml-read-only' should be removed.

Original comment by travis.n...@gmail.com on 23 Sep 2014 at 6:47