How to make a neural network output a specific number out of a certain range?
There are two ways to do that:

Scale your output data from [0, 2] to [0, 1] and apply Sigmoid activation at the end.

Make your own custom activation function that output everything in [0, 2]


I strongly suggest you no. 1, it's way faster to implement.