Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Refactor KMedoids#140

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
chkoar wants to merge9 commits intoscikit-learn-contrib:main
base:main
Choose a base branch
Loading
fromchkoar:improve_kmedoids

Conversation

@chkoar
Copy link
Member

I tried to reduce the cyclomatic complexity in k medoids.
During refactoring I realized that we are testing private methods. Why is that?

So, the tests in the private methods are failing. What should we do?
Make the methods public, document and test them or just remove the tests by replace them with behavior testing on public methods?

I think that tests could be improved in general.

@chkoarchkoar changed the titleRefactor KMedoids[WIP] Refactor KMedoidsApr 9, 2022
@chkoarchkoar marked this pull request as draftApril 9, 2022 16:51
@chkoarchkoar changed the title[WIP] Refactor KMedoidsRefactor KMedoidsApr 9, 2022
Copy link
Member

@adrinjalaliadrinjalali left a comment

Choose a reason for hiding this comment

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

So, the tests in the private methods are failing. What should we do?

That's quite normal. We should be testing everything in the library, and sometimes it's easier to test smaller parts of the code which sometimes happen to be private.

-id:trailing-whitespace
-repo:https://github.com/psf/black
rev:20.8b1
rev:22.3.0
Copy link
Member

Choose a reason for hiding this comment

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

thanks for this change, but it should be a separate PR :)

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

True.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@adrinjalaliadrinjalaliadrinjalali left review comments

@rthrthAwaiting requested review from rth

@TimotheeMathieuTimotheeMathieuAwaiting requested review from TimotheeMathieu

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@chkoar@adrinjalali

[8]ページ先頭

©2009-2025 Movatter.jp