Gauge-optimal approximate learning for small data classification problems