Skip to content
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

Default random_state for KMeans and FuzzyCMeans should be None #603

Open
vnmabus opened this issue Mar 6, 2024 · 0 comments
Open

Default random_state for KMeans and FuzzyCMeans should be None #603

vnmabus opened this issue Mar 6, 2024 · 0 comments
Labels

Comments

@vnmabus
Copy link
Member

vnmabus commented Mar 6, 2024

Bug description summary

The default behavior of KMeans and FuzzyCMeans when no random_state is passed should be to not use a fixed seed, as it is done in scikit-learn. Somehow, the current behavior is having a fixed seed (0).

Code to reproduce the bug

from skfda.ml.clustering import KMeans

clusterer = KMeans()
print(clusterer.random_state)

Expected result

None should be printed.

Actual result

A fixed seed of 0 is printed.

Traceback (if an exception is raised)

No response

Software versions

scikit-fda version: 0.9.2.dev0

Additional context

No response

@vnmabus vnmabus added the bug label Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant