[{'role': 'system', 'content': "You are an expert in machine learning and your task is to classify the code snippets into categories from the provided list of categories. List of categories: ['helper_functions', 'load_data', 'data_exploration', 'data_preprocessing', 'evaluation', 'modelling', 'prediction', 'result_visualization', 'save_results', 'comment_only']"}, {'role': 'user', 'content': 'Identify to which category the provided code belongs and assign the code snippet to at least 1 but up to 5 categories based on the probabilities, ignore if the probability of the category is negligible. Strictly provide your response as a list. Avoid providing any additional information, commentary, or personal opinions.\\nPython Code:class LinearRegressionGD(object):\ndef __init__(self, eta=0.001, n_iter=20):\nself.eta = eta\nself.n_iter = n_iter\ndef fit(self, X, y):\nself.w_ = np.zeros(1+ X.shape[1])\nself.cost_ = []\nfor i in range(self.n_iter):\noutput = self.net_input(X)\nerrors = (y - output)\nself.w_[1:] += self.eta * X.T.dot(errors)\nself.w_[0] += self.eta * errors.sum()\ncost = (errors**2).sum() / 2.0\nself.cost_.append(cost)\nreturn self\ndef net_input(self, X):\nreturn np.dot(X, self.w_[1:]) + self.w_[0]\ndef predict(self, X):\nreturn self.net_input(X)'}, {'role': 'assistant', 'content': "['modelling', 'prediction']"}]