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
from random import choice | |
from numpy import array, dot, random | |
# Declare activation function | |
def stepFunction(value): | |
if value <= 0: | |
return 0 | |
else: | |
return 1 |
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 | |
$mysqlCommandPath = 'to be filled'; | |
$mysqldumptCommandPath = 'to be filled'; | |
$remoteDbUnsername = 'to be filled'; | |
$remoteDbPassword = 'to be filled'; | |
$remotePort = 'to be filled'; | |
$remotHost = 'to be filled'; | |
$remoteDb = 'to be filled'; |
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 | |
class Product { | |
private $stockItem; | |
private $sku; | |
public function __construct($sku){ | |
$this->sku = $sku; | |
} | |
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
mkdir dev | |
cd dev | |
export CMAKE_PREFIX_PATH=`pwd` | |
git clone git://github.com/facebook/hhvm.git | |
cd hhvm | |
git submodule init | |
cd ../ | |
## Required for builtin web-server support |
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 | |
/** | |
* Demac Media | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the EULA | |
* that is bundled with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://www.demacmedia.com/LICENSE-Magento.txt |
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
from numpy import exp, array, random, dot | |
ts_inputs = array([[0, 0, 0], [0, 0, 1], [0, 1, 1], [1, 0, 1], [1, 1, 1]]) | |
ts_outputs = array([[0, 0, 0, 1, 1]]).T | |
#unknown input | |
un_input = array([1, 0, 0]) | |
# initialize synapse_weights | |
random.seed(1) | |
sy_weights = 2 * random.random((3,1)) - 1 |
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
from numpy import exp, array, random, dot | |
ts_inputs = array([[0, 0, 0], [0, 0, 1], [0, 1, 1], [1, 0, 1], [1, 1, 1]]) | |
ts_outputs = array([[0, 0, 0, 1, 1]]).T | |
#unknown input | |
un_input = array([1, 0, 0]) | |
# initialize synapse_weights | |
random.seed(1) | |
sy_weights = 2 * random.random((3,1)) - 1 |
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
from numpy import exp, array, random, dot | |
ts_inputs = array([[0, 0, 0], [0, 0, 1], [0, 1, 1], [1, 0, 1], [1, 1, 1]]) | |
ts_outputs = array([[0, 0, 0, 1, 1]]).T | |
#unknown input | |
un_input = array([1, 0, 0]) | |
# initialize synapse_weights | |
random.seed(1) | |
sy_weights = 2 * random.random((3,1)) - 1 |
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
from numpy import exp, array, random, dot | |
ts_inputs = array([[0, 0, 0], [0, 0, 1], [0, 1, 1], [1, 0, 1], [1, 1, 1]]) | |
ts_outputs = array([[0, 0, 0, 1, 1]]).T | |
#unknown input | |
un_input = array([1, 0, 0]) | |
# initialize synapse_weights | |
random.seed(1) | |
sy_weights = 2 * random.random((3,1)) - 1 |
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
from numpy import exp, array, random, dot | |
ts_inputs = array([[0, 0, 0], [0, 0, 1], [0, 1, 1], [1, 0, 1], [1, 1, 1]]) | |
ts_outputs = array([[0, 0, 0, 1, 1]]).T | |
#unknown input | |
un_input = array([1, 0, 0]) | |
# initialize synapse_weights | |
random.seed(1) | |
sy_weights = 2 * random.random((3,1)) - 1 |