Search Results for

    Show / Hide Table of Contents

    Interface CanGetAverageLog<T>

    Whether the distribution supports the expected logarithm of one instance under another

    Namespace: Microsoft.ML.Probabilistic.Distributions
    Assembly: Microsoft.ML.Probabilistic.dll
    Syntax
    public interface CanGetAverageLog<in T>
    Type Parameters
    Name Description
    T

    The distribution type

    Methods

    GetAverageLog(T)

    The expected logarithm of that distribution under this distribution.

    Declaration
    double GetAverageLog(T that)
    Parameters
    Type Name Description
    T that

    The distribution to take the logarithm of.

    Returns
    Type Description
    Double

    sum_x this.Evaluate(x)*Math.Log(that.Evaluate(x))

    Remarks

    This is also known as the cross entropy.

    In This Article
    Back to top Copyright © .NET Foundation. All rights reserved.