6b9c5e536d9de4aa959caff86a27472e8e75d9f7,finetune/input_pipeline.py,BasePipeline,_context_to_vector,#BasePipeline#Any#,167

Before Change


                        padded_indices.append(idx)
                    else:
                        tokens_with_context.append(sample[idx])
                characteristics = pd.DataFrame(tokens_with_context).to_dict("list")

                // make sure all features cover the same number of tokens, and calculate total num tokens
                num_tokens = None
                for label in self.context_labels:

After Change


                    else:
                        tokens_with_context.append(sample[idx])
                //characteristics = pd.DataFrame(tokens_with_context).to_dict("list")
                characteristics = {k:[dictionary[k] for dictionary in tokens_with_context] for k in tokens_with_context[0].keys()}

                // make sure all features cover the same number of tokens, and calculate total num tokens
                num_tokens = None
                for label in self.context_labels:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: IndicoDataSolutions/finetune
Commit Name: 6b9c5e536d9de4aa959caff86a27472e8e75d9f7
Time: 2019-08-02
Author: matthew.bayer@indico.io
File Name: finetune/input_pipeline.py
Class Name: BasePipeline
Method Name: _context_to_vector


Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 429ddb8fb8cc6d1492c9d459cd2120b75352f125
Time: 2018-10-23
Author: jkleint
File Name: category_encoders/leave_one_out.py
Class Name: LeaveOneOutEncoder
Method Name: fit_leave_one_out


Project Name: bokeh/bokeh
Commit Name: c2e5b7f7bc3d496fe83847d95b5d17b885cc81bb
Time: 2017-08-20
Author: p1himik@gmail.com
File Name: bokeh/models/sources.py
Class Name: ColumnDataSource
Method Name: _data_from_df