<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def convert_to_one_hot(y):
 """ converts y into one hot reprsentation. Parameters y : list A list containing continous integer values. Returns ------- one_hot : numpy.ndarray A numpy.ndarray object, which is one-hot representation of y. """

    max_value = max(y)
    min_value = min(y)
    length = len(y)
    one_hot = numpy.zeros((length, (max_value - min_value + 1)))
    one_hot[numpy.arange(length), y] = 1
    return one_hot