eb3443d8d4f24005d7dac4320b82917a2f455728,kmapper/visuals.py,,_format_cluster_statistics,#Any#Any#Any#,251

Before Change


            zip(
                std_m,
                X_names,
                np.mean(X, axis=0),
                cluster_X_mean,
                above_mean,
                np.std(X, axis=0),

After Change


        X_mean = np.array(
            np.mean(X, axis=0)
        ).squeeze()
        X_std = np.array(
            // use StandardScaler as a way to get std for dense or sparse array
            np.sqrt(preprocessing.StandardScaler(with_mean=False).fit(X).var_)
        ).squeeze()

        above_mean = cluster_X_mean > X_mean
        std_m = np.sqrt((cluster_X_mean - X_mean) ** 2) / X_std
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: MLWave/kepler-mapper
Commit Name: eb3443d8d4f24005d7dac4320b82917a2f455728
Time: 2020-08-06
Author: gabriel.altay@gmail.com
File Name: kmapper/visuals.py
Class Name:
Method Name: _format_cluster_statistics


Project Name: DagnyT/hardnet
Commit Name: 24a5450e4ca094ae4edbda26f8f29ae012721779
Time: 2017-07-25
Author: ducha.aiki@gmail.com
File Name: Losses.py
Class Name:
Method Name: loss_HardNet


Project Name: elfi-dev/elfi
Commit Name: 48e5e8bd3fce07f81364c3d7acc57855ff88fb62
Time: 2016-12-19
Author: henri.vuollekoski@aalto.fi
File Name: examples/ma2.py
Class Name:
Method Name: autocov