Week 3 Assignment 1 - model.fit

Hi,
Right after exercise 3, when I run model.fit cell I get the following error:
ValueError: Data cardinality is ambiguous:
x sizes: 10000, 10, 10
y sizes: 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000
Please provide data which shares the same first dimension.

I’m not sure what the problem is, all previous tests passed successfully…

What are your results from the 4th cell in the notebook - where it displays the shapes of Xoh and Yoh?

Please post a screen capture image.

Also, try re-running all of the cells in the notebook.

The notebooks tend to use a lot of global variables, so sometimes the cells need to be run in sequence to get the expected results.

Thanks! No problem any more. :slight_smile: