Python - adibaba/rescal.py GitHub Wiki
Running Python
Notes for beginners using OS X
- Installation: https://docs.brew.sh/Homebrew-and-Python.html
- Installation of packages:
pip2 install scipy
- Demo script: rename alyawarra.mat to alyawarradata.mat
Linux / Debian / Ubuntu
- Already included in Ubuntu (https://wiki.ubuntuusers.de/Python/)
- Installation of Python 3 packages:
sudo apt-get install python3-scipy
- Installation of Python 2 packages:
sudo apt-get install python-scipy
Matrix information
import numpy as np
print(len(X)) # 26
np.savetxt('23.txt', X[23].toarray())
np.savetxt("A-init.txt", A, delimiter=",")
Matrix A in _updateR:
print(len(A))
print(type(A))
print(A.ndim)
print(A.shape)
print(A.size)
print(A.dtype)
104
<class 'numpy.ndarray'>
2
(104, 100)
10400
float64