mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-04 20:47:53 +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()
|
||||
{
|
||||
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
|
||||
$os = strtoupper(substr(PHP_OS, 0, 3));
|
||||
if ($os === 'WIN') {
|
||||
return '.exe';
|
||||
} elseif ($os === 'DAR') {
|
||||
return '-osx';
|
||||
}
|
||||
|
||||
return '';
|
||||
|
Loading…
Reference in New Issue
Block a user