1. 程式人生 > >第二周:神經網絡的編程基礎----------2、編程作業常見問題與答案(Programming Assignment FAQ)

第二周:神經網絡的編程基礎----------2、編程作業常見問題與答案(Programming Assignment FAQ)

sort sign 常見問題 keep 什麽 有變 圖標 更新 無限循環

Please note that when you are working on the programming exercise you will find comments that say "# GRADED FUNCTION: functionName". Do not edit that comment. The function in that code block will be graded.

1) What is a Jupyter notebook?

A Jupyter notebook is a document that allows you to have executable code and text in the same web-page. With Jupyter notebooks you do not have to download anything on your computer to do the programming exercises. Everything is provided for you online. You will be completing the exercise as you scroll down the webpage without having to jump between different files.

2) What is the coursera hub?

The coursera hub is the workspace which contains the notebook, helper files, data sets, and images. To go to the hub, you should first be in the notebook:


Click on File ==> Open as shown below:


This will lead you to an environment that has all your programming exercises and datasets. You should go there to check out any helper functions that we have provided for you.

3) How do I submit my assignment?

To submit the assignment, click on the blue button in the above image labelled "Submit Assignment."

4) How do I run a cell?

To run a cell, click on the cell and press Shift & Enter. You could also run the cell (or cells) by going to Cell and selecting one of the options:


5) What is a kernel?

You could think of the kernel as the core of the Jupyter notebook‘s operating system. Sometimes if the notebook blocks or if you want to clear all the variables and start all over again, rather than quitting the notebook and opening it again, you could:


Restart the kernel and clear the output if you accidentally end up in some sort of infinite loop.

6) Why do I get different results every time I run the same cell?

When you run a cell that updates some variable (e.g x: x+1), you will get different results for x as it keeps incrementing. Make sure you are not modifying your existing variables.

7) I got stuck on an assignment; what do I do?

In the Discussion Forums, there is a dedicated forum for each week of the course. You can post questions and get answers to them there. Please be sure to abide by the course Honor Code.

8) How do I save my progress?

Click on File ==> Save and Checkpoint


9) What should I do if my jupyter notebook froze?

Just restart the kernel by clicking on Kernel ==> Restart.

---------------------------------------------------中文翻譯--------------------------------------

請註意, 當你正在進行的編程練習, 你會發現評論說, "# GRADED FUNCTION: functionName"。不要編輯該註釋。該代碼塊中的函數將被分級。 1) 什麽是 Jupyter 筆記本? Jupyter 筆記本是一個文檔, 它允許您在同一網頁中具有可執行代碼和文本。使用 Jupyter 筆記本, 您不必在計算機上下載任何內容來進行編程練習。一切都是為您提供在線。當您向下滾動網頁而不需要在不同的文件之間跳轉時, 您將完成該練習。 2) 什麽是 coursera hub? coursera hub是包含筆記本、助手文件、數據集和圖像的工作區。要轉到hub, 您應該首先在筆記本中: Click on File ==> Open as shown below: 這將引導您到一個具有所有編程練習和數據集的環境。你應該去那裏看看我們為你提供的任何幫助函數。 3) 如何提交我的作業?

若要提交作業, 請單擊上面的 "Submit Assignment" 圖標上的藍色按鈕。

4) 如何運行cell?

若要運行cell, 請單擊該cell並按 Shift +Enter。您還可以通過進入cell並選擇其中一個選項來運行cell (或cells):

5) 什麽是kernel?

你可以把kernel看成是 Jupyter 筆記本操作系統的核心。有時, 如果筆記本阻塞, 或者您想清除所有變量並重新開始, 而不是退出筆記本並再次打開它, 您可以:

如果您意外地在某種無限循環中結束, 請重新啟動內核並清除輸出。

6) 為什麽每次運行同一單元格(cell)時都得到不同的結果?

在運行更新某些變量的單元格 (eg x:x+1) 時, x 的結果會不同, 因為它不斷遞增。請確保您沒有修改現有變量。

7) 我被一個任務難住了。我該怎麽辦?

在討論論壇中, 每個星期都有一個專門的論壇。你可以張貼問題, 並得到答案, 他們在那裏。請務必遵守課程榮譽代碼。

8) 如何保存我的進度?

Click on File ==> Save and Checkpoint


9) 如果我的jupyter notebook本死機了, 我該怎麽辦?

只需單擊Kernel ==> Restart,l就能重新啟動內核。

----------------------------------------------------------------------------------------------------------------------

註:部分圖片原網頁不能不能顯示。

第二周:神經網絡的編程基礎----------2、編程作業常見問題與答案(Programming Assignment FAQ)