E2CM: Early Exit via Class Means for Efficient Supervised and Unsupervised Learning | IEEE Conference Publication | IEEE Xplore