More debugging name cleanups along with a few reference tweaks. Next up: fixing the schedule and running it

This commit is contained in:
Jeff Moser
2010-09-27 22:26:28 -04:00
parent f816a766d7
commit 196d09429a
7 changed files with 9 additions and 9 deletions

View File

@ -67,7 +67,7 @@ class IteratedTeamDifferencesInnerLayer extends TrueSkillFactorGraphLayer
"teamPerformanceToPerformanceDifferenceFactors[0] @ 1",
$localFactors[0], 1),
new ScheduleStep(
"teamPerformanceToPerformanceDifferenceFactors[teamTeamDifferences = {0} - 1] @ 2",
sprintf("teamPerformanceToPerformanceDifferenceFactors[teamTeamDifferences = %d - 1] @ 2", $totalTeamDifferences),
$localFactors[$totalTeamDifferences - 1], 2)
)
);

View File

@ -74,7 +74,7 @@ class PlayerPerformancesToTeamPerformancesLayer extends TrueSkillFactorGraphLaye
$numberOfMessages = $currentFactor->getNumberOfMessages();
for($currentIteration = 1; $currentIteration < $numberOfMessages; $currentIteration++)
{
$allFactors[] = new ScheduleStep("team sum perf @" + $currentIteration,
$allFactors[] = new ScheduleStep("team sum perf @" . $currentIteration,
$currentFactor, $currentIteration);
}
}

View File

@ -29,11 +29,11 @@ class PlayerSkillsToPerformancesLayer extends TrueSkillFactorGraphLayer
$playerPerformance = $this->createOutputVariable($playerSkillVariable->getKey());
$newLikelihoodFactor = $this->createLikelihood($playerSkillVariable, $playerPerformance);
$this->addLayerFactor($newLikelihoodFactor);
$currentTeamPlayerPerformances[] = &$playerPerformance;
$currentTeamPlayerPerformances[] = $playerPerformance;
}
$outputVariablesGroups = &$this->getOutputVariablesGroups();
$outputVariablesGroups[] = &$currentTeamPlayerPerformances;
$outputVariablesGroups[] = $currentTeamPlayerPerformances;
}
}