Imported from https://github.com/jphall663/interpretable_machine_learning_with_python