muqsit / php-thinkit
Think-Kit is a library that offers a generic machine learning implementation.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/muqsit/php-thinkit
Requires
- php: ^8.0
Requires (Dev)
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2025-10-04 14:02:12 UTC
README
Think-Kit is a library that offers a generic machine learning implementation.
Example Usage
The following is the equivalent of this python code:
$training_input = Matrix::create([ [0, 0, 1], [1, 1, 1], [1, 0, 1], [0, 0, 1] ]); $training_output = Matrix::create([[0, 1, 1, 0]])->transpose(); $model = SimpleNeuralNetworkModel::create(iterations: 10_000); $model->train($training_input, $training_output); $model->predict(Matrix::create([[1, 0, 0]])); // [[0.99991188]]