Giter Club home page Giter Club logo

Comments (2)

Bruno-DaSilva avatar Bruno-DaSilva commented on August 23, 2024

Seems to me that the bug is in the quantile gem, and what's in the java client is correct. Seeing as the 50th percentile of 1,000,000 is 500,000 +- error (50,000 in this case), the ruby implementation is WAY off but the java one is still within bounds.

I did find the bug for this, it looks like the gem is double counting some values in some cases.
I've opened a PR in the gem, any chance you could take a look @grobie? It's a very small change. matttproud/ruby_quantile_estimation#11

Here's the difference in results:

numbers from 1 -> 1,000,000
OLD:
50th: 251919
90th: 449900
99th: 495284

NEW:
50th: 523945
90th: 904776
99th: 990792



numbers from 1 -> 100,000 + 50,000 -> 100,000
OLD:
50th: 39616
90th: 62061
99th: 66176

NEW:
50th: 65194
90th: 92842
99th: 99190

from client_ruby.

grobie avatar grobie commented on August 23, 2024

Thanks. Fixed in matttproud/ruby_quantile_estimation#11 which has been released. Going to release a new client gem soon.

from client_ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.