Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Commit

Permalink
GH-660: Add an Example for LogLikelihoodLoss Class
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarsouza committed Sep 29, 2017
1 parent ecbb9c1 commit e0c0180
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Sources/Accord.Math/Optimization/Losses/LogLikelihoodLoss.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,28 @@ namespace Accord.Math.Optimization.Losses
/// Negative log-likelihood loss.
/// </summary>
///
/// <remarks>
/// <para>
/// The log-likelihood loss can be used to measure the performance of unsupervised
/// model fitting algorithms. It simply computes the sum of all log-likelihood values
/// produced by the model.</para>
///
/// <para>
/// If you would like to measure the performance of a supervised classification model
/// based on their probability predictions, please refer to the <see cref="BinaryCrossEntropyLoss"/>
/// and <see cref="CategoryCrossEntropyLoss"/> for binary and multi-class decision problems,
/// respectively.</para>
/// </remarks>
///
/// <example>
/// <para>The following example shows how to learn an one-class SVM
/// and measure its performance using the log-likelihood loss class.</para>
/// <code source="Unit Tests\Accord.Tests.MachineLearning\VectorMachines\OneclassSupportVectorLearningTest.cs" region="doc_learn" />
/// </example>
///
/// <seealso cref="BinaryCrossEntropyLoss"/>
/// <seealso cref="CategoryCrossEntropyLoss"/>
///
[Serializable]
public class LogLikelihoodLoss : ILoss<double[][]>, ILoss<double[]>
{
Expand Down

0 comments on commit e0c0180

Please sign in to comment.