Traceback (most recent call last):


 "C:/Users/J/PycharmProjects/stockprediction/ann.py", line 67, in <module>

grid_result = grid.fit(trainX, trainY_buy)


 "C:\ProgramData\Anaconda3\lib\site-packages\sklearn\model_selection\_search.py", line 945, in fit

return self._fit(X, y, groups, ParameterGrid(self.param_grid))


 "C:\ProgramData\Anaconda3\lib\site-packages\sklearn\model_selection\_search.py", line 550, in _fit

base_estimator = clone(self.estimator)


 "C:\ProgramData\Anaconda3\lib\site-packages\sklearn\base.py", line 69, in clone

new_object_params[name] = clone(param, safe=False)


 "C:\ProgramData\Anaconda3\lib\site-packages\sklearn\base.py", line 60, in clone

return copy.deepcopy(estimator)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 182, in deepcopy

y = _reconstruct(x, rv, 1, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 297, in _reconstruct

state = deepcopy(state, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 155, in deepcopy

y = copier(x, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 243, in _deepcopy_dict

y[deepcopy(key, memo)] = deepcopy(value, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 182, in deepcopy

y = _reconstruct(x, rv, 1, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 297, in _reconstruct

state = deepcopy(state, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 155, in deepcopy

y = copier(x, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 243, in _deepcopy_dict

y[deepcopy(key, memo)] = deepcopy(value, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 182, in deepcopy

y = _reconstruct(x, rv, 1, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 297, in _reconstruct

state = deepcopy(state, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 155, in deepcopy

y = copier(x, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 243, in _deepcopy_dict

y[deepcopy(key, memo)] = deepcopy(value, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 155, in deepcopy

y = copier(x, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 218, in _deepcopy_list

y.append(deepcopy(a, memo))


 "C:\ProgramData\Anaconda3\lib\copy.py", line 182, in deepcopy

y = _reconstruct(x, rv, 1, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 297, in _reconstruct

state = deepcopy(state, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 155, in deepcopy

y = copier(x, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 243, in _deepcopy_dict

y[deepcopy(key, memo)] = deepcopy(value, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 182, in deepcopy

y = _reconstruct(x, rv, 1, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 297, in _reconstruct

state = deepcopy(state, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 155, in deepcopy

y = copier(x, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 243, in _deepcopy_dict

y[deepcopy(key, memo)] = deepcopy(value, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 155, in deepcopy

y = copier(x, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 218, in _deepcopy_list

y.append(deepcopy(a, memo))


 "C:\ProgramData\Anaconda3\lib\copy.py", line 155, in deepcopy

y = copier(x, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 223, in _deepcopy_tuple

y = [deepcopy(a, memo) for a in x]


 "C:\ProgramData\Anaconda3\lib\copy.py", line 223, in <listcomp>

y = [deepcopy(a, memo) for a in x]


 "C:\ProgramData\Anaconda3\lib\copy.py", line 155, in deepcopy

y = copier(x, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 243, in _deepcopy_dict

y[deepcopy(key, memo)] = deepcopy(value, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 182, in deepcopy

y = _reconstruct(x, rv, 1, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 297, in _reconstruct

state = deepcopy(state, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 155, in deepcopy

y = copier(x, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 243, in _deepcopy_dict

y[deepcopy(key, memo)] = deepcopy(value, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 182, in deepcopy

y = _reconstruct(x, rv, 1, memo)


 "C:\ProgramData\Anaconda3\lib\copy.py", line 306, in _reconstruct

y.__dict__.update(state)
AttributeError: 'NoneType' object has no attribute 'update'

Traceback (most recent call last):


 "C:\Users\adnan\AppData\Local\Programs\Python\Python38-32\lib\site-packages\tornado\ioloop.py", line 907, in _run

return self.callback()


 "C:\Users\adnan\AppData\Local\Programs\Python\Python38-32\lib\site-packages\distributed\nanny.py", line 414, in memory_monitor

process = self.process.process
AttributeError: 'NoneType' object has no attribute 'process'
