
Triplet loss formula: max(d(a,p) - d(a,n) + margin, 0)
Image: Darko Kadvanj, student, CC BY-SA 3.0, via Wikimedia Commons
Triplet loss formula: max(d(a,p) - d(a,n) + margin, 0)
Write the contrastive loss function for SimCLR
Contrastive loss function: L = (1/2N) Σ [max(0, margin - y_i * (z_i - z_j))^2 + max(0, y_i * (z_i - z_j) - margin)^2]
ReLU and Leaky ReLU
ReLU: f(x) = max(0, x); Leaky ReLU: f(x) = x if x > 0 else αx (α < 1)
Cross-entropy
Cross-entropy loss equation: H(p, q) = -Σ(p(x) * log(q(x)))
PageRank
PageRank formula: PR(A) = (1-d) + d Σ(PR(C)/L(C))
Expected value
Expected value formula: E[X] = Σ [x * P(x)]
Jensen–Shannon divergence
Jensen-Shannon divergence formula: D_JS(P||Q) = 1/2 * D_KL(P||(M)) + 1/2 * D_KL(Q||(M))
One email a day: 5 concepts + the 5 stories that matter →
Swipe through 100 ML concepts daily
Open TickerNews