mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-05 04:57:52 +00:00
Add missing @throws and @param docblocks (#107)
This commit is contained in:
parent
3bcba4053e
commit
08d974bb4c
@ -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
|
||||
|
@ -67,6 +67,8 @@ class InvalidArgumentException extends \Exception
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $target
|
||||
*
|
||||
* @return InvalidArgumentException
|
||||
*/
|
||||
public static function invalidTarget($target)
|
||||
|
@ -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 = [])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user