1
0
mirror of https://github.com/furyfire/trueskill.git synced 2025-04-09 08:15:38 +00:00

Removed some debugging code

This commit is contained in:
Jeff Moser
2010-10-03 19:21:55 -04:00
parent 1156c839d4
commit 930444a0f7
8 changed files with 20 additions and 53 deletions

@ -38,13 +38,7 @@ class GaussianLikelihoodFactor extends GaussianFactor
private function updateHelper(Message &$message1, Message &$message2,
Variable &$variable1, Variable &$variable2)
{
// DEBUG
$message1ValueTest = $message1->getValue();
$variable1ValueTest = $variable1->getValue();
$message2ValueTest = $message2->getValue();
$variable2ValueTest = $variable2->getValue();
{
$message1Value = clone $message1->getValue();
$message2Value = clone $message2->getValue();

@ -121,11 +121,7 @@ class GaussianWeightedSumFactor extends GaussianFactor
{
$localCurrentVariable = &$currentVariable;
$this->createVariableToMessageBinding($localCurrentVariable);
}
// DEBUG
$selfName = (string)$this;
$selfVars = &$this->getVariables();
}
}
public function getLogNormalization()
@ -204,9 +200,7 @@ class GaussianWeightedSumFactor extends GaussianFactor
}
public function updateMessageIndex($messageIndex)
{
// DEBUG
$currentFactorName = (string)$this;
{
$allMessages = &$this->getMessages();
$allVariables = &$this->getVariables();
@ -226,13 +220,7 @@ class GaussianWeightedSumFactor extends GaussianFactor
$updatedMessages[] = &$allMessages[$indicesToUse[$i]];
$updatedVariables[] = &$allVariables[$indicesToUse[$i]];
}
// DEBUG
foreach($allVariables as &$currentVariable)
{
$currentVarVal = &$currentVariable->getValue();
}
return $this->updateHelper($this->_weights[$messageIndex],
$this->_weightsSquared[$messageIndex],
$updatedMessages,

@ -144,8 +144,7 @@ class TrueSkillFactorGraph extends FactorGraph
{
foreach ($currentTeam as &$currentPlayer)
{
$localCurrentPlayer = &$currentPlayer->getKey();
$test = \spl_object_hash($localCurrentPlayer);
$localCurrentPlayer = &$currentPlayer->getKey();
$newRating = new Rating($currentPlayer->getValue()->getMean(),
$currentPlayer->getValue()->getStandardDeviation());