Skip to content

Commit

Permalink
Fix warnings in sklearn and README.md does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
arvkevi committed Dec 28, 2023
1 parent 54027e2 commit 927ceaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ authors = [
{ name="Marshall Krassenstein", email="[email protected]"},
]
description = "Create colormaps from images"
readme = "README.md"
readme = "README.rst"
requires-python = ">=3.7"
classifiers = [
"License :: OSI Approved :: MIT License",
Expand Down
2 changes: 1 addition & 1 deletion src/img2cmap/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def generate_cmap(self, n_colors=4, palette_name=None, random_state=None):
matplotlib.colors.ListedColormap: A matplotlib ListedColormap object.
"""
# create a kmeans model
self.kmeans = MiniBatchKMeans(n_clusters=n_colors, random_state=random_state)
self.kmeans = MiniBatchKMeans(n_clusters=n_colors, random_state=random_state, n_init="auto")
# fit the model to the pixels
self.kmeans.fit(self.pixels)
# get the cluster centers
Expand Down

0 comments on commit 927ceaf

Please sign in to comment.