Class RandomNormal
Initializer that generates tensors with a normal distribution.
Inherited Members
Namespace: SiaNet.Initializers
Assembly: SiaNet.dll
Syntax
public class RandomNormal : BaseInitializer
Constructors
| Improve this Doc View SourceRandomNormal(Single, Single, Nullable<Int32>)
Initializes a new instance of the RandomNormal class.
Declaration
public RandomNormal(float mean = 0F, float stddev = 0.05F, int? seed = default(int? ))
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | mean | Mean of the random values to generate. |
| System.Single | stddev | Standard deviation of the random values to generate. |
| System.Nullable<System.Int32> | seed | Used to seed the random generator. |
Properties
| Improve this Doc View SourceMeanVal
Mean of the random values to generate.
Declaration
public float MeanVal { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single | The mean value. |
Seed
Used to seed the random generator.
Declaration
public int? Seed { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> | The seed. |
StdDev
Standard deviation of the random values to generate.
Declaration
public float StdDev { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single | The standard dev. |
Methods
| Improve this Doc View SourceGenerate(Int64[])
Generates a tensor with specified shape.
Declaration
public override Tensor Generate(params long[] shape)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64[] | shape | The shape of the tensor. |
Returns
| Type | Description |
|---|---|
| Tensor |