I would like to understand this line of code
I know it makes a plot, but could you please give me a more specific explination?
Thank you
plot_decision_boundary(lambda x: predict(parameters, x.T), X, Y)
I would like to understand this line of code
I know it makes a plot, but could you please give me a more specific explination?
Thank you
plot_decision_boundary(lambda x: predict(parameters, x.T), X, Y)
You can find the source code for the function plot_decision_boundary by clicking “File → Open” and then opening the file planar_utils.py. The way to have figured that out would be to examine the “import” cell early in the notebook. There is a topic about how to view utility functions on the DLS FAQ Thread.
Also note that the invocation of that function passed a python “lambda function” as the first argument. You can pass references to functions as parameters to a python function. Google “python lambda function” to learn more about how those work.
Thank you very much