Data Science, Machine Learning, Statistics, Artificial Intelligence, Technology.
the original data, the desired sample size, the number of clusters needed, and it produces as output a stratified sample. Note that, this function, firstly performs weighted sampling using the click event. Secondly, it performs clustered sampling using the event_type. id price event_type click