8000 MRG Class weight refactor by amueller · Pull Request #1485 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

MRG Class weight refactor #1485

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jan 3, 2013
Merged

Conversation

amueller
Copy link
Member

New PR as I messed up #1464.

@ogrisel gave his +1 there.

@erg your comments would still be welcome.

Also more comments by @larsmans and @mblondel ;)

@amueller
Copy link
Member Author

Sorry for pestering but I would really like to merge this soon, as I want to work on #1411, which I think is release critical.

@ogrisel
Copy link
Member
ogrisel commented Dec 29, 2012

+1 again

- :class:`svm.SVC` and :class:`svm.NuSVC` now provide a ``classes_``
attribute and support arbitrary dtypes for labels ``y``.
Also, the dtype returned by ``predict`` now reflects the dtype of
``y`` during ``fit`` (used to be ``np.float``).
Copy link
Member

Choose a reason for hiding this comment

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

We should probably be consistent in the whole scikit for this (test_common...). Of course, this is not in the scope of this PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

There is already a test, that would actually test for strings, but it is commented out still, because something in the SGD didn't like it. I wasn't in the mood to investigate but will after some my current PRs are merged.

@mblondel
Copy link
Member
mblondel commented Jan 2, 2013

Apart from my comment, +1.

@amueller amueller merged commit 1c1538a into scikit-learn:master Jan 3, 2013
@amueller
Copy link
Member Author
amueller commented Jan 3, 2013

Moved compute_class_weights to dedicated file and merged.

@amueller amueller deleted the class_weight_refactor branch January 3, 2013 12:29
@ogrisel
Copy link
Member
ogrisel commented Jan 3, 2013

\o/

8000

@amueller
Copy link
Member Author
amueller commented Jan 3, 2013

🍻

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 1c1538a on amueller:class_weight_refactor into * on scikit-learn:master*.

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.

4 participants
0