Create train_shape_reg.cpp