Giter Site home page Giter Site logo

Comments (5)

titicaca avatar titicaca commented on May 22, 2024

You can set this param approxQuantileRelativeError, which is the Relative Error for Approximate Quantile Calculation (0 <= value <= 1), default is 0 for calculating the exact value, which would be expensive for large datasets.

from spark-iforest.

titicaca avatar titicaca commented on May 22, 2024

Furthermore, ApproxQuantile is used to calculating the threshold of anomaly score for finding anomaly points according to the given param contamination. Regarding ApproxQuantile function, you can find more detail in the spark api doc:

https://spark.apache.org/docs/latest/api/python/_modules/pyspark/sql/dataframe.html#DataFrame.approxQuantile

from spark-iforest.

tahmedge avatar tahmedge commented on May 22, 2024

Hi, thanks for your reply. I am still bit confused.

Suppose, the contamination value is 0.1 . In this case, what could be the best value for ApproxQuantile ?

from spark-iforest.

titicaca avatar titicaca commented on May 22, 2024

It depends on what the relative error of the quantile value you can accept. The smaller the relative error is, the more expensive and more memory required for calculation. You can try with different values from small to large, so that it can fit your memory consume.

from spark-iforest.

tahmedge avatar tahmedge commented on May 22, 2024

Thanks a lot.

from spark-iforest.

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.