Skip to main content
added 4 characters in body
Source Link
Ethan
  • 1.7k
  • 9
  • 24
  • 39

If I understood correctly your code, this should be fixed just by doing

if (y_cap == np.zeros(len(y_cap))).all():

assuming that y_capy_cap is a numpy array (by the way, providing an example for y_capy_cap would help).

If I understood correctly your code, this should be fixed just by doing

if (y_cap == np.zeros(len(y_cap))).all():

assuming that y_cap is a numpy array (by the way, providing an example for y_cap would help).

If I understood correctly your code, this should be fixed just by doing

if (y_cap == np.zeros(len(y_cap))).all():

assuming that y_cap is a numpy array (by the way, providing an example for y_cap would help).

Source Link

If I understood correctly your code, this should be fixed just by doing

if (y_cap == np.zeros(len(y_cap))).all():

assuming that y_cap is a numpy array (by the way, providing an example for y_cap would help).