question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Branched off of https://github.com/dedupeio/dedupe/issues/965#issuecomment-1046319666.

EDIT: See next comment for using ASV instead of @profile

Place @profile decorators on bottleneck functions using memory_profiler

List this dependency as extra, so that most users don’t need to install it.

Also, to prevent overhead from @profile getting run always (even when we don’t want profiling), wrap it in our own custom decorator that is usually a noop:

def dd_profile(func, *args, **kwargs):
    # Maybe a better way to configure this? Would have to be at import time
    if os.environ["DEDUPE_PROFILE"]:
        # Actually add the profiler wrapper
        return profile(func, *args, **kwargs)
    else:
        # noop
        return func

Next steps are to probably actually make a new branch and apply it to some of the examples?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
fgreggcommented, Apr 28, 2022

i think precision and recall are really still the best ones.

1reaction
fgreggcommented, Apr 28, 2022

look at canonical.py in tests to see how precision and recall is calculated there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding a Benchmark Line to a Graph - Stephanie Evergreen
Adding a benchmark line to a graph gives loads of context for the viewer. Here's how to make one right inside Excel. It's...
Read more >
Add benchmarks | Substrate_ Docs - Substrate Documentation
Add benchmarks. This guide illustrates how to write a simple benchmark for a pallet, test the benchmark, and run benchmarking commands to generate...
Read more >
Facebook Ad Benchmarks for YOUR Industry [Data]
Check out the Facebook ad performance benchmarks our clients are seeing, including: Average Click-Through Rate (CTR) on Facebook by industry ...
Read more >
Linkedin Ad Benchmarks 2022 - An Always Up-to-date Guide
Here are the common benchmarks that are essential for Linkedin advertisers. ... Message Ad / Inmail Benchmarks; Linkedin Video Ad Benchmarks ...
Read more >
How to add benchmark products
Add benchmark products. Open the Testdriver Admin Tool, and go to the Products screen. Click on the License tab to see the UL...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found