Skip to content

Instantly share code, notes, and snippets.

View hardik2396's full-sized avatar
🎯
Focusing

Hardik Chauhan hardik2396

🎯
Focusing
View GitHub Profile
class LabelSmoothing(nn.Module):
"Implement label smoothing."
def __init__(self, size, padding_idx, smoothing=0.0):
super(LabelSmoothing, self).__init__()
self.criterion = nn.KLDivLoss(size_average=False)
self.padding_idx = padding_idx
self.confidence = 1.0 - smoothing
self.smoothing = smoothing
self.size = size
self.true_dist = None
@hardik2396
hardik2396 / gist:83d642af3b22811fac6719bf28ceb048
Last active August 3, 2023 21:01
Learning Path for Applied ML/DL

LINEAR ALGEBRA

  • Chapter 2 of Deep Learning book (by Ian Goodfellow, short path) Link

  • Lecture series on Linear Algebra by three blue one brown (Highly recommended) Link + singular value decomposition (shortpath).

  • And if you have sufficient time, then highly recommended to take “Introduction to Linear Algebra” by Gilbert Strang (on YouTube, long path) Link.

PROBABILITY