SSarainsarashahin.hashnode.dev·Aug 9, 2023 · 1 min readCheat Sheet Deep learning_PyTorchtorch.matmul(a, b) # multiples torch tensors a and b * # element-wise multiplication between two torch tensorstorch.eye(n) # creates an identity torch tensor with shape (n, n) torch.zeros(n, m) # creates a torch tensor of zeros with shape (n, m) torc...00
SSarainsarashahin.hashnode.dev·Aug 9, 2023 · 1 min readDeep Learning_Loss FunctionsA loss function is a function L:(z,y)∈R×Y⟼L(z,y)∈R that takes as inputs the predicted value z corresponding to the real data value y and outputs how different they are. The common loss functions are summed up in the table below: Least squared errorLo...00
SSarainsarashahin.hashnode.dev·Nov 15, 2021 · 1 min readTo resolve MySQL 8.0 - Client does not support authentication protocol requested by server; consider upgrading MySQL clientIf you want to have a fix for it, install and use mysql2 (instead of mysql) and use: npm un mysql && npm i mysql2 and mysql = require('mysql2');00