Identifying tumor cells at the single-cell level using machine learning