🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

what is the difference between “relative” and “probability” for operator “sample”?

what is the difference between “relative” and “probability” ?

image.png

Find more posts tagged with

Sort by:
1 - 5 of 51

    Hi @AP,

    Relative uses an specific value to generate the sample, whereas the probability option uses a probabilistic approach. This means that relative will always produce the requested number of attributes, e.g. requestion 0.1 of 100 will always mean 10 examples, whereas using a probability option could mean a range of values centered around 10.

    Hope this makes sense.

    Thanks,

    Roland

    “Relative uses an absolute value to generate the sample”,what is the difference between it and “absolute”?

    Relative uses a relative value, so 0.1 would take 10% of the total number. For absolute you provide the absolute values, so if you wanted 10 values, you set it to 10.

    Best,

    Roland

    “Relative uses a relative value, so 0.1 would take 10% of the total number. ”

    —what is the difference between “relative” and “probability” ?

    Hi @AP,

    Please see my first answer. Relative will give you a specific value relative to the total number of examples, whereas probability will take a probabilistic approach meaning you are not guaranteed an exact number.

    Example:

    You have 100 examples.

    Setting the option to "relative" with value 0.1 will always give you 10 examples

    Setting the option to "probability" with values 0.1 will sometimes give you 10 examples, or may give you 9, or 11, or 12, and so on.

    Best,

    Roland