
Sampling - Guide - Apache DataFu Pig
Simple Random Sampling produces samples of a specific size, where each item has the same probability of being chosen. DataFu has scalable implementations of this that will generate …
Guide - Apache DataFu Pig
Sampling: simple random sample with/without replacement, weighted sample, sample by keys Hashing: SHA and MD5 Link Analysis: PageRank Assorted Macros: deduplication of tables, …
SimpleRandomSample (datafu-pig 1.6.1 API)
It takes a bag of n items and a sampling probability p as the inputs, and outputs a simple random sample of size exactly ceil (p*n) in a bag, with probability at least 99.99%.
Apache DataFu Pig - Getting Started
Sampling Simple random sampling with or without replacement, weighted sampling. Link Analysis Run PageRank on a graph represented by a bag of nodes and edges. More Other useful …
ReservoirSample (datafu-pig 1.6.1 API)
java.lang.Object org.apache.pig.EvalFunc<T> org.apache.pig.AccumulatorEvalFunc<org.apache.pig.data.DataBag> …
SimpleRandomSampleWithReplacementVote (datafu-pig 1.4.0 API)
We can simply draw a number from this distribution, determine the positions by sampling without replacement, and then generate random scores for those positions.
SimpleRandomSample (DataFu 1.1.0)
It takes a sampling probability p as input and outputs a simple random sample of size exactly ceil (p*n) with probability at least 99.99%, where $n$ is the size of the population.
datafu.pig.sampling (DataFu 1.2.0)
Sampling UDFs, including weighted sample, reservoir sampling, sampling by key, etc.
WeightedSample (datafu-pig 1.6.1 API)
Create a new bag by performing a weighted sampling without replacement from the input bag. Sampling is biased according to a weight that is part of the inner tuples in the bag.
SampleByKey (DataFu 1.2.0)
The method of sampling is to convert the key to a hash, derive a double value from this, and then test this against a supplied probability. The double value derived from a key is uniformly …