Coder Social home page Coder Social logo

Comments (5)

ThaminduR avatar ThaminduR commented on June 26, 2024 1

I fixed the function to do the intended task. Check the PR.
@mkffl @agessner

Test the function and add a comment here. If we are good to go, I'll merge the pr.

from spark-privacy-preserver.

ThaminduR avatar ThaminduR commented on June 26, 2024

Intended behavior was to group numerical values gracefully rather than taking the min and the max values of a partition. It seems like there is a logical error in the ``agg_numerical_column``` .

from spark-privacy-preserver.

mkffl avatar mkffl commented on June 26, 2024

Do you have any external reference that explains/shows what how this method should work, ideally with code that does not include any logical error?

It's a shame that agg_numerical_column does not work exactly as it should but I am happy to have a try at fixing it and submitting a PR. I just a need a pointer.

from spark-privacy-preserver.

agessner avatar agessner commented on June 26, 2024

Any update on this?

from spark-privacy-preserver.

ThaminduR avatar ThaminduR commented on June 26, 2024

What the agg_numerical_column is intended to do is, take the min and max of the column and then round them up to the nearest x5 multiplier.

Intended behavior:

  • A column with values ranging from 3 to 9 would be aggregated to 0-10
  • A column with values ranging from 236 to12343 would be aggregated to 235-12345

If you have any suggestions to do this in another way, feel free to add those here.

from spark-privacy-preserver.

Related Issues (3)

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.