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

Skip to content

[MRG] use _check_sample_weight in KernelDensity #15493

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

Closed
wants to merge 1 commit into from

Conversation

MDouriez
Copy link
Contributor

@MDouriez MDouriez commented Nov 2, 2019

Reference Issues/PRs

#15358

What does this implement/fix? Explain your changes.

Any other comments?

@MDouriez MDouriez changed the title use _check_sample_weight in KernelDensity [MRG] use _check_sample_weight in KernelDensity Nov 2, 2019
" but was {1}".format(X.shape[0],
sample_weight.shape))
check_consistent_length(X, sample_weight)
sample_weight = _check_sample_weight(sample_weight, X)
Copy link
Member

Choose a reason for hiding this comment

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

We might need to keep the dtype

Suggested change
sample_weight = _check_sample_weight(sample_weight, X)
sample_weight = _check_sample_weight(sample_weight, X, dtype=DTYPE)

@MDouriez
Copy link
Contributor Author

MDouriez commented Nov 2, 2019

looks like a duplicate PR was approved: #15519

@MDouriez
Copy link
Contributor Author

MDouriez commented Nov 2, 2019

see #15519

@MDouriez MDouriez closed this Nov 2, 2019
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.

2 participants