|
OpenNN
Open-source neural networks library
|
#include "pch.h"Go to the source code of this file.
Namespaces | |
| namespace | opennn |
Functions | |
| void | opennn::set_seed (unsigned seed) |
| Seeds the library-wide pseudo-random number generator. | |
| long long | opennn::get_seed () |
| Returns the seed currently used by the library RNG. | |
| float | opennn::random_uniform (float=-1, float=1) |
| Draws a float uniformly in [min, max]. | |
| Index | opennn::random_integer (Index, Index) |
| Draws an integer uniformly in [min, max]. | |
| bool | opennn::random_bool (float=0.5) |
| Draws a boolean that is true with the given probability. | |
| void | opennn::set_random_uniform (MatrixR &, float=-0.1, float=0.1) |
| Fills the matrix with uniform random values in [min, max]. | |
| void | opennn::set_random_uniform (VectorMap, float=-0.1, float=0.1) |
| Fills the vector map with uniform random values in [min, max]. | |
| void | opennn::set_random_normal (MatrixMap, float=0, float=1) |
| Fills the matrix with normal random values of the given mean and standard deviation. | |
| void | opennn::set_random_integer (MatrixR &, Index, Index) |
| Fills the matrix with uniform random integers in [min, max]. | |
| void | opennn::shuffle (VectorB &vector_to_shuffle) |
| Randomly permutes the entries of a boolean vector in place. | |
| template<typename T> | |
| void | opennn::shuffle_vector (vector< T > &) |
| Randomly permutes the entries of the given vector in place. | |
| void | opennn::shuffle_vector_blocks (vector< Index > &, size_t=20) |
| Shuffles contiguous blocks of the given length while preserving in-block order. | |
| Index | opennn::get_random_element (const vector< Index > &) |
| Picks one element uniformly at random from the given vector. | |
| float | opennn::glorot_limit (Index fan_in, Index fan_out) |
| Returns the Glorot/Xavier uniform initialization limit sqrt(6 / (fan_in + fan_out)). | |