mindscience.common.glorot_uniform

mindscience.common.glorot_uniform(fan_in, fan_out, weight_shape)[source]

Glorot uniform.

Parameters
  • fan_in (int) – The number of input features.

  • fan_out (int) – The number of output features.

  • weight_shape (tuple) – The shape of the weight.

Returns

Numpy.ndarray, the weight.