diff options
| author | zhang <zch921005@126.com> | 2022-01-15 13:09:35 +0800 |
|---|---|---|
| committer | zhang <zch921005@126.com> | 2022-01-15 13:09:35 +0800 |
| commit | 0451d59752f3b61a6f6dfdb56d1f431083be4c7d (patch) | |
| tree | 3296e1889c9412ab85894eb7b6c166eb5891913c /regression/least_square_fit.py | |
| parent | b62a71d61feaf070dc9839e43d81974ee3b22476 (diff) | |
update
Diffstat (limited to 'regression/least_square_fit.py')
| -rw-r--r-- | regression/least_square_fit.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/regression/least_square_fit.py b/regression/least_square_fit.py index 71900b9..94c60d5 100644 --- a/regression/least_square_fit.py +++ b/regression/least_square_fit.py @@ -12,3 +12,5 @@ x_aug = np.hstack([np.ones_like(x), x]) beta = inv(x_aug.transpose().dot(x_aug)).dot(x_aug.transpose()).dot(y) print(beta) + + |
