Check if data, explained instance and size make sense.

check_conditions(data, explained_instance, size)

Arguments

data

Data frame from which observations will be sampled.

explained_instance

Instance around which points will be sampled.

size

Number of observation in simulated dataset

Value

Produces an error if any of conditions aren't met.