The issue I am having occurs in the for loop. I am tryin to move the values of bbox into the dummy list but the following seems to happen:
- the first iteration occurs succesfully
- on the following iterations, the values stored in bbox in the first iteration are kept the same, they are not updated.
please do let me know what I am doing wrong, and perhaps point me to some references I should read.
train_names = train_data["file_name"].to_numpy()
train_labels = train_data["label"].to_numpy()
train_x1 = train_data["x1"].to_numpy()
train_x2 = train_data["x2"].to_numpy()
train_y1 = train_data["y1"].to_numpy()
train_y2 = train_data["y2"].to_numpy()
index = 60000
bbox = [1, 2, 3, 4]
dummy = [0]*index
for n in range(index):
bbox[0] = train_x1[n]
bbox[1] = train_y1[n]
bbox[2] = train_x2[n]
bbox[3] = train_y2[n]
dummy[n] = bbox
dummy
//Sample of the output provided below :D of course there is more but it is all the same :D
[[0.16, 0.21, 0.44, 0.49],
[0.16, 0.21, 0.44, 0.49],
[0.16, 0.21, 0.44, 0.49],
[0.16, 0.21, 0.44, 0.49],
[0.16, 0.21, 0.44, 0.49],
[0.16, 0.21, 0.44, 0.49],
[0.16, 0.21, 0.44, 0.49],
[0.16, 0.21, 0.44, 0.49],
[0.16, 0.21, 0.44, 0.49],
[0.16, 0.21, 0.44, 0.49],
[0.16, 0.21, 0.44, 0.49],
[0.16, 0.21, 0.44, 0.49],
[0.16, 0.21, 0.44, 0.49],