Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@manu-chroma
Copy link
Contributor

@manu-chroma manu-chroma commented Aug 5, 2016

Reference Issue

Partially Fixes #6670

What does this implement/fix? Explain your changes.

  1. added return_X_y option for load_breast_cancer dataset
  2. Wrote tests for the same

Any other comments?

Very similar to #7049

@manu-chroma manu-chroma changed the title [MRG + 1] load_breast_cancer dataset: added return_X_y option [MRG] load_breast_cancer dataset: added return_X_y option Aug 5, 2016
Parameters
----------
return_X_y : boolean, deafult=True
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deafult -> default

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also I believe default should be False?

@nelson-liu
Copy link
Contributor

You should also edit your previous entry in whats_new.rst to reflect the changes you've made here.

@manu-chroma
Copy link
Contributor Author

Fixed.

- Added new return type ``(data, target)`` : tuple option to
:func:`load_iris` dataset.
:func:`load_iris` dataset, :func:`load_breast_cancer` dataset
(`#7049 <https://github.com/scikit-learn/scikit-learn/pull/7049>`_) by
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

im inclined to have it formatted as such:
Add new return option to load (link to pr), loader2 (link to another pr), etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's a better formatting. Fixed.

@nelson-liu
Copy link
Contributor

LGTM, thanks!

@agramfort agramfort merged commit c98adf7 into scikit-learn:master Aug 6, 2016
@agramfort
Copy link
Member

thx @manu-chroma

TomDLT pushed a commit to TomDLT/scikit-learn that referenced this pull request Oct 3, 2016
…rn#7152)

* added return_X_y option to breast_cancer_dataset, tests included

* fix typo

* update whats_new

* removed extra space

* improved whats_new changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add return_tuple option to data loaders that return a Bunch

3 participants