Comments (3)
This fix should take care of the problem! Copies of the qid and docno were not being freed properly.
Line # Mem usage Increment Line Contents
================================================
79 52.750 MiB 52.750 MiB @profile
80 def runme():
81
82 55.148 MiB 2.398 MiB qrel = load_reference('qrels.txt')
83 103.582 MiB 48.434 MiB run = load_candidate('run.txt')
84
85 104.793 MiB 1.211 MiB evaluator = pytrec_eval.RelevanceEvaluator(qrel, {'map', 'ndcg'})
86
87 104.793 MiB 0.000 MiB N = 100
88 123.664 MiB 0.000 MiB for i in range(1,N):
89 123.664 MiB 18.832 MiB res = evaluator.evaluate(run)
90 123.664 MiB 0.000 MiB del res
from pytrec_eval.
Great, I quit this tool for this reason, thanks for fixing it. Just a thing on your PR, it's big, author might not accept it directly. May be consider having several smaller PR for each issue ? Since they are not related
Thanks a lot for this work
from pytrec_eval.
@Ricocotam I agree in spirit (and it was originally the plan to have multiple PRs), but there's a lot of interdependence between the changes made (e.g., 3 of the 4 rely on the addition of a python wrapper around the extension). @cvangysel will this hold up the PR, and would it help speed up the process if I split them up? I could, but it would be a pain.
from pytrec_eval.
Related Issues (20)
- new release? HOT 8
- Metrics missing when running evaluator twice
- Could you please explain how does the evaluation work when the grades are taken from two different ranges? HOT 1
- use complete set of queries from relevance judgments (-c) HOT 1
- Pip install error on windows 10, possible hardcoded path HOT 19
- Pytrec scores are not consistent in colab HOT 9
- List of supported metrics HOT 1
- pytrec-eval-terrier 0.5.1 HOT 4
- Range of doc score in run file HOT 1
- RelevanceEvaluator breaks when evaluating on multiple runs
- ndcg_cut.10 and -M 10 ndcg are different when multiple level of relevance is given. HOT 2
- iprec_at_recall trec_eval: duplicate cutoffs detected
- error when installing using pip HOT 6
- Issues when installing on Mac m1
- Not sure license can be MIT HOT 3
- windows 10 installation HOT 2
- For those with SSL issues here is the fix: HOT 1
- CI/CD friendly wheel
- ERROR: Could not build wheels for pytrec-eval, which is required to install pyproject.toml-based projects HOT 7
- Faulty Scores Generated by Evaluator in Presence of Empty Relevance Sets
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytrec_eval.