Visual network topoloy: Difference between revisions
From Artificial Neural Network for PHP
Line 6: | Line 6: | ||
try |
try |
||
{ |
{ |
||
$ |
$objNetwork = ANN_Network::loadFromFile('xor.dat'); |
||
} |
} |
||
catch(Exception $e) |
catch(Exception $e) |
||
{ |
{ |
||
print 'Network not found'; |
print 'Network not found'; |
||
exit; |
exit; |
||
} |
} |
||
$ |
$objNetworkImage = new ANN_NetworkGraph($objNetwork); |
||
$ |
$objNetworkImage->saveToFile('network.png'); |
||
</source> |
</source> |
||