make input data in classifier optional. if not present, return untrained model.