Title: sklearn.cross_validation.KFold updates · Issue #2 · chrisclark/PythonForDataScience · GitHub
Open Graph Title: sklearn.cross_validation.KFold updates · Issue #2 · chrisclark/PythonForDataScience
X Title: sklearn.cross_validation.KFold updates · Issue #2 · chrisclark/PythonForDataScience
Description: Running crossValidate.py with the latest version of sklearn gave this error: Traceback (most recent call last): File "crossValidate.py", line 29, in main() File "crossValidate.py", line 16, in main cv = cross_validation.KFold(len(train),...
Open Graph Description: Running crossValidate.py with the latest version of sklearn gave this error: Traceback (most recent call last): File "crossValidate.py", line 29, in main() File "crossValidate.py", line 16, in main...
X Description: Running crossValidate.py with the latest version of sklearn gave this error: Traceback (most recent call last): File "crossValidate.py", line 29, in main() File "crossValidate.py&quo...
Opengraph URL: https://github.com/chrisclark/PythonForDataScience/issues/2
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"sklearn.cross_validation.KFold updates","articleBody":"Running crossValidate.py with the latest version of sklearn gave this error: \n\n\u003e Traceback (most recent call last):\n\u003e File \"crossValidate.py\", line 29, in \u003cmodule\u003e\n\u003e main()\n\u003e File \"crossValidate.py\", line 16, in main\n\u003e cv = cross_validation.KFold(len(train), k=5, indices=False)\n\u003e TypeError: **init**() got an unexpected keyword argument 'k'\n\nChanging **\"k=5\"** to **\"n_folds=5\"**, per [the documentation](http://scikit-learn.org/stable/modules/generated/sklearn.cross_validation.KFold.html#sklearn.cross_validation.KFold) fixed the error.\n\nHowever, I then got this warning:\n\n\u003e DeprecationWarning: The indices parameter is deprecated and will be removed (assumed True) in 0.17\n\u003e stacklevel=1)\n","author":{"url":"https://github.com/aedunn6","@type":"Person","name":"aedunn6"},"datePublished":"2015-03-11T16:09:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2/PythonForDataScience/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:d7c68f8e-c951-5f43-6c4c-e357fafd02de |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9A0A:12CE77:1175A4A:16F7A1E:698ECF8B |
| html-safe-nonce | 5f35718798e5dc1fc6575daef22168659285c8083eec34315e6b54e35f8bc55b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTBBOjEyQ0U3NzoxMTc1QTRBOjE2RjdBMUU6Njk4RUNGOEIiLCJ2aXNpdG9yX2lkIjoiMTU1ODk5MTk0Njc0NzEzNzkzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 18d0d48950e5ed2ed7e1066d8b2a32560acc20cd980b99a70e71ec6e2d0317e3 |
| hovercard-subject-tag | issue:60683181 |
| 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/chrisclark/PythonForDataScience/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/451c83ada5095292b5b1cac0faad99c30ce9ecece2b9febed2cbc888897c680e/chrisclark/PythonForDataScience/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/451c83ada5095292b5b1cac0faad99c30ce9ecece2b9febed2cbc888897c680e/chrisclark/PythonForDataScience/issues/2 |
| og:image:alt | Running crossValidate.py with the latest version of sklearn gave this error: Traceback (most recent call last): File "crossValidate.py", line 29, in main() File "crossValidate.py", line 16, in main... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aedunn6 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/chrisclark/PythonForDataScience git https://github.com/chrisclark/PythonForDataScience.git |
| octolytics-dimension-user_id | 693700 |
| octolytics-dimension-user_login | chrisclark |
| octolytics-dimension-repository_id | 4799082 |
| octolytics-dimension-repository_nwo | chrisclark/PythonForDataScience |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 4799082 |
| octolytics-dimension-repository_network_root_nwo | chrisclark/PythonForDataScience |
| 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 | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width