Neural Networks, Machine Learning, Deep Learning, Computer Vision, Data Science.
the input 8. 9. def prediction_error(desired, expected): 10. return numpy.abs(numpy.mean(desired-expected)) # absolute error 11. 12. def update_weights(weights, predicted, idx): 13. weights = weights + .00001*(desired_output[idx] - predicted)*inputs[idx] # updating weights 14. return weights # new