lmoroney / dlaicourse

Notebooks for learning deep learning
5.66k stars 5.36k forks source link

Compilation error when submitted (Week1-Housing Prices) #65

Open laksheenmendis opened 4 years ago

laksheenmendis commented 4 years ago

When I run the code in Jupyter Notebook, I'm getting a prediction of 4.008... But when submitted it shows the below error in grader's output..

Can't compile the student's code. invalid syntax (student_solution.py, line 22)

I'm clueless.. Can you please look into it..

conradwt commented 4 years ago

When I completed this exercise the other day, I used 10 examples. For example,

xs = 1.0 up to and including 10.0 ys = 1.0 up to and including 5.5. For example, 1.0, 1.5, and so on.

The predication should be close to 4.0 but not exactly 4.0. Finally, I learned through trial and error to do the following to create a good feeback loop:

  1. Run all cells

  2. Check the results

  3. Save the Notebook

%%javascript
<!-- Save the notebook -->
IPython.notebook.save_checkpoint();
  1. Submit the Notebook

  2. In another window, refresh the submission page.

e.g. You want to refresh this page

Screen Shot 2020-03-17 at 10 57 34 PM