Installation: Difference between revisions
From Artificial Neural Network for PHP
Asdasd man (talk | contribs) No edit summary |
|||
| (15 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
== ANN - Artificial Neural Network for PHP |
== ANN - Artificial Neural Network for PHP == |
||
This chapter describes the steps to implement the ANN source code to your project. |
This chapter describes the steps to implement the ANN source code to your project. |
||
== Documentation == |
|||
* [http://ann.thwien.de/phpdoc/ Documentation (HTML online)] |
|||
== Requirements == |
== Requirements == |
||
The latest implementation requires a php environment running '''PHP |
The latest implementation requires a php environment running '''PHP 8.2''' or above. |
||
== Installation == |
== Installation == |
||
| Line 17: | Line 13: | ||
* Checking integrity |
* Checking integrity |
||
$ md5sum ann300* |
|||
* Unpack the source code |
* Unpack the source code |
||
$ tar -xzf ann300.tar.gz |
|||
* Copy the directory ANN to your library directory of your project. |
* Copy the directory ANN to your library directory of your project. |
||
| Line 32: | Line 28: | ||
require_once 'ANN/Loader.php'; |
require_once 'ANN/Loader.php'; |
||
use ANN\Network; |
|||
$objNetwork = new ANN_Network; |
|||
</source> |
|||
'''or''' as phar library (supported as of PHP 5.3.0) |
|||
<source lang="php"> |
|||
<?php |
|||
require_once 'phar://ann213.phar.gz'; |
|||
$objNetwork = new |
$objNetwork = new Network; |
||
</source> |
</source> |
||
| Line 48: | Line 36: | ||
* For further information e.g. about dat-files have a view to the [[FAQ]] page. |
* For further information e.g. about dat-files have a view to the [[FAQ]] page. |
||
== Performance issues == |
|||
* Install Zend Optimizer |
|||
* Do not use any debugger module like xdebug |
|||
* Do not use any profiling tool |
|||
* Do not set "max_execution_time = 0" in your php.ini file |
|||
Latest revision as of 12:28, 4 October 2025
ANN - Artificial Neural Network for PHP
This chapter describes the steps to implement the ANN source code to your project.
Requirements
The latest implementation requires a php environment running PHP 8.2 or above.
Installation
- Download the source code
- Checking integrity
$ md5sum ann300*
- Unpack the source code
$ tar -xzf ann300.tar.gz
- Copy the directory ANN to your library directory of your project.
- Including to your source
<?php
require_once 'ANN/Loader.php';
use ANN\Network;
$objNetwork = new Network;
- Learn to use the library. Have a look to chapter Examples.
- For further information e.g. about dat-files have a view to the FAQ page.