for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Phpml\Exception;
class SupportVectorMachineException extends \Exception
{
/**
* @param string $binPath
*
* @return SupportVectorMachineException
*/
public static function missingBinPath(string $binPath)
return new self(sprintf('Bin path "%s" missing.', $binPath));
}
* @param string $trainFile
public static function missingTrainFile(string $trainFile)
return new self(sprintf('Train file "%s" missing.', $trainFile));
* @param string $predictFile
public static function missingPredictFile(string $predictFile)
return new self(sprintf('Predict file "%s" missing.', $predictFile));
* @param string $varPath
public static function missingVarPath(string $varPath)
return new self(sprintf('Var path "%s" missing.', $varPath));