Data-Driven Classification Algorithm