51c953965cfec248402d25e64d28eb888ee1d00c,pliers/extractors/image.py,FaceRecognitionFeatureExtractor,_to_df,#FaceRecognitionFeatureExtractor#Any#,122

Before Change


    def _to_df(self, result):
        n_faces = len(result.raw)
        cols = [self._feature] if n_faces == 1 else \
            ["%s_%d" % (self._feature, i) for i in range(1, n_faces + 1)]
        return pd.Series(result.raw, index=cols).to_frame().T

After Change


    def _to_df(self, result):
        n_faces = len(result.raw)
        cols = listify(self._feature)
        data = pd.DataFrame([[r] for r in result.raw], columns=cols)
        face_ids = ["face%d" % i for i in range(1, n_faces + 1)]
        data.insert(0, "object_id", face_ids)
        return data


class FaceRecognitionFaceEncodingsExtractor(FaceRecognitionFeatureExtractor):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tyarkoni/pliers
Commit Name: 51c953965cfec248402d25e64d28eb888ee1d00c
Time: 2018-01-19
Author: tyarkoni@gmail.com
File Name: pliers/extractors/image.py
Class Name: FaceRecognitionFeatureExtractor
Method Name: _to_df


Project Name: cmu-db/ottertune
Commit Name: c423a4d435e723c8636d95e5c43eee6f17865732
Time: 2020-03-19
Author: dvanaken@cs.cmu.edu
File Name: server/website/website/db/base/target_objective.py
Class Name: TargetObjectives
Method Name: get_metric_metadata


Project Name: theislab/scanpy
Commit Name: 51e355ab328427169ca15c6db257ceaef62a0795
Time: 2019-01-03
Author: flying-sheep@web.de
File Name: docs/conf.py
Class Name:
Method Name: get_obj_module