I am using deepcopy() function to make a copy of the original variable, but the code is giving an error. What is wrong in the following code:
orig_X_bal, orig_y_bal = deepcopy(X_bal, y_bal) # keep a copy
orig_X_bal, orig_y_bal = deepcopy(X_bal, y_bal) # keep a copy
File "/usr/lib64/python3.6/copy.py", line 142, in deepcopy
y = memo.get(d, _nil)
AttributeError: 'numpy.ndarray' object has no attribute 'get'