[array([1, 1]), array([2, 1]), array([3, 1]), array([9, 1]), array([-2, 1]), array([-6, 1])]
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-10-c5f301edd26a> in <module>()
20 inputs = [i[0] for i in training_data]
21 print(inputs)
---> 22 x, expected = np.random.choice(inputs)
23 result = np.dot(weights, x)
24 error = expected - unit_step(result)
mtrand.pyx in mtrand.RandomState.choice (numpy/random/mtrand/mtrand.c:10351)()
ValueError: a must be 1-dimensional