// Visual Properties
// TODO: Fix the color handling
self.colormap = kwargs.get("colormap", "set1")
self.color = kwargs.get("color", None)
def fit(self, X, y=None, **kwargs):
Fits the model and generates the silhouette visualization.
After Change
// which will override colors. If neither is found, default to None.
// The colormap may yet still be found in resolve_colors
self.colors = colors
if "colormap" in kwargs:
self.colors = kwargs["colormap"]
def fit(self, X, y=None, **kwargs):
Fits the model and generates the silhouette visualization.