MDL-58859 mlbackend_php: Upgrade php-ml to latest version
Part of MDL-57791 epic.
This commit is contained in:
@@ -6,7 +6,6 @@ namespace Phpml\Exception;
|
||||
|
||||
class DatasetException extends \Exception
|
||||
{
|
||||
|
||||
/**
|
||||
* @param string $path
|
||||
*
|
||||
|
||||
@@ -6,7 +6,6 @@ namespace Phpml\Exception;
|
||||
|
||||
class FileException extends \Exception
|
||||
{
|
||||
|
||||
/**
|
||||
* @param string $filepath
|
||||
*
|
||||
|
||||
@@ -11,7 +11,7 @@ class InvalidArgumentException extends \Exception
|
||||
*/
|
||||
public static function arraySizeNotMatch()
|
||||
{
|
||||
return new self('Size of given arrays not match');
|
||||
return new self('Size of given arrays does not match');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -55,7 +55,7 @@ class InvalidArgumentException extends \Exception
|
||||
*/
|
||||
public static function inconsistentMatrixSupplied()
|
||||
{
|
||||
return new self('Inconsistent matrix applied');
|
||||
return new self('Inconsistent matrix supplied');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -66,6 +66,14 @@ class InvalidArgumentException extends \Exception
|
||||
return new self('Invalid clusters number');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return InvalidArgumentException
|
||||
*/
|
||||
public static function invalidTarget($target)
|
||||
{
|
||||
return new self('Target with value ' . $target . ' is not part of the accepted classes');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $language
|
||||
*
|
||||
@@ -89,6 +97,19 @@ class InvalidArgumentException extends \Exception
|
||||
*/
|
||||
public static function invalidLayersNumber()
|
||||
{
|
||||
return new self('Provide at least 2 layers: 1 input and 1 output');
|
||||
return new self('Provide at least 1 hidden layer');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return InvalidArgumentException
|
||||
*/
|
||||
public static function invalidClassesNumber()
|
||||
{
|
||||
return new self('Provide at least 2 different classes');
|
||||
}
|
||||
|
||||
public static function inconsistentClasses()
|
||||
{
|
||||
return new self('The provided classes don\'t match the classes provided in the constructor');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@ namespace Phpml\Exception;
|
||||
|
||||
class SerializeException extends \Exception
|
||||
{
|
||||
|
||||
/**
|
||||
* @param string $filepath
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user