2d720403e43ccbf2286c99876ce3bb8a9286f5c6,deepctr/layers/interaction.py,FieldWiseBiInteraction,call,#FieldWiseBiInteraction#,1106
Before Change
left = []
right = []
for i in range(self.num_fields):
for j in range(i + 1, self.num_fields):
left.append(i)
right.append(j)
embeddings_left = tf.gather(params=field_wise_vectors,
indices=left,
axis=1)
embeddings_right = tf.gather(params=field_wise_vectors,
After Change
left = []
right = []
for i, j in itertools.combinations(list(range(self.num_fields)), 2):
left.append(i)
right.append(j)
embeddings_left = tf.gather(params=field_wise_vectors,
indices=left,
axis=1)
embeddings_right = tf.gather(params=field_wise_vectors,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: shenweichen/DeepCTR
Commit Name: 2d720403e43ccbf2286c99876ce3bb8a9286f5c6
Time: 2020-03-15
Author: wcshen1994@163.com
File Name: deepctr/layers/interaction.py
Class Name: FieldWiseBiInteraction
Method Name: call
Project Name: pgmpy/pgmpy
Commit Name: eea41a4578b5021bbc16eb171bceb453cbde2419
Time: 2014-11-30
Author: abinash.panda.ece10@itbhu.ac.in
File Name: pgmpy/base/UndirectedGraph.py
Class Name: UndirectedGraph
Method Name: check_clique
Project Name: pgmpy/pgmpy
Commit Name: d86fe5fa05b434e32ac7a9e8d59fe7acb2841d98
Time: 2014-07-31
Author: ankurankan@gmail.com
File Name: pgmpy/MarkovModel/MarkovModel.py
Class Name: MarkovModel
Method Name: _in_clique