human
Give me a the Python code you requested given the following:
I am working on the file "DL0110EN/5.4.2High Condition Number.ipynb".
The first task is:
<!--Empty Space for separating topics-->

<h2 id="Makeup_Data">Make Some Data</h2>

Generate values from -2 to 2 that create a line with a slope of 0.1 and a bias of 10000. This is the line that you need to estimate. Add some noise to the data:
Can you write Python code for it?
assistant
#Here is the Python code you requested.

# Define a class to create the dataset

class Data(Dataset):
    
    # Constructor
    def __init__(self):
        self.x = torch.arange(-2, 2, 0.1).view(-1, 1)
        self.f = 1 * self.x + 10000
        self.y = self.f + 0.1 * torch.randn(self.x.size())
        self.len = self.x.shape[0]
        
    # Getter
    def __getitem__(self, index):    
        return self.x[index], self.y[index]
    
    # Get Length
    def __len__(self):
        return self.len