Backends/SiaNet.Backend.MxNet/NDArrayOps.cs
/// <summary>
/// Apply a sparse regularization to the output a sigmoid activation function.
/// </summary>
/// <param name="@out">output NDArray</param>
/// <param name="data">Input data.</param>
/// <param name="sparseness_target">The sparseness target</param>
/// <param name="penalty">The tradeoff parameter for the sparseness penalty</param>
/// <param name="momentum">The momentum for running average</param>
/// <returns>returns new symbol</returns>
Apply a sparse regularization to the output a sigmoid activation function.
Apply a sparse regularization to the output a sigmoid activation function .
public static NDArray IdentityAttachKLSparseReg(NDArray @out,
        NDArray data,
        float sparseness_target = 0.1f,
        float penalty = 0.001f,
        float momentum = 0.9f)
        {
            return new Operator("IdentityAttachKLSparseReg")
            .SetParam("sparseness_target", sparseness_target)
            .SetParam("penalty", penalty)
            .SetParam("momentum", momentum)
            .SetInput("data", data)
            .Invoke(@out);
        }
public static NDArray IdentityAttachKLSparseReg ( NDArray @out , NDArray data , float sparseness_target = 0.1f , float penalty = 0.001f , float momentum = 0.9f ) { return new Operator ( " " ) . SetParam ( " " , sparseness_target ) . SetParam ( " " , penalty ) . SetParam ( " " , momentum ) . SetInput ( " " , data ) . Invoke ( @out ) ; }
Apply a sparse regularization to the output a sigmoid activation function.
Apply a sparse regularization to the output a sigmoid activation function .
returns new symbol
returns new symbol
@out
NDArray
None
data
NDArray
None
sparseness_target
float
The sparseness target
The sparseness target
penalty
float
The tradeoff parameter for the sparseness penalty
The tradeoff parameter for the sparseness penalty
momentum
float
The momentum for running average
The momentum for running average