35948a322585b76a10cf76a5e736e8651b4112f4,yellowbrick/cluster/silhouette.py,SilhouetteVisualizer,__init__,#SilhouetteVisualizer#,103

Before Change


        // 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.
        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: DistrictDataLabs/yellowbrick
Commit Name: 35948a322585b76a10cf76a5e736e8651b4112f4
Time: 2019-05-25
Author: mgarod@gmail.com
File Name: yellowbrick/cluster/silhouette.py
Class Name: SilhouetteVisualizer
Method Name: __init__


Project Name: GPflow/GPflow
Commit Name: 3e8bf1822003feaee9f4ca9e46cc06e4a81d041e
Time: 2020-02-25
Author: dutordoirv@gmail.com
File Name: gpflow/ci_utils.py
Class Name:
Method Name: is_continuous_integration


Project Name: matthewwithanm/django-imagekit
Commit Name: bb7e9e58917a54e0982d4d343ed14895b3e9871c
Time: 2013-06-10
Author: m@tthewwithanm.com
File Name: imagekit/conf.py
Class Name: ImageKitConf
Method Name: configure_cache_backend


Project Name: andresriancho/w3af
Commit Name: a351ea7ae3c710e9de48bef466406604e12cd5d7
Time: 2019-02-13
Author: andres.riancho@gmail.com
File Name: w3af/core/controllers/core_helpers/fingerprint_404.py
Class Name: Fingerprint404
Method Name: _is_404_basic