Title: "Cannot convert argument type %s to rgba array" % type(c)) · Issue #2 · cylance/IntroductionToMachineLearningForSecurityPros · GitHub
Open Graph Title: "Cannot convert argument type %s to rgba array" % type(c)) · Issue #2 · cylance/IntroductionToMachineLearningForSecurityPros
X Title: "Cannot convert argument type %s to rgba array" % type(c)) · Issue #2 · cylance/IntroductionToMachineLearningForSecurityPros
Description: In visualize_vectors.py on line 16 the third paramater zs passed to plt.scatter() causes and exception to be thrown when trying to convert to an rgba array. I was able to resolve this issue with minor fixes. Python Version: 2.7.12 Matplo...
Open Graph Description: In visualize_vectors.py on line 16 the third paramater zs passed to plt.scatter() causes and exception to be thrown when trying to convert to an rgba array. I was able to resolve this issue with mi...
X Description: In visualize_vectors.py on line 16 the third paramater zs passed to plt.scatter() causes and exception to be thrown when trying to convert to an rgba array. I was able to resolve this issue with mi...
Opengraph URL: https://github.com/cylance/IntroductionToMachineLearningForSecurityPros/issues/2
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"Cannot convert argument type %s to rgba array\" % type(c))","articleBody":"In `visualize_vectors.py` on line 16 the third paramater `zs` passed to `plt.scatter()` causes and exception to be thrown when trying to convert to an rgba array. I was able to resolve this issue with minor fixes.\r\n\r\nPython Version: 2.7.12\r\nMatplotlib Version: 1.5.1\r\nNumpy Version: 1.11.0\r\n\r\nException Thrown:\r\n\r\n\u003echris@chris-HP-EliteBook-820-G3:~/Projects/IntroductionToMachineLearningForSecurityPros/clustering_example$ python visualize_vectors.py -i secrepo.h5\r\n(10000, 3)\r\nTraceback (most recent call last):\r\n File \"visualize_vectors.py\", line 32, in \u003cmodule\u003e\r\n visualize(vectors)\r\n File \"visualize_vectors.py\", line 17, in visualize\r\n s=200,\r\n File \"/usr/lib/python2.7/dist-packages/matplotlib/pyplot.py\", line 3251, in scatter\r\n edgecolors=edgecolors, data=data, **kwargs)\r\n File \"/usr/lib/python2.7/dist-packages/mpl_toolkits/mplot3d/axes3d.py\", line 2273, in scatter\r\n patches = Axes.scatter(self, xs, ys, s=s, c=c, *args, **kwargs)\r\n File \"/usr/lib/python2.7/dist-packages/matplotlib/__init__.py\", line 1814, in inner\r\n return func(ax, *args, **kwargs)\r\n File \"/usr/lib/python2.7/dist-packages/matplotlib/axes/_axes.py\", line 3893, in scatter\r\n alpha=alpha\r\n File \"/usr/lib/python2.7/dist-packages/matplotlib/collections.py\", line 831, in __init__\r\n Collection.__init__(self, **kwargs)\r\n File \"/usr/lib/python2.7/dist-packages/matplotlib/collections.py\", line 117, in __init__\r\n self.set_facecolor(facecolors)\r\n File \"/usr/lib/python2.7/dist-packages/matplotlib/collections.py\", line 612, in set_facecolor\r\n self._facecolors = mcolors.colorConverter.to_rgba_array(c, self._alpha)\r\n File \"/usr/lib/python2.7/dist-packages/matplotlib/colors.py\", line 391, in to_rgba_array\r\n \"Cannot convert argument type %s to rgba array\" % type(c))\r\n","author":{"url":"https://github.com/ajackal","@type":"Person","name":"ajackal"},"datePublished":"2018-03-09T22:47:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2/IntroductionToMachineLearningForSecurityPros/issues/2"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dc034e75-4af0-2d0a-a2de-8003df6b8d27 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B120:1668CD:F5B779:147A435:6A52D1CB |
| html-safe-nonce | 4023af7dab2dfa4730e98b8e592976b7a0e36fd5d63ad2c45f1e416bce10e945 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTIwOjE2NjhDRDpGNUI3Nzk6MTQ3QTQzNTo2QTUyRDFDQiIsInZpc2l0b3JfaWQiOiI2ODM3NTAzNjQ4MjgyNjI4NTU1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 182f223f3baa8efc56534c6b92aa9f4a7a0706679ed4a7df5f84c7029b87c25d |
| hovercard-subject-tag | issue:304004981 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cylance/IntroductionToMachineLearningForSecurityPros/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1100f874768d035e34965aa0131ebab87dbecae02598c7bfa9ab68cde013c4d2/cylance/IntroductionToMachineLearningForSecurityPros/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1100f874768d035e34965aa0131ebab87dbecae02598c7bfa9ab68cde013c4d2/cylance/IntroductionToMachineLearningForSecurityPros/issues/2 |
| og:image:alt | In visualize_vectors.py on line 16 the third paramater zs passed to plt.scatter() causes and exception to be thrown when trying to convert to an rgba array. I was able to resolve this issue with mi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ajackal |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/cylance/IntroductionToMachineLearningForSecurityPros git https://github.com/cylance/IntroductionToMachineLearningForSecurityPros.git |
| octolytics-dimension-user_id | 2954975 |
| octolytics-dimension-user_login | cylance |
| octolytics-dimension-repository_id | 99758261 |
| octolytics-dimension-repository_nwo | cylance/IntroductionToMachineLearningForSecurityPros |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 99758261 |
| octolytics-dimension-repository_network_root_nwo | cylance/IntroductionToMachineLearningForSecurityPros |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width