Computing Generic Abstractions from Application Datasets