Distance Learning And Attribute Importance Analysis By Linear Regression On Idealized Distance Functions