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.

Improve reciprocal() accuracy

See original GitHub issue

Hi! I was using the library but got some inaccurate results while using the reciprocal() function, I read in a previous issue that we can change nr_iters to improve accuracy but that doesn’t seem to work in the current version. Could you please help me out by letting me know how to do that?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
gmurarucommented, Apr 11, 2021

Could you try to add to tutorial 5 the changes from here – change the load function with load_from_party. load would load the tensor from the file, but it would return a normal tensor. load_from_party would load the tensor at the party that has the rank == src and it would share it - we get back the MPCTensor

0reactions
gmurarucommented, Apr 12, 2021

Made a PR with the fix, it should be the latest PR

Read more comments on GitHub >

github_iconTop Results From Across the Web

Efficient and accurate computation of the reciprocal of hypot(a,b)
In the following, I am showing ISO-C99 code that implements rhypot with good accuracy and good performance. The general algorithm is ...
Read more >
Reciprocal Teaching | Classroom Strategies - Reading Rockets
Teachers model, then help students learn to guide group discussions using four strategies: summarizing, question generating, clarifying, and predicting.
Read more >
Losing My Precision: Tips For Handling Tricky Floating Point ...
Tip 3: To prevent overflow and underflow (as well as loss of precision) when multiplying and dividing numbers, try to rearrange the product...
Read more >
MRR vs MAP vs NDCG: Rank-Aware Evaluation Metrics And ...
MRR: Mean Reciprocal Rank; MAP: Mean Average Precision; NDCG: Normalized Discounted Cumulative Gain. Flat and “Rank-less” Evaluation Metrics.
Read more >
Mean Average Precision vs Mean Reciprocal Rank
Mean reciprocal rank (MRR) gives you a general measure of quality in these situations, but MRR only cares about the single highest-ranked ...
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