Git Product home page Git Product logo

Comments (2)

shivam221098 avatar shivam221098 commented on May 19, 2024

I can't understand clearly. Does that mean comparing today's row count with yesterday's and today's row count with the day before yesterday and so on up to 7 days latest days?

For example - if today is 28 April 2023

then the comparison will be

Today previous is_equal
28-April-2023 27-April-2023 true
28-April-2023 26-April-2023 true
28-April-2023 25-April-2023 true
28-April-2023 24-April-2023 false
28-April-2023 23-April-2023 true
28-April-2023 22-April-2023 true
28-April-2023 21-April-2023 true

Is this need to be done or just have to compare it with 7 days old table? and output as true or false.

from bigfunctions.

unytics avatar unytics commented on May 19, 2024

I was thinking on:

  • getting table row count for today using INFORMATION_SCHEMA
  • getting table row count for latest 7 days using INFORMATION_SCHEMA and time travel
  • calling prophet bigfunction to forecast the row count of today given the row counts of the latest 7 days
  • return an anomaly score given the distance from the prediction and the real value. The score computation must be clever.

We can also avoid prophet and use a business rule.

from bigfunctions.

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.