mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-09-30 15:59:06 +00:00
8f122fde90
* Models manager with save/restore capabilities * Refactoring dataset exceptions * Persistency layer docs * New tests for serializable estimators * ModelManager static methods to instance methods
20 lines
335 B
PHP
20 lines
335 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Phpml\Exception;
|
|
|
|
class DatasetException extends \Exception
|
|
{
|
|
|
|
/**
|
|
* @param string $path
|
|
*
|
|
* @return DatasetException
|
|
*/
|
|
public static function missingFolder(string $path)
|
|
{
|
|
return new self(sprintf('Dataset root folder "%s" missing.', $path));
|
|
}
|
|
}
|