Shape Constraint Inference