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

Answers
-
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
0 -
“Relative uses an absolute value to generate the sample”,what is the difference between it and “absolute”?
0 -
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
0 -
“Relative uses a relative value, so 0.1 would take 10% of the total number. ”
—what is the difference between “relative” and “probability” ?
0 -
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
0