mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2025-01-27 00:58:30 +00:00
Add missing @throws and @param docblocks (#107)
This commit is contained in:
parent
3bcba4053e
commit
08d974bb4c
@ -12,6 +12,9 @@ class MLPClassifier extends MultilayerPerceptron implements Classifier
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param mixed $target
|
* @param mixed $target
|
||||||
|
*
|
||||||
|
* @throws InvalidArgumentException
|
||||||
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function getTargetClass($target): int
|
public function getTargetClass($target): int
|
||||||
|
@ -67,6 +67,8 @@ class InvalidArgumentException extends \Exception
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param mixed $target
|
||||||
|
*
|
||||||
* @return InvalidArgumentException
|
* @return InvalidArgumentException
|
||||||
*/
|
*/
|
||||||
public static function invalidTarget($target)
|
public static function invalidTarget($target)
|
||||||
|
@ -114,6 +114,9 @@ abstract class MultilayerPerceptron extends LayeredNetwork implements Estimator,
|
|||||||
/**
|
/**
|
||||||
* @param array $samples
|
* @param array $samples
|
||||||
* @param array $targets
|
* @param array $targets
|
||||||
|
* @param array $classes
|
||||||
|
*
|
||||||
|
* @throws InvalidArgumentException
|
||||||
*/
|
*/
|
||||||
public function partialTrain(array $samples, array $targets, array $classes = [])
|
public function partialTrain(array $samples, array $targets, array $classes = [])
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user