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

Cannot find the output file #2

Closed
iggisv9t opened this issue Oct 24, 2021 · 2 comments
Closed

Cannot find the output file #2

iggisv9t opened this issue Oct 24, 2021 · 2 comments

Comments

@iggisv9t
Copy link

int main(int argc, char* argv[]) {
//commandLine P(argc,argv,"[-o <outFile>] [-r <rounds>] [-p <0/1 perturb points>] <inFile>");
commandLine P(argc,argv,"[-m <minPts value>] <inFile>");
char* iFile = P.getArgument(0);
size_t minPts = P.getOptionIntValue("-m",1);
char* oFile = P.getOptionValue("-o");

As I understood those lines, there is no default value for the output file path, so I try to run hdbscan like this:

./hdbscan -m 5 -o ~/projects/hdbscan_out.csv ~/projects/hdbscan_inp.csv

It logs some info in the terminal, but I cannot find any output file.

@wangyiqiu
Copy link
Owner

Hi, sorry about the confusion. Currently the program does not support writing the output to disk. There are other ways to interpret the output:

  1. Use it directly from our C++ API: https://github.com/wangyiqiu/hdbscan/blob/main/include/hdbscan/hdbscan.h
    Specifically, the two API functions output either the MST or the root node of the dendrogram, from which you could use in your own program. You could also try to output these results to the disk in a format that you like.

  2. You can use our Python binding to generate a dendrogram that can be plotted directly in Python. See here: https://github.com/wangyiqiu/hdbscan#option-2-use-the-python-binding

I hope this helps. Let me know if you have more questions.

@iggisv9t
Copy link
Author

Thank you. It was not obvious to me, because I don't know C++. I'll try Python bindings.

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