-
Notifications
You must be signed in to change notification settings - Fork 13
Unable to reproduce MAP numbers #5
Copy link
Copy link
Open
Description
Hello,
Thank you for the great work. Below are the steps, I follow to run the code where I assume task = space.
- Use https://scikit-learn.org/0.19/datasets/twenty_newsgroups.html to formulate training data and ignore training records corresponding to categories = ['sci.space'] and ['comp.graphics']. This way, training_data_size = 10,134
- Use https://scikit-learn.org/0.19/datasets/twenty_newsgroups.html to get val/data data. This way, testing_data_size = 7,532
- Set c.DAZER.train_class_num = 18 in sample.config. Rest of settings remain same.
- Run sample-train.sh and sample-test.sh
- Relevance score file is produced.
- For the testing dataset, ignore document corresponding to ['comp.graphics'], mark the documents = 1 for category ['sci.space'] and mark the documents = 0 for rest of the categories.
- Use https://scikit-learn.org/stable/modules/generated/sklearn.metrics.average_precision_score.html to calculate AP score for task = space where y_true is binary and y_score = relevance scores.
Following above steps, I get MAP ~ 0.050 which is way far from the reported number. Could you please let me know how did you calculate MAP scores? Additionally, please let me know if any of the above steps are incorrect. Thanks.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels