GithubHelp home page GithubHelp logo

weird wraparound check about graph-explorer HOT 5 CLOSED

vimeo avatar vimeo commented on May 30, 2024
weird wraparound check

from graph-explorer.

Comments (5)

thepaul avatar thepaul commented on May 30, 2024

So, I intended for the wraparound point to be declared as an intrinsic property of the metric, in its tags, i.e. by the plugin or in the proto2. It matters because some counters have different wraparound points (216, 231, 2**32 being the most common) and if you use the wrong wraparound point with nonNegativeDerivative it will often be totally wrong. And if you leave the wraparound point off entirely, it usually does a good job, but in a few cases it seems to guess wrong.

from graph-explorer.

thepaul avatar thepaul commented on May 30, 2024

Would it be ok if it always used nonNegativeDerivative for counters, but also kept the ability to use an explicit wraparound point?

from graph-explorer.

Dieterbe avatar Dieterbe commented on May 30, 2024

wow I'm suprised. I thought graphite's nonNegativeDerivative would be pretty trivial to implement in a robust way: as long as y2 >= y1 -> emit (y2-y1)/(x2-x1), if y2 < y1 emit 0. I assume here that we don't mind losing a simple datapoint. Are you saying the results without specifying the wraparound point are worse than "perfect minus 1 lost datapoint"?

Either way, yes it seems useful to optionally specify a wraparound point for increased accuracy.
and yes, when deriving counters we should always use nonNegativeDerivative

from graph-explorer.

thepaul avatar thepaul commented on May 30, 2024

Yeah, it probably is just one lost datapoint per wraparound. But in a few cases those have been important datapoints, particularly at higher rollup levels.

from graph-explorer.

Dieterbe avatar Dieterbe commented on May 30, 2024

merged #66, this is no longer an issue

from graph-explorer.

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.