2017 © Pedro Peláez
 

library php-fann-topology-core

topology library for php fann

image

24hoursmedia/php-fann-topology-core

topology library for php fann

  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

php-fann-topology-core

Code Climate Test Coverage, (*1)

create a topological representation of the neurons and connections in a FANN network, (*2)

Installation

using composer:, (*3)

composer require 24hoursmedia/php-fann-topology-core

Example

require('vendor/autoload.php');
use T4\Fann\Topology\Core\Topology;
$ann = fann_create_standard(4, 2, 2, 5, 1);
fann_set_activation_function_hidden($ann, FANN_SIGMOID_SYMMETRIC);
fann_set_activation_function_output($ann, FANN_SIGMOID_SYMMETRIC);
$filename = dirname(__FILE__) . "/xor.data";
fann_train_on_file($ann, $filename, 100000, 0, 0.0001);

$topology = Topology::createFromFann($ann);
$inputLayer = $topology->getLayers()[0];
$firstInputNeuron = $inputLayer->getNeurons()[0];
$connections = $firstInputNeuron->getConnections();
foreach ($connections as $conn) {
    echo 'neuron ' . $conn->getFromNeuron()->getIndex() . ' is connected to neuron ' .
        $conn->getToNeuron()->getIndex() . ' with weight ' . $conn->getWeight() .
        PHP_EOL;
}

Output:, (*4)

neuron 0 is connected to 3 with weight -0.77117919921875
neuron 0 is connected to 4 with weight -3.1356239318848

The Versions

17/12 2016

dev-master

9999999-dev

topology library for php fann

  Sources   Download

The Requires

  • php >=5.6

 

17/12 2016

dev-#3-make-more-quotes-tradeable

dev-#3-make-more-quotes-tradeable

topology library for php fann

  Sources   Download

The Requires

  • php >=5.6

 

17/12 2016

dev-develop

dev-develop

topology library for php fann

  Sources   Download

The Requires

  • php >=5.6

 

17/12 2016

v1.0.0

1.0.0.0

topology library for php fann

  Sources   Download

The Requires

  • php >=5.6