A Framework for Understanding Unintended Consequences of Machine Learning