Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run under cygwin #1

Open
mrgloom opened this issue Mar 6, 2015 · 4 comments
Open

Run under cygwin #1

mrgloom opened this issue Mar 6, 2015 · 4 comments

Comments

@mrgloom
Copy link

mrgloom commented Mar 6, 2015

I tried to run it under cygwin and it just freeze - no output.

Another question what format of input\output? Did you compare speed\accuracy with sofia-ml kmeans?

@esert
Copy link
Member

esert commented Mar 7, 2015

We never ran it in cygwin, but are you sure it froze? It may be waiting for the input.

I've just updated the README, but let me paste it here as well:

Input format (assuming you have m vectors of n dimensions):
[label_1] [weight_1] x_11 ... x_1m
...
[label_m] [weight_m] x_m1 ... x_mn

label_i  : (string) label of the ith vector, required when -l used
weight_i : (double) weight of the ith vector, required when -w used
x_ij     : (double) ith vector's jth component

Output format:
[label_1] c_1
...
[label_m] c_m

c_i : (int) cluster of ith vector

As far as I know none of us compared this with sofia-ml kmeans.

@mrgloom
Copy link
Author

mrgloom commented Mar 7, 2015

I tried to run it under amazon ec2 ubuntu, same result.

git clone https://github.com/ai-ku/wkmeans.git
cd wkmeans
make

./wkmeans
nothing happens
./wkmeans -k 2 data.txt out.txt
nothing happens

data.txt for test
1 2 3 4
11 2.1 3 4
142.01 2 3 5

@esert
Copy link
Member

esert commented Mar 7, 2015

wkmeans doesn't do anything with the command line arguments, you have to redirect the input/output, like this:

./wkmeans -k 2 < data.txt > out.txt

@mrgloom
Copy link
Author

mrgloom commented Mar 12, 2015

still can't make it work

when I use
./wkmeans -k 2 < data.txt > out.txt

one core stay busy and nothing happens and it's weird for data.txt file consisting of several lines.

can you provide small working example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants