comparison simple_autoassociator.py/main.py @ 388:98ca97cc9910

Debugging simple AA
author Joseph Turian <turian@gmail.com>
date Tue, 08 Jul 2008 17:41:26 -0400
parents a474341861fa
children
comparison
equal deleted inserted replaced
387:dace8b9743af 388:98ca97cc9910
16 import numpy 16 import numpy
17 17
18 nonzero_instances = [] 18 nonzero_instances = []
19 nonzero_instances.append({1: 0.1, 5: 0.5, 9: 1}) 19 nonzero_instances.append({1: 0.1, 5: 0.5, 9: 1})
20 nonzero_instances.append({2: 0.3, 5: 0.5, 8: 0.8}) 20 nonzero_instances.append({2: 0.3, 5: 0.5, 8: 0.8})
21 nonzero_instances.append({1: 0.2, 2: 0.3, 5: 0.5}) 21 #nonzero_instances.append({1: 0.2, 2: 0.3, 5: 0.5})
22 22
23 import model 23 import model
24 model = model.Model() 24 model = model.Model()
25 25
26 for i in xrange(100000): 26 for i in xrange(100000):