e547a82c24b37c157bc9b40d2724a7b1fd0a7b0f,cesium/featurize.py,,load_featureset,#,367

Before Change


    channels = [int(c) if c != "" else "" for c in data.pop("channels")]
    columns = pd.MultiIndex.from_tuples(list(zip(features, channels)),
                                        names=["feature", "channel"])
    fset = pd.DataFrame(data.pop("values"), index=data.pop("index"),
                        columns=columns)
    return fset, data

After Change


    // Transpose to properly handle MultiIndex columns
    fset = pd.DataFrame.from_records(data.pop("features"),
                                     index=["feature", "channel"]).T
    features, channels = zip(*fset.columns)
    channels = [int(c) if c != "" else "" for c in channels]
    fset.columns = pd.MultiIndex.from_tuples(list(zip(features, channels)),
                                             names=["feature", "channel"])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: cesium-ml/cesium
Commit Name: e547a82c24b37c157bc9b40d2724a7b1fd0a7b0f
Time: 2017-04-17
Author: brettnaul@gmail.com
File Name: cesium/featurize.py
Class Name:
Method Name: load_featureset


Project Name: ina-foss/inaSpeechSegmenter
Commit Name: 4396573e860d553825702006aa335989356b45c8
Time: 2020-05-10
Author: ddoukhan@ina.fr
File Name: inaSpeechSegmenter/segmenter.py
Class Name:
Method Name: featGenerator


Project Name: arviz-devs/arviz
Commit Name: 259010ab242cc109b2b8dfbb20812d27b812dd14
Time: 2020-06-01
Author: aloctavodia@gmail.com
File Name: arviz/plots/loopitplot.py
Class Name:
Method Name: plot_loo_pit