Data Driven Sample Generator Model With Application to Classification