From c3f98e409382213ca3b7c66064403951d98b6487 Mon Sep 17 00:00:00 2001 From: Arkadiusz Kondas Date: Wed, 6 Apr 2016 22:38:27 +0200 Subject: [PATCH] random splitter skeleton --- src/Phpml/CrossValidation/RandomSplit.php | 72 +++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 src/Phpml/CrossValidation/RandomSplit.php diff --git a/src/Phpml/CrossValidation/RandomSplit.php b/src/Phpml/CrossValidation/RandomSplit.php new file mode 100644 index 0000000..3cc6c05 --- /dev/null +++ b/src/Phpml/CrossValidation/RandomSplit.php @@ -0,0 +1,72 @@ + $testSize || 1 < $testSize) { + throw InvalidArgumentException::percentNotInRange('testSize'); + } + + // TODO: implement this ! + } + + /** + * @return array + */ + public function getTrainSamples() + { + return $this->trainSamples; + } + + /** + * @return array + */ + public function getTestSamples() + { + return $this->testSamples; + } + + /** + * @return array + */ + public function getTrainLabels() + { + return $this->trainLabels; + } + + /** + * @return array + */ + public function getTestLabels() + { + return $this->testLabels; + } +}