Environments

Reproducible environment

This functionality can help you make your code reproducible.

from neupy import environment
environment.reproducible()

The reproducible function accepts only one optional argument seed. By default, it is equal to 0.

Sandbox environment

This functionality helps set up some Theano configurations that can speed up compilation time and slow down computation time. It is useful for experimentation.

from neupy import environment
environment.sandbox()

Speedup calculation

Set up 32-bit float type for all tensors and scallers. In addition, this method disables garbage collector and speed up the calculation, but it increases an amount of memory that Theano uses for computation.

from neupy import environment
environment.speedup()