MDL-58859 mlbackend_php: Upgrade php-ml to latest version

Part of MDL-57791 epic.
This commit is contained in:
David Monllao
2017-07-24 07:53:20 +02:00
parent 40fcb365c3
commit 589d7e8eb6
48 changed files with 1458 additions and 643 deletions
@@ -11,7 +11,8 @@ class ModelManager
{
/**
* @param Estimator $estimator
* @param string $filepath
* @param string $filepath
*
* @throws FileException
* @throws SerializeException
*/
@@ -23,7 +24,7 @@ class ModelManager
$serialized = serialize($estimator);
if (empty($serialized)) {
throw SerializeException::cantSerialize(get_type($estimator));
throw SerializeException::cantSerialize(gettype($estimator));
}
$result = file_put_contents($filepath, $serialized, LOCK_EX);
@@ -34,7 +35,9 @@ class ModelManager
/**
* @param string $filepath
*
* @return Estimator
*
* @throws FileException
* @throws SerializeException
*/