Advertisement
Guest User

Untitled

a guest
Dec 17th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.29 KB | None | 0 0
  1. /Users/oliviasalomon/miniconda3/envs/iaml/lib/python2.7/site-packages/ipykernel_launcher.py:21: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison
  2. ---------------------------------------------------------------------------
  3. IndexError                                Traceback (most recent call last)
  4. <ipython-input-90-7f03f12dfcc7> in <module>()
  5.      19
  6.      20 for color, i, target_name in zip(colors, [0, 1, 2, 3, 4], classes):
  7. ---> 21     plt.scatter(X_r[y == i, 0], X_r[y == i, 1], color=color, alpha=.8, lw=lw,
  8.      22                 label=target_name)
  9.      23 plt.legend(loc='best', shadow=False, scatterpoints=1)
  10.  
  11. IndexError: in the future, 0-d boolean arrays will be interpreted as a valid boolean index
  12.  
  13. <matplotlib.figure.Figure at 0x10b2ba5d0>
  14. ^I promise that THIS WAS WORKING in my previous submission, but it's no longer working! I believe that I accidentally deleted the line where I defined y2, but I can't remember how I made it work, and I forgot to continuously save and so cannot revert to an earlier version to see.
  15.  
  16. I had to resubmit the assignment because I've added a lot of work to 2.5, and I figured that 2.5 is worth more than this problem, so I'm making this sacrifice. I'm sorry it's not working anymore :(
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement