Add missing @throws and @param docblocks (#107)

This commit is contained in:
Ante Lucic 2017-07-26 02:22:12 -04:00 committed by Arkadiusz Kondas
parent 3bcba4053e
commit 08d974bb4c
3 changed files with 9 additions and 1 deletions

View File

@ -11,7 +11,10 @@ class MLPClassifier extends MultilayerPerceptron implements Classifier
{
/**
* @param mixed $target
* @param mixed $target
*
* @throws InvalidArgumentException
*
* @return int
*/
public function getTargetClass($target): int

View File

@ -67,6 +67,8 @@ class InvalidArgumentException extends \Exception
}
/**
* @param mixed $target
*
* @return InvalidArgumentException
*/
public static function invalidTarget($target)

View File

@ -114,6 +114,9 @@ abstract class MultilayerPerceptron extends LayeredNetwork implements Estimator,
/**
* @param array $samples
* @param array $targets
* @param array $classes
*
* @throws InvalidArgumentException
*/
public function partialTrain(array $samples, array $targets, array $classes = [])
{