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

dataset #4

Open
leleyi opened this issue Jan 21, 2021 · 3 comments
Open

dataset #4

leleyi opened this issue Jan 21, 2021 · 3 comments

Comments

@leleyi
Copy link

leleyi commented Jan 21, 2021

I don’t see the method to deal with a dataset, can you copy it to me.
Thank you very much

@leleyi
Copy link
Author

leleyi commented Jan 21, 2021

I don’t see the method to deal with a dataset, can you copy it to me.
Thank you very much

image
How to create such a data collection.

@brochier
Copy link
Owner

Do you mean the dataset loader that is here: https://github.com/brochier/expert_finding/blob/master/expert_finding/io.py ?

@brochier
Copy link
Owner

You should get the following objects:
A_da : adjacency matrix of the document-candidate network (scipy.sparse.csr_matrix)
A_dd : adjacency matrix of the document-document network (scipy.sparse.csr_matrix)
T : raw textual content of the documents (numpy.array)
L_d : labels associated to the document (corresponding to T[L_d_mask]) (numpy.array)
L_d_mask : mask to select the labeled documents (numpy.array)
L_a : labels associated to the candidates (corresponding to A_da[:,L_d_mask]) (numpy.array)
L_a_mask : mask to select the labeled candidates (numpy.array)
tags : names of the labels of expertise (numpy.array)

By looking at https://github.com/brochier/expert_finding/blob/master/expert_finding/evaluation.py you should understand how these objects should be used. Also take a look at the README.

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