Last answered:

30 Apr 2023

Posted on:

06 Nov 2021

2

When running plot running data section for plotting. I am getting error. I can't able to fix it.

When running code. I got error.

ValueError: operands could not be broadcast together with remapped shapes [original->remapped]: (1000,) and requested shape (1000,1)



image

4 answers ( 0 marked as helpful)
Posted on:

07 Nov 2021

1

If you change ax.plot by ax.scatter it should work

Posted on:

05 Dec 2021

0

Could you please explain why deltas need to be scaled? Without that the results are totally wrong...

Posted on:

28 Dec 2021

0

i think that xs and zs should be reshaped too:
ax.plot(xs.reshape(observations,), zs.reshape(observations,), targets)

Posted on:

30 Apr 2023

0

Or just simply don't reshape the targets. Keep them:

targets = targets.reshape(observations,1)

Submit an answer