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
What's the format of config? #5
Comments
For the yaml format, please refer to the document page. The pickled object is a dict that contains all embeddings, and their index mappings to the original node names. The following lines may help you understand what is in the pickled object.
|
Thank you for your prompt reply. The document is helpful but a little bit confusing to me. So if I want to specify a edge_link file to run. I need to create a single yaml file and change the global yaml file to indicate the dataset path? Also, I am not pretty sure which data format is acceptable for your project. This information may be stored somewhere in the document. An easy start point in the readme file may still be very helpful for people who only want to calculate the embedding in a short run. |
The dataset path in the global yaml file is for downloading/caching standard datasets. You don't necessarily need to modify it in most cases. To run your own dataset,
For all applications, the dataset format is strings separated by delimiters. There can be some comment at the end of each line. By default, delimiters are any blank characters, and comment prefix is "#". For node embeddings, the following examples are valid.
The edge weight is optional. If you're using Python, you can also pass list of Sorry for not clarifying the data formats. We will add documentation of dataset format. |
Thanks for your explanation! |
I also found it a bit confusing of what the desired dataset format should be. Could you add some simple examples in the readme file. Or maybe tutorials on how we can run the codes on our own data? Thank you |
sorry to brother you again. But I don't know what's the input format for LargeViz? I know it should be vectors for nodes, but do not know exactly how the vector should be formatted. |
That's good. I will add it to the document. If you call LargeVis from yaml, there are two formats, depending on the task. For graph visualization, it's an edge list. For vector visualization, it's an n*d text matrix, i.e. n lines of d-dimensional samples. The command line |
Thank you for the quick reply! |
Want to double check. The label file for largevis is just an array (length = n) of string or integer right? |
Yes. It can be either n lines of strings (*.txt) or a 1d numpy array (*.npy). |
Added in v0.2.0 |
Looks like users should run through the config file (yaml file) for training/evaluation. But I have no idea what's the format it should be. Could you add some simple examples in the readme file? Maybe just run LINE on karate club network (adjacent matrix/edgelist)?
In addition, it is not very clear what will be included in the output pickle file. Could you please add some simple explanation about that?
The text was updated successfully, but these errors were encountered: