icaros-usc / pyribs

A bare-bones Python library for quality diversity optimization.
https://pyribs.org
MIT License
210 stars 35 forks source link

Fix `sklearn.cluster.KMeans` deprecation warning on Python 3.9 #224

Closed itsdawei closed 2 years ago

itsdawei commented 2 years ago

Description

On python 3.9, sklearn.cluster.kmeans has deprecated algorithm='full'. According to the documentation for kmeans,

"auto" and "full" are deprecated and they will be removed in Scikit-Learn 1.3. They are both aliases for "lloyd".

This deprecation has led to a warning for some users, and this changes resolves that warning.

TODO

Status