An open API service indexing awesome lists of open source software.

https://github.com/mrrobb/pe-b7

An statistical approach to neural networks
https://github.com/mrrobb/pe-b7

machine-learning neural-network statistical-analysis

Last synced: over 1 year ago
JSON representation

An statistical approach to neural networks

Awesome Lists containing this project

README

          

# Neural Networks
### Introducción
An statistical approach to neural networks

### Instalar requerimientos (macOS)
Ejecuta en la terminal:
```sh
/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
```

### Instalar requerimientos (Ubuntu)
Ejecuta en la terminal:
```sh
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
```

### Instalar requerimientos (Windows)
Baja al final de la ---> [página](https://www.python.org/downloads/release/python-362/) <--- e instala python3 (Windows Executable Installer)

Ejecuta en la terminal:
```sh
pip3 install --upgrade tensorflow
pip3 install --upgrade tensorflow-gpu
```

Para ver si funciona ejecuta:
```sh
python
```

Y en la consola interactiva escribe:
```python3
>>> 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):
```txt
Hello, TensorFlow!
```

### Cómo ejecutar
Ahora podéis ejecutar los códigos del archivo `1layer.py` sin problema, así:
```sh
python 1layer.py 2> /dev/null
```

### Cómo hacer un timing
Si queréis saber cuánto tarda vuestro ordenador en ejecutar el código, tan solo ejecuta:
```sh
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)