Week 3 assignment: Planar Data Classification with One Hidden Layer

The deepcopy is necessary to avoid modifying the global object. The reason your deepcopy did not work is you are copying the string name, not the actual parameter value.

Here’s a thread which explains why the copy is a good idea.

1 Like