Skip to content

Instantly share code, notes, and snippets.

# Linear regression from scratch
def add(x, y):
if len(x) != len(y):
print("Dimention mismatch")
exit()
else:
z = [x[i] + y[i] for i in range(len(x))]
return z