modelfox / modelfox
Make predictions with a ModelFox model from your PHP app. Learn more at https://www.modelfox.dev/.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Language:C
Requires
- php: >=7.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.2
- phpunit/phpunit: >=8.0
- squizlabs/php_codesniffer: ^3.0
README
The ModelFox PHP library makes it easy to make predictions with your ModelFox machine learning model from PHP.
Usage
Add modelfox/modelfox
to your composer.json
with this command:
$ composer require modelfox/modelfox
<?php namespace modelfox\modelfox; require_once(dirname(dirname(__FILE__)) . '/vendor/autoload.php'); $model_path = dirname(dirname(__FILE__)) . '/heart_disease.modelfox'; $model = Model::from_path($model_path); $input = [ 'age' => 63.0, 'gender' => 'male', // .. ]; $output = $model->predict($input);
For more information, read the docs.
Platform Support
ModelFox for PHP is currently supported on Linux, macOS, and Windows with ARM64 and AMD64 CPUs. Are you interested in another platform? Open an issue or send us an email at help@modelfox.dev.
Examples
The source for this package contains a number of examples in the examples
directory. Each example has a README.md
explaining how to run it.