nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.MachineLearning / RandomStatus0

RandomStatus0

Full name Microsoft.VisualBasic.MachineLearning.ComponentModel.RandomStatus0 Assembly Microsoft.VisualBasic.MachineLearning Members 6

Generate the initial value from a uniform random distribution: the value is sampled from the interval between RandomStatus0.Min and RandomStatus0.Max.

00 Remarks

Random initialization is essential for breaking the symmetry of the neuron nodes in the same layer of a neural network.

01 Syntax

Microsoft.VisualBasic.MachineLearning.ComponentModel.RandomStatus0

02 Methods

NameOverloadsSummary
.ctor 2 Create a random initial value generator with the default interval [0, 1].
GetInitialValue 1 Sample one random value from the uniform distribution on the interval [RandomStatus0.Min, RandomStatus0.Max].
ToString 1 Display the sampling interval in string format.

03 Properties

NameOverloadsSummary
Min 1 The lower bound of the random sampling interval.
Max 1 The upper bound of the random sampling interval.

04 Members

method .ctor #
#ctor

Create a random initial value generator with the default interval [0, 1].

method .ctor overload 2 #
#ctor(Double, Double)

Create a random initial value generator with a specific sampling interval.

Parameters
NameTypeDescription
minDouble

The lower bound of the random sampling interval.

maxDouble

The upper bound of the random sampling interval.

method GetInitialValue #
GetInitialValue

Sample one random value from the uniform distribution on the interval [RandomStatus0.Min, RandomStatus0.Max].

Returns

A random Single value.

method ToString #
ToString

Display the sampling interval in string format.

Returns

A string in format like randf(min, max) = value, in which the value is a freshly sampled random number.

property Min #
Min

The lower bound of the random sampling interval.

Returns

A Double value.

property Max #
Max

The upper bound of the random sampling interval.

Returns

A Double value.