Skip to content

fix for #11680 issue - #11719

Closed
kiote wants to merge 1 commit into
scikit-learn:masterfrom
kiote:multiLabel-binarizer-cache
Closed

kiote wants to merge 1 commit into
scikit-learn:masterfrom
kiote:multiLabel-binarizer-cache

Conversation

@kiote

@kiote kiote commented Jul 31, 2018 •

Copy link
Copy Markdown
Contributor

Cache class mapping in MultiLabelBinarizer()

Reference Issues/PRs

Fixes #11680

What does this implement/fix? Explain your changes.

Any other comments?

  Cache class mapping in MultiLabelBinarizer()
@qinhanmin2014

qinhanmin2014 commented Jul 31, 2018 •

Copy link
Copy Markdown
Member

Please give your PR an informative title.
We need to set the attribute in fit to solve the problem, I think?
We don't need to set a private attribute in __init__.

@qinhanmin2014

Copy link
Copy Markdown
Member

And yes, some benchmarks will make the PR more persuasive, though maybe we don't need them here.

@TomDLT

TomDLT commented Jul 31, 2018 •

Copy link
Copy Markdown
Member

self._indexed_classes needs to be reset when self.classes_ changes.
This behavior will need a test.

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.

Cache class mapping in MultiLabelBinarizer()

3 participants