change predict from string features to index features