```python
import sympy as sym
from functools import reduce
from sympy.matrices import Matrix, MatrixSymbol
```


```python
sym.init_printing()
```


```python
y = MatrixSymbol('y', 1, 1)
x = MatrixSymbol('x', 1, 3)
#x = Matrix([[1,2,3]])
theta = Matrix([[1],[2],[3]])
prediction = x * theta
loss = (prediction - y)**2
loss
```


```python
sym.diff(loss, x)
```


```python

```

1f891a8965fd05f3d9734ed890a9a440c5685510
ipynb
Jupyter Notebook
smoothness-writeup/notebooks/Matrix Test.ipynb
twosixlabs/csl
bd59181f0caa65c4f8e59433425beed612296cb4
MIT
smoothness-writeup/notebooks/Matrix Test.ipynb
twosixlabs/csl
bd59181f0caa65c4f8e59433425beed612296cb4
MIT
2022-02-09T03:47:46.000Z
2022-02-09T03:47:54.000Z
smoothness-writeup/notebooks/Matrix Test.ipynb
twosixlabs/csl
bd59181f0caa65c4f8e59433425beed612296cb4
MIT
Qwen/Qwen-72B
1. YES
2. YES