Max-margin classification of incomplete data