Converting values to double before classifying