mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2025-02-03 04:28:33 +00:00
add support for osx
This commit is contained in:
parent
ddddd739f4
commit
9507d58a80
BIN
bin/libsvm/svm-predict-osx
Normal file
BIN
bin/libsvm/svm-predict-osx
Normal file
Binary file not shown.
BIN
bin/libsvm/svm-scale-osx
Normal file
BIN
bin/libsvm/svm-scale-osx
Normal file
Binary file not shown.
BIN
bin/libsvm/svm-train-osx
Normal file
BIN
bin/libsvm/svm-train-osx
Normal file
Binary file not shown.
@ -193,8 +193,11 @@ class SupportVectorMachine
|
|||||||
*/
|
*/
|
||||||
private function getOSExtension()
|
private function getOSExtension()
|
||||||
{
|
{
|
||||||
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
|
$os = strtoupper(substr(PHP_OS, 0, 3));
|
||||||
|
if ($os === 'WIN') {
|
||||||
return '.exe';
|
return '.exe';
|
||||||
|
} elseif ($os === 'DAR') {
|
||||||
|
return '-osx';
|
||||||
}
|
}
|
||||||
|
|
||||||
return '';
|
return '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user