Click or drag to resize
Accord.NET (logo)

StochasticNeuron Class

Stochastic Activation Neuron.
Inheritance Hierarchy
SystemObject
  Accord.NeuroNeuron
    Accord.NeuroActivationNeuron
      Accord.Neuro.NeuronsStochasticNeuron

Namespace:  Accord.Neuro.Neurons
Assembly:  Accord.Neuro (in Accord.Neuro.dll) Version: 3.8.0
Syntax
[SerializableAttribute]
public class StochasticNeuron : ActivationNeuron
Request Example View Source

The StochasticNeuron type exposes the following members.

Constructors
  NameDescription
Public methodStochasticNeuron
Initializes a new instance of the StochasticNeuron class.
Top
Properties
  NameDescription
Public propertyActivationFunction
Gets or sets the stochastic activation function for this stochastic neuron.
Public propertyInputsCount
Neuron's inputs count.
(Inherited from Neuron.)
Public propertyOutput
Neuron's output value.
(Inherited from Neuron.)
Public propertyRandGenerator
Random number generator.
(Inherited from Neuron.)
Public propertySample
Public propertyThreshold
Threshold value.
(Inherited from ActivationNeuron.)
Public propertyWeights
Neuron's weights.
(Inherited from Neuron.)
Top
Methods
  NameDescription
Public methodCompute
Computes output value of neuron.
(Overrides ActivationNeuronCompute(Double).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGenerate(Double)
Samples the neuron output considering the stochastic activation function.
Public methodGenerate(Double)
Samples the neuron output considering the stochastic activation function.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRandomize
Randomize neuron.
(Inherited from ActivationNeuron.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected fieldfunction
Activation function.
(Inherited from ActivationNeuron.)
Protected fieldinputsCount
Neuron's inputs count.
(Inherited from Neuron.)
Protected fieldoutput
Neuron's output value.
(Inherited from Neuron.)
Protected fieldrand
Random number generator.
(Inherited from Neuron.)
Protected fieldthreshold
Threshold value.
(Inherited from ActivationNeuron.)
Protected fieldweights
Neuron's weights.
(Inherited from Neuron.)
Top
Extension Methods
  NameDescription
Public Extension MethodHasMethod
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)
Public Extension MethodIsEqual
Compares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.
(Defined by Matrix.)
Public Extension MethodTo(Type)Overloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Public Extension MethodToTOverloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Top
Remarks
The Stochastic Activation Neuron is an activation neuron which activates (returns 1) only within a given probability. The neuron has a random component in the activation function, and the neuron fires only if the total sum, after applied to a logistic activation function, is greater than a randomly sampled value.
See Also