Learning with General Proximity Measures (invited paper)