This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function softmax(array $v){ | |
//Just in case values are passed in as string, apply floatval | |
$v = array_map('exp',array_map('floatval',$v)); | |
$sum = array_sum($v); | |
foreach($v as $index => $value) { | |
$v[$index] = $value/$sum; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; php options | |
expose_php=off | |
pid = /var/run/hhvm/pid | |
date.timezone="America/New_York" | |
; hhvm specific | |
hhvm.server.file_socket=/var/run/hhvm/hhvm.sock | |
;hhvm.server.port = 9000 | |
hhvm.server.type = fastcgi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* SplClassLoader implementation that implements the technical interoperability | |
* standards for PHP 5.3 namespaces and class names. | |
* | |
* http://groups.google.com/group/php-standards/web/final-proposal | |
* | |
* // Example which loads classes for the Doctrine Common package in the | |
* // Doctrine\Common namespace. |