Train a support vector machine with pairs of temperature, weight measurements and perform prediction on randomly generated samples.