bukka / php-fann

PHP wrapper for FANN (Fast Artificial Neural Network Library)
Other
213 stars 35 forks source link

Adding New Example & Pathfinder Training Data Correction #39

Closed geekgirljoy closed 5 years ago

geekgirljoy commented 6 years ago

What was done?

simple_train_epoch.php Example

simple_train_epoch.php is an example of manually training an ANN to perform XOR. This differs from the simple_train.php in that it makes use of the fann_train_epoch() function which enables a programmer to observe the network during training by returning a pseudo Mean Squared Error after each epoch. By observing the MSE you can compare competing networks during training or save snapshots of the network before it is fully trained. This offers programmers a template example project using fann_train_epoch().

simple_merge.php Example

There will be times when you need to merge separate data sets into a new single set. simple_merge.php demonstrates how to merge the XOR data set from two separate files into a single training file.

SplitTrainingData.php Example

There will be times when you want to split data sets into smaller groups. SplitTrainingData.php demonstrates how to split your data into 1/10 and 9/10 subsets. These sets can then be used for training and testing.

bukka commented 5 years ago

Nice! Thanks!