cMHN 1.1
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
Typedefs | Functions | Variables
ScoreAndRegulatorTests.cpp File Reference
#include <string>
#include <cmhn.hpp>
#include <prc.hpp>
#include <gtest/gtest.h>

Typedefs

using T = pRC::Float<>
 
using TN = pRC::Tensor<T, D, D>
 

Functions

 TEST (ScoreAndRegulatorTests, KLScoreCalculatesCorrectScore)
 
 TEST (ScoreAndRegulatorTests, KLTHScoreCalculatesCorrectScore)
 
 TEST (ScoreAndRegulatorTests, GeneralScoreCalculatesCorrectScore)
 
 TEST (ScoreAndRegulatorTests, L1RegulatorCalculatesCorrectPenalty)
 
 TEST (ScoreAndRegulatorTests, L2RegulatorCalculatesCorrectPenalty)
 
 TEST (ScoreAndRegulatorTests, GeneralRegulatorCalculatesCorrectPenalty)
 
 TEST (ScoreAndRegulatorTests, ScoreCalculationFromThetaCorrect)
 
 TEST (ScoreAndRegulatorTests, ScoreAndGradCalculationFromThetaCorrect)
 

Variables

pRC::Size const D = 4
 

Typedef Documentation

◆ T

using T = pRC::Float<>

◆ TN

using TN = pRC::Tensor<T, D, D>

Function Documentation

◆ TEST() [1/8]

TEST ( ScoreAndRegulatorTests ,
GeneralRegulatorCalculatesCorrectPenalty  )

◆ TEST() [2/8]

TEST ( ScoreAndRegulatorTests ,
GeneralScoreCalculatesCorrectScore  )

◆ TEST() [3/8]

TEST ( ScoreAndRegulatorTests ,
KLScoreCalculatesCorrectScore  )

◆ TEST() [4/8]

TEST ( ScoreAndRegulatorTests ,
KLTHScoreCalculatesCorrectScore  )

◆ TEST() [5/8]

TEST ( ScoreAndRegulatorTests ,
L1RegulatorCalculatesCorrectPenalty  )

◆ TEST() [6/8]

TEST ( ScoreAndRegulatorTests ,
L2RegulatorCalculatesCorrectPenalty  )

◆ TEST() [7/8]

TEST ( ScoreAndRegulatorTests ,
ScoreAndGradCalculationFromThetaCorrect  )

◆ TEST() [8/8]

TEST ( ScoreAndRegulatorTests ,
ScoreCalculationFromThetaCorrect  )

Variable Documentation

◆ D

pRC::Size const D = 4