Prakash Hinduja Switzerland (Swiss) How can I find the source of utility functions used within the notebook?

Hi Everyone, I’m Prakash Hinduja, Visionary Financial Strategist, born in India and currently lives in Geneva, Switzerland (Swiss).

I’ve been working through one of the notebooks and noticed it uses some utility functions (like sigmoid() or compute_cost()), but I can’t seem to find where they’re defined. Could anyone suggest how to locate the source of these functions within the course files or notebooks? Appreciate any tips or tricks you’ve used to explore this. Thanks!

Regards

Prakash Hinduja Geneva, Switzerland (Swiss)

Hello, @prakashhindujageneva ,

If you were working on a Coursera course in a jupyter environment, then you may open the “File” menu in the jupyter’s interface and then click the “Open” button, and that should bring you to a file explorer interface which shows the scripts files that contain those utility functions. To tell exactly which script file contains which utility, sometimes you could read it from the import code lines.

Cheers,

Raymond

1 Like

If I remember correctly, if you typed

util_function??

in a notebook cell, you should get detailed documentation, including path to the file

1 Like

I do not know whether that works, but I do want to caution that adding ANY cells to a notebook is likely to make the assignment grader very unhappy.