4ceb227fd58b3247dd892b527f0cf3bb014c3c84,fermodel.py,FERModel,_choose_model_from_target_emotions,#FERModel#,95

Before Change


        
        print("Creating FER model...")
        self._extract_features()    // TODO: call _extract_features for appropriate models
        return ConvolutionalLstmNN(self.target_dimensions, self.channels, emotion_map=self.emotion_map, time_delay=self.time_delay, verbose=self.verbose)
        // TODO: add conditionals to choose best models for all emotion subsets

    def _extract_features(self):
        

After Change


        
        print("Initializing FER model...")

        model_indices = [self.emotion_index_map[emotion] for emotion in self.target_emotions]
        sorted_indices = [str(idx) for idx in sorted(model_indices)]
        model_suffix = "".join(sorted_indices)

        model_file = open("../models/conv_model_%s.json" % model_suffix,"r")
        weights_file = "../models/conv_weights_%s.h5" % model_suffix
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: thoughtworksarts/EmoPy
Commit Name: 4ceb227fd58b3247dd892b527f0cf3bb014c3c84
Time: 2018-03-19
Author: angelica.perez37@gmail.com
File Name: fermodel.py
Class Name: FERModel
Method Name: _choose_model_from_target_emotions


Project Name: dit/dit
Commit Name: 608fff2119f21191352ddf5d96eb82fc1ab099b0
Time: 2013-02-25
Author: chebee7i@gmail.com
File Name: dit/utils/misc.py
Class Name:
Method Name: partitions


Project Name: commonsense/conceptnet5
Commit Name: de83e84dd87aef0dea564de76c648c72d0f6b5a1
Time: 2017-04-05
Author: rob@luminoso.com
File Name: conceptnet5/vectors/evaluation/analogy.py
Class Name:
Method Name: eval_google_analogies


Project Name: WheatonCS/Lexos
Commit Name: f37d256744a38e36426767ce4460fb52db261b65
Time: 2016-05-31
Author: 13501393281@163.com
File Name: processors/analyze/similarity.py
Class Name:
Method Name: similarityMaker


Project Name: chartbeat-labs/textacy
Commit Name: fee8eeac1d22d128498937337541e133db94e28e
Time: 2019-07-14
Author: burtdewilde@gmail.com
File Name: textacy/ke/yake.py
Class Name:
Method Name: yake