finish chapter 6
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
import numpy as np
|
||||
# prediction manual
|
||||
# gradient computation manual
|
||||
# loss computation manual
|
||||
# parameter update manual
|
||||
|
||||
# linear regression, no bias
|
||||
# f = w*x
|
||||
# f = 2*x
|
||||
|
||||
import numpy as np
|
||||
|
||||
|
||||
X = np.array([1, 2, 3, 4], dtype=np.float32)
|
||||
Y = np.array([2, 4, 6, 8], dtype=np.float32)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user