uczenie_maszynowe_zadania/cw_1/zadanie-1-6-code.py
2023-07-04 20:42:14 +02:00

6 lines
136 B
Python

import numpy as np
X = np.matrix([[1.,2.,3.],[1.,3.,6.]])
y = np.matrix([[5.],[6.]])
result = ((X.T * X) ** -1) * X.T * y
print(result)