Chapter 6. PHP Extension

These functions allow you to interact with the FANN library from PHP.

This extension requires the FANN library, version 1.1.0 or later.

This extension supports the same activation functions as the library, a list of which can be found in the Activation Functions section.

6.1. API Reference

Table of Contents
fann_create -- Creates an artificial neural network.
fann_train -- Train an artificial neural network.
fann_save -- Save an artificial neural network to a file.
fann_run -- Run an artificial neural network.
fann_randomize_weights -- Randomize the weights of the neurons in the network.
fann_init_weights -- Initialize the weight of each connection.
fann_get_MSE -- Get the mean squared error.
fann_get_num_input -- Get the number of input neurons.
fann_get_num_output -- Get the number of output neurons.
fann_get_total_neurons -- Get the total number of neurons.
fann_get_total_connections -- Get the total number of connections.
fann_get_learning_rate -- Get the learning rate.
fann_get_activation_function_hidden -- Get the activation function of the hidden neurons.
fann_get_activation_function_output -- Get the activation function of the output neurons.
fann_get_activation_hidden_steepness -- Get the steepness of the activation function for the hidden neurons.
fann_get_activation_output_steepness -- Get the steepness of the activation function for the output neurons.
fann_set_learning_rate -- Set the learning rate.
fann_set_activation_function_hidden -- Set the activation function for the hidden neurons.
fann_set_activation_function_output -- Set the activation function for the output neurons.
fann_set_activation_hidden_steepness -- Set the steepness of the activation function for the hidden neurons.
fann_set_activation_output_steepness -- Set the steepness of the activation function for the output neurons.

SourceForge.net Logo