def to_target(x):
    target = np.zeros((1, num_classes))
    ceil = int(math.ceil(x))
    floor = int(math.floor(x))
    if (ceil == floor):
        target[0][(floor - 1)] = 1
    else:
        target[0][(floor - 1)] = (ceil - x)
        target[0][(ceil - 1)] = (x - floor)
    return mx.nd.array(target)
def to_target(x):
    target = np.zeros((1, num_classes))
    ceil = int(math.ceil(x))
    floor = int(math.floor(x))
    if (ceil == floor):
        target[0][(floor - 1)] = 1
    else:
        target[0][(floor - 1)] = (ceil - x)
        target[0][(ceil - 1)] = (x - floor)
    return mx.nd.array(target)