5249eb0a938a984f01349207c1917ca04e92da2f,generate_predictions.py,Predictor,predict,#Predictor#Any#,43

Before Change


        // Get current instances feature-value pairs
        field_pairs = feature_string.split()
        field_names = islice(field_pairs, 0, None, 2)
        field_values = islice(field_pairs, 1, None, 2)

        // Add the feature-value pairs to dictionary
        curr_info_dict = dict(izip(field_names, field_values))

After Change


        // Get current instances feature-value pairs
        field_pairs = feature_string.split()
        field_names = islice(field_pairs, 0, None, 2)
        field_values = (float(val) for val in islice(field_pairs, 1, None, 2))  // Convert values to floats, because otherwise features"ll be categorical

        // Add the feature-value pairs to dictionary
        curr_info_dict = dict(izip(field_names, field_values))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: EducationalTestingService/skll
Commit Name: 5249eb0a938a984f01349207c1917ca04e92da2f
Time: 2013-02-14
Author: dblanchard@ets.org
File Name: generate_predictions.py
Class Name: Predictor
Method Name: predict


Project Name: EducationalTestingService/skll
Commit Name: fbba41b1bb0199ea621eaa88f4de6d530c27d525
Time: 2013-02-14
Author: dblanchard@ets.org
File Name: classifier.py
Class Name:
Method Name: _megam_dict_iter


Project Name: chartbeat-labs/textacy
Commit Name: 7e6b39abbe08f8a4997f03dc60221dc78df2fb13
Time: 2019-05-13
Author: burtdewilde@gmail.com
File Name: textacy/corpus.py
Class Name: Corpus
Method Name: remove