mirror of
https://github.com/furyfire/trueskill.git
synced 2025-03-26 02:58:00 +00:00
First time was able to debug w/o file errors. Still lots to go
This commit is contained in:
@ -40,7 +40,7 @@ class FactorGraphTrueSkillCalculator extends SkillCalculator
|
||||
parent::__construct(SkillCalculatorSupportedOptions::PARTIAL_PLAY | SkillCalculatorSupportedOptions::PARTIAL_UPDATE, TeamsRange::atLeast(2), PlayersRange::atLeast(1));
|
||||
}
|
||||
|
||||
public function CalculateNewRatings(GameInfo $gameInfo,
|
||||
public function calculateNewRatings(GameInfo $gameInfo,
|
||||
array $teams,
|
||||
array $teamRanks)
|
||||
{
|
||||
|
@ -2,10 +2,10 @@
|
||||
|
||||
namespace Moserware\Skills\TrueSkill\Factors;
|
||||
|
||||
require_once(dirname(__FILE__) . "../../FactorGraphs/Factor.php");
|
||||
require_once(dirname(__FILE__) . "../../FactorGraphs/Message.php");
|
||||
require_once(dirname(__FILE__) . "../../FactorGraphs/Variable.php");
|
||||
require_once(dirname(__FILE__) . "../../Numerics/GaussianDistribution.php");
|
||||
require_once(dirname(__FILE__) . "/../../FactorGraphs/Factor.php");
|
||||
require_once(dirname(__FILE__) . "/../../FactorGraphs/Message.php");
|
||||
require_once(dirname(__FILE__) . "/../../FactorGraphs/Variable.php");
|
||||
require_once(dirname(__FILE__) . "/../../Numerics/GaussianDistribution.php");
|
||||
|
||||
use Moserware\Numerics\GaussianDistribution;
|
||||
use Moserware\Skills\FactorGraphs\Factor;
|
||||
|
@ -1,11 +1,11 @@
|
||||
<?php
|
||||
namespace Moserware\Skills\TrueSkill\Factors;
|
||||
|
||||
require_once(dirname(__FILE__) . "GaussianFactor.php");
|
||||
require_once(dirname(__FILE__) . "../TruncatedGaussianCorrectionFunctions.php");
|
||||
require_once(dirname(__FILE__) . "../../FactorGraphs/Message.php");
|
||||
require_once(dirname(__FILE__) . "../../FactorGraphs/Variable.php");
|
||||
require_once(dirname(__FILE__) . "../../Numerics/GaussianDistribution.php");
|
||||
require_once(dirname(__FILE__) . "/GaussianFactor.php");
|
||||
require_once(dirname(__FILE__) . "/../TruncatedGaussianCorrectionFunctions.php");
|
||||
require_once(dirname(__FILE__) . "/../../FactorGraphs/Message.php");
|
||||
require_once(dirname(__FILE__) . "/../../FactorGraphs/Variable.php");
|
||||
require_once(dirname(__FILE__) . "/../../Numerics/GaussianDistribution.php");
|
||||
|
||||
use Moserware\Numerics\GaussianDistribution;
|
||||
use Moserware\Skills\TrueSkill\TruncatedGaussianCorrectionFunctions;
|
||||
|
@ -1,10 +1,10 @@
|
||||
<?php
|
||||
namespace Moserware\Skills\TrueSkill\Factors;
|
||||
|
||||
require_once(dirname(__FILE__) . "GaussianFactor.php");
|
||||
require_once(dirname(__FILE__) . "../../FactorGraphs/Message.php");
|
||||
require_once(dirname(__FILE__) . "../../FactorGraphs/Variable.php");
|
||||
require_once(dirname(__FILE__) . "../../Numerics/GaussianDistribution.php");
|
||||
require_once(dirname(__FILE__) . "/GaussianFactor.php");
|
||||
require_once(dirname(__FILE__) . "/../../FactorGraphs/Message.php");
|
||||
require_once(dirname(__FILE__) . "/../../FactorGraphs/Variable.php");
|
||||
require_once(dirname(__FILE__) . "/../../Numerics/GaussianDistribution.php");
|
||||
|
||||
use Moserware\Numerics\GaussianDistribution;
|
||||
use Moserware\Skills\FactorGraphs\Message;
|
||||
|
@ -1,10 +1,10 @@
|
||||
<?php
|
||||
namespace Moserware\Skills\TrueSkill\Factors;
|
||||
|
||||
require_once(dirname(__FILE__) . "GaussianFactor.php");
|
||||
require_once(dirname(__FILE__) . "../../FactorGraphs/Message.php");
|
||||
require_once(dirname(__FILE__) . "../../FactorGraphs/Variable.php");
|
||||
require_once(dirname(__FILE__) . "../../Numerics/GaussianDistribution.php");
|
||||
require_once(dirname(__FILE__) . "/GaussianFactor.php");
|
||||
require_once(dirname(__FILE__) . "/../../FactorGraphs/Message.php");
|
||||
require_once(dirname(__FILE__) . "/../../FactorGraphs/Variable.php");
|
||||
require_once(dirname(__FILE__) . "/../../Numerics/GaussianDistribution.php");
|
||||
|
||||
use Moserware\Numerics\GaussianDistribution;
|
||||
use Moserware\Skills\FactorGraphs\Message;
|
||||
|
@ -1,10 +1,10 @@
|
||||
<?php
|
||||
namespace Moserware\Skills\TrueSkill\Factors;
|
||||
|
||||
require_once(dirname(__FILE__) . "GaussianFactor.php");
|
||||
require_once(dirname(__FILE__) . "../../FactorGraphs/Message.php");
|
||||
require_once(dirname(__FILE__) . "../../FactorGraphs/Variable.php");
|
||||
require_once(dirname(__FILE__) . "../../Numerics/GaussianDistribution.php");
|
||||
require_once(dirname(__FILE__) . "/GaussianFactor.php");
|
||||
require_once(dirname(__FILE__) . "/../../FactorGraphs/Message.php");
|
||||
require_once(dirname(__FILE__) . "/../../FactorGraphs/Variable.php");
|
||||
require_once(dirname(__FILE__) . "/../../Numerics/GaussianDistribution.php");
|
||||
|
||||
use Moserware\Numerics\GaussianDistribution;
|
||||
use Moserware\Skills\FactorGraphs\Message;
|
||||
|
@ -1,11 +1,11 @@
|
||||
<?php
|
||||
namespace Moserware\Skills\TrueSkill\Factors;
|
||||
|
||||
require_once(dirname(__FILE__) . "GaussianFactor.php");
|
||||
require_once(dirname(__FILE__) . "../TruncatedGaussianCorrectionFunctions.php");
|
||||
require_once(dirname(__FILE__) . "../../FactorGraphs/Message.php");
|
||||
require_once(dirname(__FILE__) . "../../FactorGraphs/Variable.php");
|
||||
require_once(dirname(__FILE__) . "../../Numerics/GaussianDistribution.php");
|
||||
require_once(dirname(__FILE__) . "/GaussianFactor.php");
|
||||
require_once(dirname(__FILE__) . "/../TruncatedGaussianCorrectionFunctions.php");
|
||||
require_once(dirname(__FILE__) . "/../../FactorGraphs/Message.php");
|
||||
require_once(dirname(__FILE__) . "/../../FactorGraphs/Variable.php");
|
||||
require_once(dirname(__FILE__) . "/../../Numerics/GaussianDistribution.php");
|
||||
|
||||
use Moserware\Numerics\GaussianDistribution;
|
||||
use Moserware\Skills\TrueSkill\TruncatedGaussianCorrectionFunctions;
|
||||
|
@ -1,11 +1,11 @@
|
||||
<?php
|
||||
namespace Moserware\Skills\TrueSkill\Layers;
|
||||
|
||||
require_once(dirname(__FILE__) . "../../FactorGraphs/Schedule.php");
|
||||
require_once(dirname(__FILE__) . "../TrueSkillFactorGraph.php");
|
||||
require_once(dirname(__FILE__) . "TrueSkillFactorGraphLayer.php");
|
||||
require_once(dirname(__FILE__) . "TeamPerformancesToTeamPerformanceDifferencesLayer.php");
|
||||
require_once(dirname(__FILE__) . "TeamDifferencesComparisonLayer.php");
|
||||
require_once(dirname(__FILE__) . "/../../FactorGraphs/Schedule.php");
|
||||
require_once(dirname(__FILE__) . "/../TrueSkillFactorGraph.php");
|
||||
require_once(dirname(__FILE__) . "/TrueSkillFactorGraphLayer.php");
|
||||
require_once(dirname(__FILE__) . "/TeamPerformancesToTeamPerformanceDifferencesLayer.php");
|
||||
require_once(dirname(__FILE__) . "/TeamDifferencesComparisonLayer.php");
|
||||
|
||||
use Moserware\Skills\FactorGraphs\ScheduleLoop;
|
||||
use Moserware\Skills\FactorGraphs\ScheduleSequence;
|
||||
|
@ -1,11 +1,11 @@
|
||||
<?php
|
||||
namespace Moserware\Skills\TrueSkill\Layers;
|
||||
|
||||
require_once(dirname(__FILE__) . "../../FactorGraphs/Schedule.php");
|
||||
require_once(dirname(__FILE__) . "../TrueSkillFactorGraph.php");
|
||||
require_once(dirname(__FILE__) . "TrueSkillFactorGraphLayer.php");
|
||||
require_once(dirname(__FILE__) . "TeamPerformancesToTeamPerformanceDifferencesLayer.php");
|
||||
require_once(dirname(__FILE__) . "TeamDifferencesComparisonLayer.php");
|
||||
require_once(dirname(__FILE__) . "/../../FactorGraphs/Schedule.php");
|
||||
require_once(dirname(__FILE__) . "/../TrueSkillFactorGraph.php");
|
||||
require_once(dirname(__FILE__) . "/TrueSkillFactorGraphLayer.php");
|
||||
require_once(dirname(__FILE__) . "/TeamPerformancesToTeamPerformanceDifferencesLayer.php");
|
||||
require_once(dirname(__FILE__) . "/TeamDifferencesComparisonLayer.php");
|
||||
|
||||
use Moserware\Skills\FactorGraphs\ScheduleLoop;
|
||||
use Moserware\Skills\FactorGraphs\ScheduleSequence;
|
||||
|
@ -1,11 +1,11 @@
|
||||
<?php
|
||||
namespace Moserware\Skills\TrueSkill\Layers;
|
||||
|
||||
require_once(dirname(__FILE__) . "../../FactorGraphs/Schedule.php");
|
||||
require_once(dirname(__FILE__) . "../../Numerics/BasicMath.php");
|
||||
require_once(dirname(__FILE__) . "../TrueSkillFactorGraph.php");
|
||||
require_once(dirname(__FILE__) . "../Factors/GaussianPriorFactor.php");
|
||||
require_once(dirname(__FILE__) . "TrueSkillFactorGraphLayer.php");
|
||||
require_once(dirname(__FILE__) . "/../../FactorGraphs/Schedule.php");
|
||||
require_once(dirname(__FILE__) . "/../../Numerics/BasicMath.php");
|
||||
require_once(dirname(__FILE__) . "/../TrueSkillFactorGraph.php");
|
||||
require_once(dirname(__FILE__) . "/../Factors/GaussianPriorFactor.php");
|
||||
require_once(dirname(__FILE__) . "/TrueSkillFactorGraphLayer.php");
|
||||
|
||||
use Moserware\Skills\FactorGraphs\ScheduleLoop;
|
||||
use Moserware\Skills\FactorGraphs\ScheduleSequence;
|
||||
@ -14,6 +14,7 @@ use Moserware\Skills\TrueSkill\TrueSkillFactorGraph;
|
||||
use Moserware\Skills\TrueSkill\Factors\GaussianPriorFactor;
|
||||
|
||||
// We intentionally have no Posterior schedule since the only purpose here is to
|
||||
// start the process.
|
||||
class PlayerPriorValuesToSkillsLayer extends TrueSkillFactorGraphLayer
|
||||
{
|
||||
private $_teams;
|
||||
|
@ -1,11 +1,11 @@
|
||||
<?php
|
||||
namespace Moserware\Skills\TrueSkill\Layers;
|
||||
|
||||
require_once(dirname(__FILE__) . "../../FactorGraphs/Schedule.php");
|
||||
require_once(dirname(__FILE__) . "../../Numerics/BasicMath.php");
|
||||
require_once(dirname(__FILE__) . "../TrueSkillFactorGraph.php");
|
||||
require_once(dirname(__FILE__) . "../Factors/GaussianLikelihoodFactor.php");
|
||||
require_once(dirname(__FILE__) . "TrueSkillFactorGraphLayer.php");
|
||||
require_once(dirname(__FILE__) . "/../../FactorGraphs/Schedule.php");
|
||||
require_once(dirname(__FILE__) . "/../../Numerics/BasicMath.php");
|
||||
require_once(dirname(__FILE__) . "/../TrueSkillFactorGraph.php");
|
||||
require_once(dirname(__FILE__) . "/../Factors/GaussianLikelihoodFactor.php");
|
||||
require_once(dirname(__FILE__) . "/TrueSkillFactorGraphLayer.php");
|
||||
|
||||
use Moserware\Skills\FactorGraphs\ScheduleStep;
|
||||
use Moserware\Skills\TrueSkill\TrueSkillFactorGraph;
|
||||
|
@ -1,11 +1,11 @@
|
||||
<?php
|
||||
namespace Moserware\Skills\TrueSkill\Layers;
|
||||
|
||||
require_once(dirname(__FILE__) . "../DrawMargin.php");
|
||||
require_once(dirname(__FILE__) . "../TrueSkillFactorGraph.php");
|
||||
require_once(dirname(__FILE__) . "../Factors/GaussianGreaterThanFactor.php");
|
||||
require_once(dirname(__FILE__) . "../Factors/GaussianWithinFactor.php");
|
||||
require_once(dirname(__FILE__) . "TrueSkillFactorGraphLayer.php");
|
||||
require_once(dirname(__FILE__) . "/../DrawMargin.php");
|
||||
require_once(dirname(__FILE__) . "/../TrueSkillFactorGraph.php");
|
||||
require_once(dirname(__FILE__) . "/../Factors/GaussianGreaterThanFactor.php");
|
||||
require_once(dirname(__FILE__) . "/../Factors/GaussianWithinFactor.php");
|
||||
require_once(dirname(__FILE__) . "/TrueSkillFactorGraphLayer.php");
|
||||
|
||||
use Moserware\Skills\TrueSkill\DrawMargin;
|
||||
use Moserware\Skills\TrueSkill\TrueSkillFactorGraph;
|
||||
|
@ -1,10 +1,10 @@
|
||||
<?php
|
||||
namespace Moserware\Skills\TrueSkill\Layers;
|
||||
|
||||
require_once(dirname(__FILE__) . "../../FactorGraphs/Variable.php");
|
||||
require_once(dirname(__FILE__) . "../TrueSkillFactorGraph.php");
|
||||
require_once(dirname(__FILE__) . "../Factors/GaussianWeightedSumFactor.php");
|
||||
require_once(dirname(__FILE__) . "TrueSkillFactorGraphLayer.php");
|
||||
require_once(dirname(__FILE__) . "/../../FactorGraphs/Variable.php");
|
||||
require_once(dirname(__FILE__) . "/../TrueSkillFactorGraph.php");
|
||||
require_once(dirname(__FILE__) . "/../Factors/GaussianWeightedSumFactor.php");
|
||||
require_once(dirname(__FILE__) . "/TrueSkillFactorGraphLayer.php");
|
||||
|
||||
use Moserware\Skills\FactorGraphs\Variable;
|
||||
use Moserware\Skills\TrueSkill\DrawMargin;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
namespace Moserware\Skills\TrueSkill\Layers;
|
||||
|
||||
require_once(dirname(__FILE__) . "../../FactorGraphs/FactorGraphLayer.php");
|
||||
require_once(dirname(__FILE__) . "/../../FactorGraphs/FactorGraphLayer.php");
|
||||
|
||||
use Moserware\Skills\FactorGraphs\FactorGraphLayer;
|
||||
|
||||
|
@ -1,11 +1,12 @@
|
||||
<?php
|
||||
namespace Moserware\Skills\TrueSkill;
|
||||
|
||||
require_once(dirname(__FILE__) . './../Rating.php');
|
||||
require_once(dirname(__FILE__) . './../FactorGraphs/FactorList.php');
|
||||
require_once(dirname(__FILE__) . './../FactorGraphs/Schedule.php');
|
||||
require_once(dirname(__FILE__) . './../FactorGraphs/VariableFactory.php');
|
||||
require_once(dirname(__FILE__) . './../Numerics/GaussianDistribution.php');
|
||||
require_once(dirname(__FILE__) . '/../Rating.php');
|
||||
require_once(dirname(__FILE__) . '/../FactorGraphs/FactorGraph.php');
|
||||
require_once(dirname(__FILE__) . '/../FactorGraphs/FactorList.php');
|
||||
require_once(dirname(__FILE__) . '/../FactorGraphs/Schedule.php');
|
||||
require_once(dirname(__FILE__) . '/../FactorGraphs/VariableFactory.php');
|
||||
require_once(dirname(__FILE__) . '/../Numerics/GaussianDistribution.php');
|
||||
require_once(dirname(__FILE__) . '/Layers/PlayerPriorValuesToSkillsLayer.php');
|
||||
require_once(dirname(__FILE__) . '/Layers/PlayerSkillsToPerformancesLayer.php');
|
||||
require_once(dirname(__FILE__) . '/Layers/IteratedTeamDifferencesInnerLayer.php');
|
||||
@ -13,6 +14,7 @@ require_once(dirname(__FILE__) . '/Layers/TeamPerformancesToTeamPerformanceDiffe
|
||||
require_once(dirname(__FILE__) . '/Layers/TeamDifferencesComparisonLayer.php');
|
||||
|
||||
use Moserware\Skills\Rating;
|
||||
use Moserware\Skills\FactorGraphs\FactorGraph;
|
||||
use Moserware\Skills\FactorGraphs\FactorList;
|
||||
use Moserware\Skills\FactorGraphs\ScheduleSequence;
|
||||
use Moserware\Skills\FactorGraphs\VariableFactory;
|
||||
|
Reference in New Issue
Block a user