value pairs in increasing key order, but not necessarily continuous. * @return float the predicted value. This will be a class label in the case of classification, a real value in the case of regression. Throws SVMException on error * @throws SVMException Throws SVMException on error * @link https://www.php.net/manual/en/svmmodel.predict-probability.php */ public function predict_probability(array $data): float {} /** * Predict a value for previously unseen data * * This function accepts an array of data and attempts to predict the class or regression value based on the model extracted from previously trained data. * @param array $data The array to be classified. This should be a series of key => value pairs in increasing key order, but not necessarily continuous. * @return float the predicted value. This will be a class label in the case of classification, a real value in the case of regression. Throws SVMException on error * @throws SVMException Throws SVMException on error * @link https://www.php.net/manual/en/svmmodel.predict.php */ public function predict(array $data): float {} /** * Save a model to a file, for later use * @param string $filename The file to save the model to. * @return bool Throws SVMException on error. Returns true on success. * @throws SVMException Throws SVMException on error * @link https://www.php.net/manual/en/svmmodel.save.php */ public function save(string $filename): bool {} }