Title: bug fix: error of array in sklearn by yonglam · Pull Request #3 · sinb/TextClassify · GitHub
Open Graph Title: bug fix: error of array in sklearn by yonglam · Pull Request #3 · sinb/TextClassify
X Title: bug fix: error of array in sklearn by yonglam · Pull Request #3 · sinb/TextClassify
Description: 中文文本分类器,训练简单,多种模型可选. Contribute to sinb/TextClassify development by creating an account on GitHub.
Open Graph Description: ValueError: Expected 2D array, got 1D array instead: array=[ 0. 0. 0. ..., 0. 0. 0.]. Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, ...
X Description: ValueError: Expected 2D array, got 1D array instead: array=[ 0. 0. 0. ..., 0. 0. 0.]. Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, ...
Opengraph URL: https://github.com/sinb/TextClassify/pull/3
X: @github
Domain: github.com
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:c7647738-76bc-5b9b-6b84-96b77a419531 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B622:951B6:104A4F4:176F0B9:6A58A07F |
| html-safe-nonce | 2f5c96a00d4af5448ea793e25de3e345fe2f51fb3e8a4eb69c159068e2d7f3f4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjIyOjk1MUI2OjEwNEE0RjQ6MTc2RjBCOTo2QTU4QTA3RiIsInZpc2l0b3JfaWQiOiI0MzEyNDIwOTE1Mjk4NzM4MzAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 26cc3a9824c47b688ff9ef0cdd35d7eb121dc33b5af72f050d49aa89f866c0a2 |
| hovercard-subject-tag | pull_request:143271095 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/voltron/pull_requests/show/sinb/TextClassify/3/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/910848534f4ac719c5c508beb825d85898e9d57da01211fc9355e5032bf75a28/sinb/TextClassify/pull/3 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/910848534f4ac719c5c508beb825d85898e9d57da01211fc9355e5032bf75a28/sinb/TextClassify/pull/3 |
| og:image:alt | ValueError: Expected 2D array, got 1D array instead: array=[ 0. 0. 0. ..., 0. 0. 0.]. Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | yonglam |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-cache |
| go-import | github.com/sinb/TextClassify git https://github.com/sinb/TextClassify.git |
| octolytics-dimension-user_id | 4196776 |
| octolytics-dimension-user_login | sinb |
| octolytics-dimension-repository_id | 47597013 |
| octolytics-dimension-repository_nwo | sinb/TextClassify |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 47597013 |
| octolytics-dimension-repository_network_root_nwo | sinb/TextClassify |
| 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 | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width