Home | History | Annotate | Download | only in metric_learning

Lines Matching refs:negs

170             negs = []
173 negs.append(margin - pdist_matrix[i][k])
176 negs.append(margin - pdist_matrix[j][l])
178 negs = np.array(negs)
179 max_elem = np.max(negs)
180 negs -= max_elem
181 negs = np.exp(negs)
182 soft_maximum = np.log(np.sum(negs)) + max_elem