An statistical approach to neural networks
An statistical approach to neural networks
Ejecuta en la terminal:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install python
brew postinstall python
brew install python3
brew postinstall python3
sudo easy_install pip
sudo pip install tensorflow
sudo pip3 install tensorflow
Ejecuta en la terminal:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python2.7
sudo apt-get install python3
sudo apt-get install python-pip
sudo apt-get install python3-pip
Baja al final de la —-> página <—- e instala python3 (Windows Executable Installer)
Ejecuta en la terminal:
pip3 install --upgrade tensorflow
pip3 install --upgrade tensorflow-gpu
Para ver si funciona ejecuta:
python
Y en la consola interactiva escribe:
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
>>> print(sess.run(hello))
Asegurate de que sale (significaría que todo funciona correctamente):
Hello, TensorFlow!
Ahora podéis ejecutar los códigos del archivo 1layer.py
sin problema, así:
python 1layer.py 2> /dev/null
Si queréis saber cuánto tarda vuestro ordenador en ejecutar el código, tan solo ejecuta:
time python 1layer.py > /dev/null 2> /dev/null
1 layer —> 39.804 total, 39.112 total, 40.261 total, 39.854 total
31,629 total (1), 31,645 total (1),
3 layer —> 206.42 total, 189.27 total, 189.98 total, 190.19 total (4 ejecuciones)
180,64 total (3), 177.55 total (3)
5 layer —> 436.96 total, 412.55 total, 486.97 total (5), 508.82 total (5)
432.21 total (5), 492.19 total (5)