mirror of
https://github.com/furyfire/trueskill.git
synced 2025-03-31 13:14:02 +00:00
It gets a result... unfortunately it's wrong. But hey, that's progress :) Lots of debugging code left in to make up for a less than ideal debugger
This commit is contained in:
@ -39,9 +39,15 @@ class GaussianLikelihoodFactor extends GaussianFactor
|
||||
private function updateHelper(Message &$message1, Message &$message2,
|
||||
Variable &$variable1, Variable &$variable2)
|
||||
{
|
||||
$message1Value = clone $message1->getValue();
|
||||
$message2Value = clone $message2->getValue();
|
||||
// DEBUG
|
||||
$message1ValueTest = $message1->getValue();
|
||||
$variable1ValueTest = $variable1->getValue();
|
||||
$message2ValueTest = $message2->getValue();
|
||||
$variable2ValueTest = $variable2->getValue();
|
||||
|
||||
$message1Value = clone $message1->getValue();
|
||||
$message2Value = clone $message2->getValue();
|
||||
|
||||
$marginal1 = clone $variable1->getValue();
|
||||
$marginal2 = clone $variable2->getValue();
|
||||
|
||||
@ -67,7 +73,7 @@ class GaussianLikelihoodFactor extends GaussianFactor
|
||||
public function updateMessageIndex($messageIndex)
|
||||
{
|
||||
$messages = &$this->getMessages();
|
||||
$vars = &$this->getVariables();
|
||||
$vars = &$this->getVariables();
|
||||
|
||||
switch ($messageIndex)
|
||||
{
|
||||
|
Reference in New Issue
Block a user