Closed mhf-ir closed 6 years ago
Hi, the extension is quite new. I have created PHP documentation. There is only one example for XOR. You can also find function test in the test directory.
I tried to keep consistency with the original C API so it should be quite easy to most of the original examples in the FANN example directory. However the accessing of structure members (e.g. train_data->num_inputs
) won't be possible as the used data type in PHP for train_data and ann is resource
. But all functions are available so it should be possible to use the main parts!
I plan to add more examples in the future but before that, I need to properly have look into ANN and get some ideas how it could be used in PHP. It can take some time... In the meantime if you (or anyone else who reads this) have some useful examples, I will be more than happy to add them to the documentation.
Hello Bukka, I am doing a series of blog posts on how to use FANN along with PHP and during my initial testing and experimentation I created the additional logic gates to go along with the XOR example (AND, OR, NOT, NAND, NOR, XNOR) and because you said you planned on adding more examples, I was wondering if you would be interested in including them in the repo?
Sorry for the late reply @geekgirljoy . That would be awesome. If you could send a PR to add something to examples dir, that would be great! Thanks.
Will do! I will give the code a quick review before doing a pull request. Thank you for your time and considering.
IIRC extended examples were added so closing this.
First thanks for bring FANN to php. also we need more documentation in PHP based application.