Metric And Representation Learning