Exemple #1
0
 def test_store_weights_raises_when_no_args(self):
     hmc = HMCNeuron('fake_arg','fake_arg','fake_arg')
     hmc.store_weights()
Exemple #2
0
 def test_store_weights_raises_when_too_many_args(self):
     hmc = HMCNeuron('fake_arg','fake_arg','fake_arg')
     hmc.store_weights(1,2,3)
Exemple #3
0
 def test_store_weights_stores_weights(self):
     hmc = HMCNeuron('fake_arg','fake_arg','fake_arg')
     weights = [1,2,3]
     hmc.store_weights(weights)
     assert(hmc.weight_samples == [[1,2,3]])